3 ms·
It already does, in the form of JIT compilation.
by Retr0id 1y ago
It already does, in the form of JIT compilation.
- alcover 1y agoOK but I meant in already native code, like in a C program - no bytecode.
- Retr0id 1y agoI mean that, too.
- connicpu 1y agoLuaJIT has a wonderful dynamic code generation system in the form of the DynASM[1] library. You can use it separately from LuaJIT for dynamic runtime code generation to create machine code optimized for a particular problem. [1]: https://luajit.org/dynasm.html https://luajit.org/dynasm.html
- lmm 1y agoIf you are generating or modifying code at runtime then how is that different from bytecode? Standardised bytecodes and JITs are just an organised way of doing the same thing.