4 ms·
Except wasm isn't JS. It's yet another vm in the browser.
by ori_b 7y ago
Except wasm isn't JS. It's yet another vm in the browser.
- dymk 7y agoYou're right; I mean asm.js. Point stands. You can compile arbitrary languages into JS without the "js" part leaking through.
- wvenable 7y agoI don't think this refutes my original point. Asm.js is exactly a low-level subset of JavaScript. ReasonML doesn't compile to Asm.js. Most languages that compile to JavaScript also want to interop with JavaScript APIs and other high-level JavaScript code. Other posts in topic discuss this exact difficulty of combining ReasonML with the JS ecosystem.
- gridlockd 7y agoThe JS part definitely leaks through even with asm.js, particularly the lack of native 64-bit integers. The further away you go from Javascript, the more performance issues you encounter and the larger your build size becomes. Of course in theory nothing stops you from having an entire turing-complete VM inside JS, but that's not what you want for real deployments.