top | item 44090527

(no title)

alcover | 9 months ago

OK but I meant in already native code, like in a C program - no bytecode.

discuss

order

lmm|9 months ago

If 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.

connicpu|9 months ago

LuaJIT 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

Retr0id|9 months ago

I mean that, too.