2 ms·
Moreover, asm.js effectively already existed, right? It's not quite the same, but it's essentially a formalisation of what emscripten and the like already produ
by TazeTSchnitzel 12y ago
Moreover, asm.js effectively already existed, right? It's not quite the same, but it's essentially a formalisation of what emscripten and the like already produced.
- Torgo 12y agoIs there anything written that explains this? I sort of got that impression when he talked about how JS was untyped but the js bytecode vm had types.
- azakai 12y agoModern JS VMs have type-specializing JITs. That's how they make code run fast, basically - they detect types at runtime, and emit efficient code for that. asm.js just gives them the types, which makes things easier, but it all builds upon the existing power of JS VMs. See e.g. http://kripken.github.io/mloc_emscripten_talk/sotu.html#/16 http://kripken.github.io/mloc_emscripten_talk/sotu.html#/16
- azakai 12y agoYes, correct. Emscripten and mandreel already produced something quite like asm.js, before asm.js was defined.