3 ms·
Funny their choice over luajit's Dynasm, when you have something like Turbofan laying around. The V8 Javascript interpreter can generate machine code dinamical
by oscargrouch 6y ago
Funny their choice over luajit's Dynasm, when you have something like Turbofan laying around.
The V8 Javascript interpreter can generate machine code dinamically targetting the host arch for each bytecode instruction..
You can define the target assembly directly in C++ without resorting to any specific machine code.
Maybe complexity or because they wanted to stick to C?
- kzrdude 6y agoWould it be easy to apply turbofan to Python? Do you have any details?
- rurban 6y agoThey replaced dynasm in 2014 with llvm. Then there was no other good jit around. llvm is certainly not good either, but for specific workloads in companies it's doable, for benchmarks or short scripts not.