Re: [ANN] CLX - Ahead-of-Time Lua 5.5 Compiler

[email protected] Wed, 24 Jun 2026 21:03:06 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
Thanks for those questions :

	*

The GC is a custom implementation. It's an incremental mark-and-sweep 
collector designed specifically for CLX runtime.
	*

Garbage collection is per LState, not shared globally. "Stop the world" 
therefore only applies to the state being collected, not to all 
application threads. Native threads can/should run independent states 
concurrently.
	*

Regarding dynamic Lua code, CLX currently takes a strict AOT approach. 
The current focus is on statically compiled Lua applications rather than 
hybrid AOT/interpreted execution model.

Le 24/06/2026 13:57, Viacheslav Usov a écrit :

> On Sun, Jun 21, 2026 at 5:17 PM <[email protected]> wrote:
> 
>> 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).
> 
> Hi, some questions which I could not find good answers for yet.
> 
> 1. GC. Is it based on some well known project? If so, could you
> reference that? If not, well, where is its code?
> 2. Native multithreading. The original Lua VM ignores native OS
> threads and keeps everything, including GC, in a Lua state. If
> somebody wants to run a Lua state on multiple native threads it is
> their problem. What about CLX? In particular, is GC shared or also per
> state? What does "stop the world" mean then?
> 3. What is the strategic plan for dynamic Lua code?
> 
> Cheers,
> V.

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/fcd3d35b81874ffc1e89138bedeedb65%40luart.org.