3 ms·
You are assuming a compilation that results in high-level JavaScript code. As JavaScript is a Turing complete language, you can trivially compile any other prog
by saurik 9y ago
You are assuming a compilation that results in high-level JavaScript code. As JavaScript is a Turing complete language, you can trivially compile any other programming language to target it, and we not only have done that a lot but even made it efficient using asm.js. All WASM is buying us is a more efficient encoding format that can be parsed more quickly than asm.js.
- pjmlp 9y agoIt also applies to asm.js. Just because it runs does not mean it does so efficiently, or that 100% of the source language semantics are supported without any constraints.
- esrauch 9y ago> All WASM is buying us is a more efficient encoding format that can be parsed more quickly than asm.js. That is only the initial property. WASM is expected to get a number of new features that aren't expected to come to JS, like actual threads.