Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Atom [1] is an EDSL that escaped Haskell GC. Note that Atom takes ideas from Bluespec which compiles to hardware circuits, where GC is not availble.

  [1] https://hackage.haskell.org/package/atom
One can make a Haskell EDSL with effects and everything and output a C (or some compiler's IR) code.

These languages you mentioned repeat Rust's mistake.

Rust's type system includes rules that remove definitions from the scope/environment. This is inherent and obligatory for uniqueness/linear types type systems.

At the time Rust was conceived, Haskell had HList library [2] and Beyond Monads [3] extended state monad. Combining both would embed into Haskell most, if not all, Rust at the time, allowing to pursue research of how to combine borrow logic with algebraic effects. But Rust's developers preferred to go OCaml implementation (syntax first) way and not to pursue complexity issues of semantics.

  [2] https://hackage.haskell.org/package/HList
  [3] http://blog.sigfpe.com/2009/02/beyond-monads.html


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: