pure-c / purec

C backend for PureScript
232 stars 8 forks source link

WebAssembly #51

Open paulyoung opened 5 years ago

paulyoung commented 5 years ago

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.

felixSchl commented 5 years ago

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.

felixSchl commented 5 years ago

This will be possible with #54

felixSchl commented 3 years ago

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