Re:Experimental support for WebAssembly in V8
by bcheung on Tuesday March 15, 2016 @03:01PM
(#11292134)
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.
[ Parent
| on HN ]
Re:Experimental support for WebAssembly in V8
by azakai on Tuesday March 15, 2016 @03:02PM
(#11292148)
Not 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.
Re:Experimental support for WebAssembly in V8
by bcheung on Tuesday March 15, 2016 @04:44PM
(#11292832)
Good to know. So it doesn't implement any of the ES6 concepts then I take it.
Re:Experimental support for WebAssembly in V8
by esailija on Tuesday March 15, 2016 @03:45PM
(#11292428)
The 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/AstSemanti...