3 ms·
Loading raw bytecode is known to be unsafe, and iirc that is mentioned in lua_load/luaL_load* documentation. A preprocessor could spit out Lua code with the sa
by wruza 2y ago
Loading raw bytecode is known to be unsafe, and iirc that is mentioned in lua_load/luaL_load* documentation.
A preprocessor could spit out Lua code with the same effect and less complexity. Really interesting why and how these decision were made.
- mananaysiempre 2y agoFor what it’s worth, Metalua also generated PUC-Lua bytecode directly instead of source code, making it incompatible with LuaJIT (which might have been part of the reason why it died).