[ANN] CLX - Ahead-of-Time Lua 5.5 Compiler
Hello,
CLX is a new open-source ahead-of-time compiler for Lua 5.5.
CLX compiles Lua source code to standalone native executables through modern C++20 toolchains (Clang, GCC, and MSVC).
Current features include:
- Native standalone executable compilation
- Support for most Lua 5.5 language features
- Cross-platform support (Linux, Windows, and macOS)
- Lightweight runtime designed for AOT compilation
- C++ API for native modules
- Example projects (a fully playable Pong game and a Mandelbrot fractal renderer)
Recent benchmarks show consistent speedups over the standard Lua interpreter and competitive performance with LuaJIT on a number of workloads.
The project is currently in beta and feedback is welcome.
Website:
https://samyeyo.github.io/clx
GitHub:
https://github.com/samyeyo/clx
Although I am also the author of LuaRT, CLX is a completely independent project with a different architecture and different goals.
Thank you,
Samir Tine
28
Upvotes
View all comments
Show parent comment
4
u/_SamT Jun 21 '26
You're right and that's why CLX uses a custom dynamic Lua table implementation, not std::unordered_map or generated C++ structs. Dynamic tables are still one of the biggest performance challenges, and table specialization is one of the areas I'm actively working on.