This is lde's fork of LuaJIT.
It contains features for the sake of improved cross platform capabilities, and those that would benefit the lde runtime.
Here's a table of supported platforms and download links to the luajit binary.
| Platform | Architecture | libc | Download |
|---|---|---|---|
| Linux | x86-64 | glibc (2.35+) | ✅ Download |
| Linux | x86-64 | musl | ✅ Download |
| Linux | aarch64 (ARM64) | glibc (2.35+) | ✅ Download |
| Linux | aarch64 (ARM64) | musl | ✅ Download |
| Linux | aarch64 (ARM64) | android | ✅ Download |
| Linux | x86-64 | android | ✅ Download |
| Windows | x86-64 | - | ✅ Download |
| Windows | aarch64 (ARM64) | - | ✅ Download |
| macOS | x86-64 (Intel) | - | ✅ Download |
| macOS | aarch64 (Apple Silicon) | - | ✅ Download |
| iOS | aarch64 (ARM64) | - | ✅ Download |
| FreeBSD | x86-64 | - | ✅ Download |
| FreeBSD | aarch64 (ARM64) | - | ✅ Download |
The FreeBSD artifacts are built on FreeBSD 14.5, so they run on FreeBSD 14.5 and newer.
The iOS artifact is a static library plus headers for embedding in an app. iOS forbids runtime code generation, so the JIT is disabled there and LuaJIT runs in interpreter mode; there is no standalone iOS executable.
If you need to get the library instead, check out the release page manually and download the corresponding libluajit, although you would usually do this programmatically.
There may be extensions or slight divergence from standard LuaJIT in order to support more platforms and for functionality that would significantly benefit lde. But they will be minimal as to avoid the maintenance burden.
The os.tmpname() function now resolves the temporary directory dynamically
instead of hardcoding /tmp. It checks the TMPDIR environment variable
(POSIX standard), falling back to /tmp if unset.
This makes os.tmpname() work correctly on platforms where /tmp is not
writable or does not exist, such as:
- Termux (Android) —
TMPDIRpoints to$PREFIX/tmp - Containerized or sandboxed environments with custom temp locations
- Any system that follows the POSIX convention of setting
TMPDIR
Since v0.12.0, lde compile aims to statically link native dependencies into its executables, and does not export any of its lua symbols from the binary.
This fixes conflicts when trying to use host's liblua which would be clobbered by lde's libluajit symbols.
Additionally, statically linking native dependencies means ffi.C.* would no longer resolve those symbols. A clib hook has been added to LuaJIT to allow resolution of those symbols beyond just dlsym in the lde symbol registry.
You retrieve symbols from the registry via an exported void* lde_sym(const char* name) function natively, and register symbols with void lde_sym_register(lde_sym_table* table).