4 ms·
Looks cool, I'm not much into webassembly... but I see just fews lines of Haskell code produced a gzipped wasm of 448K. How does this compares to other language
by fbn79 3y ago
Looks cool, I'm not much into webassembly... but I see just fews lines of Haskell code produced a gzipped wasm of 448K. How does this compares to other languages?
- kwertzzz 3y agoThe uncompressed wasm binary for a simple fluid simulation in julia is 5k (or 2.7k compressed): https://alexander-barth.github.io/FluidSimDemo-WebAssembly/ https://alexander-barth.github.io/FluidSimDemo-WebAssembly/ But here the wasm code does only the number crunching. The visualization (and memory allocation) is all done in javascript.
- 3836293648 3y agoRemember that this includes the runtime. It'll hopefully shrink a bit once the wasm gc is stabilised
- markdog12 3y agoIt's already in Phase 4, so close: https://github.com/WebAssembly/proposals#phase-4---standardize-the-feature-wg https://github.com/WebAssembly/proposals#phase-4---standardi...
- whateveracct 3y agoThe RTS is a bit more than the GC though.
- 3836293648 3y agoI said a bit, not go away entirely
- samus 3y agoDoes it really need a GC or is JavaScript engine's GC such a bad fit for Haskell?
- whateveracct 3y agoI think it depends on how much of the GHC RTS semantics you wish to preserve.