3 ms·
See asm.js. This is exactly what you propose. BTW, asm.js has been superseded by Webassembly which ditches Javascript completely.
by flavio81 9y ago
See asm.js. This is exactly what you propose.
BTW, asm.js has been superseded by Webassembly which ditches Javascript completely.
- mmanulis 9y agoAs I understand Webassembly, it's meant to replace JS completely as a native implementation in a browser. That is, it's meant to replace the JS interpreter. Not sure if I understood it correctly though.
- flavio81 9y agoNot exactly. The browser, instead of downloading javascript, downloads WASM bytecode, and this bytecode gets compiled ahead-of-time to machine language and ran by the browser. The bytecode itself is the product of compiling a source code written in the language of your choice, for example Java or something more advanced like INTERCAL.
- mmanulis 9y agoI see, that makes sense. The bytecode part still has to be implemented in a browser though, right?