3 ms·
Oh but it is; see also asm.js, which is a subset of JS that removes a lot of the potential performance bottlenecks by removing those features from JS (mostly ha
by Cthulhu_ 11y ago
Oh but it is; see also asm.js, which is a subset of JS that removes a lot of the potential performance bottlenecks by removing those features from JS (mostly having to do with JS' dynamic nature, iirc).
Or in other words: javascript is an interpreted script language, webassembly is a compiled binary format.
- chrisseaton 11y ago> Or in other words: javascript is an interpreted script language, webassembly is a compiled binary format. They're both just-in-time compiled. It doesn't matter if your program comes in as source code or a binary format if you're compiling it dynamically. But I didn't know that WebAssembly ran under asm.js semantics. I guess that's the difference.
- jfbastien 11y agoWebAssembly has its own semantics, similar to asm.js (statically typed) but much cleaner because it doesn't need to map onto JavaScript.