Investigate mlua as replacement for luajit2-sys #123

Open
opened 2023-11-09 11:57:58 +01:00 by lucas · 0 comments
Owner

The luajit2-sys bindings work, but are a bit cumbersome to work with.

The most important aspect to watch out for in the replacement is that we need LuaJIT at a specific version, such that the bytecode we create with string.dump is compatible with what the game wants.

The fork of luajit2-sys is sitting at a very specific commit for that reason. mlua would need some way of selecting the LuaJIT version it compiles, as well.

The `luajit2-sys` bindings work, but are a bit cumbersome to work with. The most important aspect to watch out for in the replacement is that we need LuaJIT at a specific version, such that the bytecode we create with `string.dump` is compatible with what the game wants. The fork of `luajit2-sys` is sitting at a very specific commit for that reason. `mlua` would need some way of selecting the LuaJIT version it compiles, as well.
lucas added the
stage
proposal
crate/dtmm
kind
enhancement
crate/dtmt
labels 2023-11-09 11:57:59 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: bitsquid_dt/dtmt#123
No description provided.