effekt
effekt copied to clipboard
Experiment: Generating OCaml instead of SML
Just a draft for now.
While it is somewhat feature complete wrt to the old MLTon backend, there is still a lot to do:
- [ ] identify recursive groups and introduce
let rec ... and ...
binding groups for those (and those only). - [ ] model capabilities / objects using records since this allows rank-2 types (https://soap.coffee/~lthms/posts/RankNTypesInOCaml.html)
- [ ] Implement heterogenous regions (since in OCaml we have
Obj.magic
)