5 ms·
WebAssembly is a binary representation of the Javascript AST. Optimizations usually happen AFTER it is parsed. That's all WebAssembly is -- the parsed result.
by bcheung 11y ago
WebAssembly is a binary representation of the Javascript AST. Optimizations usually happen AFTER it is parsed. That's all WebAssembly is -- the parsed result. Targeting WebAssembly from Javascript is the most natural fit that could possibly exist.
- azakai 11y agoNot quite. WebAssembly is not a representation of general JS. It can just represent a small subset of it, very similar to the asm.js subset.
- bcheung 11y agoGood to know. So it doesn't implement any of the ES6 concepts then I take it.
- esailija 11y agoThe format is just an AST in general, nothing to do with JavaScript. You can even see all the possible instructions here to confirm [1]. 1. https://github.com/WebAssembly/design/blob/master/AstSemantics.md https://github.com/WebAssembly/design/blob/master/AstSemanti...