Write high frequency trading strategy logic without garbage collector pauses.
Compile Lua-like code into firmware for Raspberry Pi Pico or ESP32.
Build small, fast standalone executables with predictable memory use.
| panshaogui/l2c | k0nserv/dotfiles | orlp/ncui | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Lua | Lua | Lua |
| Last pushed | — | 2026-05-02 | 2015-03-13 |
| Maintenance | — | Maintained | Dormant |
| Setup difficulty | hard | easy | moderate |
| Complexity | 5/5 | 2/5 | 1/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Requires Docker and cross-compilation toolchains for embedded targets.
L2C is a compiler that turns a strict, typed subset of the Lua programming language into native C code with no garbage collector. It is built for two very different but equally demanding worlds: high frequency trading systems, where even a tiny pause to clean up memory can cost money, and small embedded devices like the Raspberry Pi Pico or ESP32, where there is barely any memory to spare in the first place. The core idea is that Lua's friendly, script like syntax is easy to write, but its usual garbage collector introduces unpredictable pauses. L2C removes that garbage collector entirely and forces the programmer to use fixed, pre-allocated blocks of memory instead. It supports things like fixed size buffers, a pool of memory that can be instantly reset between processing steps, and direct ways to read raw bytes as structured data without the usual conversion overhead. In exchange for this control, L2C deliberately refuses to support features that need a garbage collector, such as joining strings on the fly, flexible dictionaries, closures that capture variables, or coroutines. The project also ships a small standard library of ready made connectors to popular C and C++ tools, covering fast networking, lightweight databases, JSON parsing, asynchronous event loops, and bare metal operating systems for microcontrollers. To build a program, developers write their logic in this typed Lua subset, then use Docker based build environments to compile it into either a small standalone program for a regular computer or firmware for a microcontroller. This is a niche, opinionated tool aimed squarely at experienced systems programmers working on trading software or embedded firmware who want Lua's simpler syntax without giving up the speed and predictability of hand written C. It is not meant as a general purpose Lua compiler, and the maintainer states plainly that requests to add garbage collection support will not be accepted.
A compiler that turns a typed subset of Lua into garbage-collector-free native C, for trading systems and embedded devices.
Mainly Lua. The stack also includes Lua, C, Docker.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.