3 ms·
> From what I understand, WebAssembly ASTs will be very similar structurally to asm.js ASTs in order to permit easy JS fallbacks. At least initially it'll be s
by TazeTSchnitzel 11y ago
> From what I understand, WebAssembly ASTs will be very similar structurally to asm.js ASTs in order to permit easy JS fallbacks.
At least initially it'll be similar to asm.js, yes.
> You can do AOT compilation of JS too.
No, you can't. You don't have all the type information needed.
- ZenoArrow 11y ago> "No, you can't. You don't have all the type information needed." https://github.com/toshok/echojs https://github.com/toshok/echojs
- vmorgulis 11y ago"I want to play around with what is essentially profile guided optimization, but with runtime type information. So you get a partially specialized (at least as much as the static compilation can give you) implementation, which then records type information at runtime." Very advanced optimizations. Emscripten doesn't do that (not yet, but LLVM has PGO).
- TazeTSchnitzel 11y agoI've done something similar for PHP before. But what you get is code that essentially embeds a dynamic language runtime into your code in the places where the types aren't known. It's less efficient than JIT compilation.
- vmorgulis 11y agoDid you include a feedback mecanism in your solution ? (like PGO)