pure-c/purec

WebAssembly

paulyoung opened this issue · 3 comments

WebAssembly seems like one obvious use case of this project so I was surprised that there wasn't any discussion about this here already. Forgive me if I'm overlooking something that already exists.

I'm wondering whether you've given this much thought or tried it out, and what challenges/limitations you've encountered or foresee.

I have not spent any time looking into this, but I know that purescript-native can compile to web assembly. Provided the GC runs in web assembly, which I think it does, I don't see any reason why it wouldn't work.

This will be possible with #54

With the new reference counting GC targeting WebAssembly should be straight forward now.