WebAssembly: a binary format for the web
Updates: [2015-07-02] New material in these sections: How do I create WebAssembly code? First experiences in practice Further reading [2015-06-24] I added an FAQ with three new questions: Does the web finally have a universal bytecode? Isn’t WebAssembly like Flash? Will WebAssembly make JavaScript faster? WebAssembly (short: wasm ) is a new binary format for the web, created by Google, Microsoft, Mozilla and others. It will be used for performance critical code and to compile languages other than JavaScript (especially C/C++) to the web platform. It can be seen as a next step for asm.js [3] . asm.js Most JavaScript engines have the following compilation pipeline: JavaScript source → bytecode → machine code The idea of asm.js is to code JavaScript in such a way that engines produce machine code that is as efficient as possible. That is, you kind of try to bypass the first compilation step. The results are impressive: if one compiles C++ to asm.js one can reach 70% of native speed in we...