4 ms·
Yep. These things have been solved by massive investments. The question is, can WASM as a language (not an implementation) do something JavaScript can't?
by gritzko 10mo ago
Yep. These things have been solved by massive investments. The question is, can WASM as a language (not an implementation) do something JavaScript can't?
- moralestapia 10mo agoThe answer to that is no. But innovating at the language level was never a goal for WASM; quite the opposite, as simple as possible so it can be compiled and run anywhere.
- CryZe 10mo agoWasm can do 64-bit integers, SIMD and statically typed GC classes.
- DonHopkins 10mo agoWASM can even do 32-bit integers, which JavaScript can't, so uses floats instead.
- WorldMaker 10mo agoJS has had byte arrays like Int32Array for a while. The JS engines will try to optimize math done into them/with them as integer math rather than float math, but yeah you still can't use an integer directly outside of array math.
- davidmurdoch 10mo agoJS could have had support for SIMD and 64 bit it's by now, and progress was actually being made (mostly just through the asm.js experiments), but it was deprioritized specifically to work on WASM.