Asterius – Haskell to WebAssembly Compiler
1–10 of 36 posts
Re: Asterius – Haskell to WebAssembly Compiler
#2⸮ ϱninnɒd wobɒʜƨ ƨi ƨwɘn ɿɘʞɔɒʜ
Re: Asterius – Haskell to WebAssembly Compiler
#3See also webghc which has an alternative strategy to writing a new RTS and code generator. They are cross compiling to wasm via llvm. https://webghc.github.io/2019/01/18/state-of-webghc-january-...
Re: Asterius – Haskell to WebAssembly Compiler
#4[deleted]
Re: Asterius – Haskell to WebAssembly Compiler
#5I'm curious how they solve garbage-collection, since last time I checked WebAssembly doesn't yet support that?
Re: Asterius – Haskell to WebAssembly Compiler
#6I'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.
Re: Asterius – Haskell to WebAssembly Compiler
#7Re: Asterius – Haskell to WebAssembly Compiler
#8I'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
#9Another 'Haskell to WebAssembly' project:
Re: Asterius – Haskell to WebAssembly Compiler
#10Surprised 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!