2 ms·
Sure, but it's different because you need to compile a whole VM to asm.js and run javascript inside of it. You can't compile a dynamic language like javascript
by jlongster 14y ago
Sure, but it's different because you need to compile a whole VM to asm.js and run javascript inside of it. You can't compile a dynamic language like javascript to low-level code because you need too much information at runtime.
See this project, which compiles SpiderMonkey to javascript via emscripten, which supports asm.js: https://github.com/jterrace/js.js/ https://github.com/jterrace/js.js/
- azakai 14y agoqt-emscripten does something similar, it builds the JSC interpreter together with Qt.