[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
3
u/suhcoR Jun 22 '26
There are also two different C++ implementations of the suite: my own using C++98 (https://github.com/rochus-keller/Are-we-fast-yet/tree/main/Cpp) and the "official" one using a later standard (https://github.com/smarr/are-we-fast-yet/tree/master/benchmarks/C%2B%2B). I also implemented a C version (https://github.com/rochus-keller/Are-we-fast-yet/tree/main/C). You already have some benchmarks in your collection which are also used in Awfy; the advantage of the latter is the mixture of micro and larger benchmarks and the comparability (due to controlled implementations).