Add/Fix pre-compiled Bytecode support #1604
Labels
area-Core
This affects CC's core (the Lua runtime, APIs, computer internals).
bug
A problem or unexpected behaviour with the mod.
cannot reproduce
I'm unable to reproduce this bug.
Why?
As decribed in http://lua-users.org/wiki/LuaCompilerInLua, lua should be able to replicate work of luac program (Luac is used to generate executable bytecode from raw lua file)
At current moment pure lua implementation of Luac CAN produce executable files, but it's execution is limited up to 1 function, after which it throws error
file.lua:2 vm error: java.lang.ArrayIndexOutOfBoundsException: Index 253 out of bounds for length 2
Using pre-compiled bytecode has it's upsides and downsides.
Example: securing original lua source code on computer, by using pre-compiled file with stripped debug information, with neat addition of faster loading, but need to recompile every time source code is changed, since direct editing bytecode is usually a bad idea.
The text was updated successfully, but these errors were encountered: