2 ms·
But couldn't other languages also compile to this binary AST too?
by pier25 9y ago
But couldn't other languages also compile to this binary AST too?
- Akkuma 9y agoSure, why not? The difference is that WASM is aiming for near native performance of code, while the binary JS would still be limited to JS performance.
- nfriedly 9y agoYes, and for anything that already compiles to JS, adding this as an additional target shouldn't be too much work. However, for anything that doesn't already compile to JS, this is essentially the same amount of work as targeting regular JavaScript. In that case, the work might be better spent making it compile to WASM. But, that's not a hard and fast rule, it really depends on the situation. And, of course, it could always target both.