4 ms·
It's so much not JavaScript that you cannot even compile JavaScript to wasm!
by steveklabnik 8y ago
It's so much not JavaScript that you cannot even compile JavaScript to wasm!
- int_19h 8y agoWait... why? What's the limiting factor?
- steveklabnik 8y agothere’s not a lot of reason to. In the browser, you already have a JS environment. It’s easier to add a wasm environment to it than it is to re-write the world. Additionally, wasm doesn’t have a GC, and is not really optimized for dynamic languages, so there’s just not a lot of reason to do it.
- int_19h 8y agoOh, I thought you mean that there's some fundamental reason why it can't be done. Ofc it's pointless today, but I wouldn't be surprised if JS in browsers eventually becomes a layer on top of wasm.