Live data from Hacker News

Asterius – Haskell to WebAssembly Compiler

github.com

1–10 of 36 posts

Re: Asterius – Haskell to WebAssembly Compiler

#7

I'm curious how they solve garbage-collection, since last time I checked WebAssembly doesn't yet support that?

Presumably it’s implemented “natively”. Just like it would be on a native pl.

I don’t think it has gc yet ..

Re: Asterius – Haskell to WebAssembly Compiler

#8

I'm curious how they solve garbage-collection, since last time I checked WebAssembly doesn't yet support that?

So far they use the "don't" approach to garbage collection. It would have to be implemented.like the rest of the rts.

I guess parts of the c code could be transpiled but something low-level like the gc relies on details like register pinning.

Re: Asterius – Haskell to WebAssembly Compiler

#10
Surprised to see that no one has mentioned GHCJS " rel="nofollow">https://github.com/ghcjs/ghcjs> still.

I have used it[0] a year ago and despite my shallow understanding of Haskell, I have managed to port my CLI app to Haskell fairly easily!

[0]: https://github.com/boramalper/boolexman

Post reply on HN