4 ms·
I am sure there is some reason this can't be done, but can we compile JavaScript to asm.js? If this can be done with C, it can be done with JS?
by y0ghur7_xxx 14y ago
I am sure there is some reason this can't be done, but can we compile JavaScript to asm.js? If this can be done with C, it can be done with JS?
- jlongster 14y agoSure, 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.