by emmanueloga_ · 6y ago · 0 comments
I think an IDL with strong support for ADTs is a great idea. Reminds me of ATD for OCaml [1]. Someone posted here this other project that seems to share similar goals [2].
A long shot, but I wonder if anyone here may be familiar with any two pairs of these projects to compare and contrast.
re [1] the language behind ATD seems really similar to typedefs (not surprising, it is the "sane" choice) I need to give it a deeper look to point out more subtle differences. Additionally since we developed in Idris we provide proofs that `serialized . deserialize = id`, which is not possible in OCaml.
regarding [2], it's the same idea, except that doesn't follow any well establish type theory or other mathematical structure as the basis of it's language:
Compound = Record
| Sequence
| Set
| Dictionary
This is mathematically already quite complicated.