Custom bytecode compiler
Offline Lua/Luau source compiler with a custom instruction set, bytecode stream and generated Lua interpreter.
Automatic detection identifies likely Luau, LuaJIT, or Lua version features. The compiler targets a shared executable subset, so detection does not mean every dialect-specific feature is supported.
Supported: locals, global variables, functions and closures, calls, varargs (first vararg expression), tables, indexing, arithmetic, comparisons, concatenation, and/or, if/elseif/else, while, repeat/until, numeric for, break, and Luau continue.
Not yet supported: type annotations/type declarations, generic for-in loops, goto/labels, multiple return values, method declarations, metatable syntax extensions, and the full Luau type system. Test output in the exact target runtime.
Runtime APIs: references such as newproxy, getfenv, setmetatable, and getmetatable are resolved from the target Lua environment. The VM does not call newproxy internally or invent APIs missing from that runtime; if your source uses it, the call is forwarded like any other global.