4 ms·
> "No, you can't. You don't have all the type information needed." https://github.com/toshok/echojs https://github.com/toshok/echojs
by 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)