by nickmain on 8/18/22, 4:01 PM with 10 comments
by UncleEntity on 8/18/22, 8:14 PM
I’m not seeing how using the first Futamura projection (targeting wasm) wouldn’t both result in a significantly smaller module size and give more opportunity to optimize/specialize the code as it could perform offline analysis. One could even use the second Futamura projection along with the dynamic code loading from TFA and get an online jit compiler virtually for free.
If I was getting paid megabucks to do these types of things that’s where I’d spend my research time.
by yuri91 on 8/18/22, 6:42 PM
We use similar techniques to power Webvm[1], an X86 Virtual Machine that runs linux programs in the browser.
A proper Wasm JIT API in JavaScript would be even better of course, but as the article says, cool things are already possible right now.
I expect to see more projects doing Wasm just-in-time compilation in the future (I believe that V86[2] also already does it)
[1]: https://webvm.io/
by kristiandupont on 8/18/22, 6:37 PM
by julosflb on 8/19/22, 3:18 PM