4 ms·
From the post: > The Flash plugin itself includes a JIT compiler that > converts AS3 code to x86 code on the fly, which is then JIT > compiled by
by indigo945 6y ago
From the post:
> The Flash plugin itself includes a JIT compiler that
> converts AS3 code to x86 code on the fly, which is then JIT
> compiled by CheerpX into WebAssembly.
And of course, the WebAssembly is then JIT compiled right back to x86, so it's actually three levels of JIT compilation. It's a wonder this runs with any acceptable performance at all.
I'm looking forward to seeing this as a dependency of any future Electron app too; Moore's law must be brought to use.
- Someone 6y agoSome x86s further JIT compile x86 instructions to micro-operations. (That isn’t normally called JITting, but I think one can view it as such, especially when the CPU caches the translation, as in https://en.wikipedia.org/wiki/NetBurst_(microarchitecture)#Execution_Trace_Cache https://en.wikipedia.org/wiki/NetBurst_(microarchitecture)#E... or https://en.wikipedia.org/wiki/CPU_cache#UOP-CACHE https://en.wikipedia.org/wiki/CPU_cache#UOP-CACHE)
- lixtra 6y ago> actually three levels of JIT compilation. And that’s totally fine to support legacy code. After all, it continues to put some tiny pixels on a screen, emit some light and gets interpreted by some huge neural networks that took decades to train and finally releases a small shot of endorphins. Why not just start with the endorphins?
- adrianN 6y agoReplace Flash player with little USB-powered opium dispensers?
- indigo945 6y agoTo be clear, I think this is an amazing project and I very much appreciate this effort to preserve legacy software. When I say it is a wonder that this runs with acceptable performance, that's also to be taken as a compliment to the developers. :)
- afiori 6y agoThe moment app developers manage to do that we are going to see some crazy marketing wars