Is this ABI compatible with Lua5.1 too? #117
-
Syntax compatibility with Lua5.1 is cool and all, but can this be used as a drop in replacement in existing projects with Lua5.1 embedded? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not fully ABI compatible in the drop-in sense; most of the FFI interface is the same but there's a couple deviations that would require changing projects that rely on Lua today; most importantly code needs to be compiled and loaded separately, this is highlighted in the readme. For embedded projects depending on the deployment strategy it could also make sense to precompile source to bytecode on host, so that on the target you only need to build Luau.VM to reduce code size. |
Beta Was this translation helpful? Give feedback.
Not fully ABI compatible in the drop-in sense; most of the FFI interface is the same but there's a couple deviations that would require changing projects that rely on Lua today; most importantly code needs to be compiled and loaded separately, this is highlighted in the readme. For embedded projects depending on the deployment strategy it could also make sense to precompile source to bytecode on host, so that on the target you only need to build Luau.VM to reduce code size.