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

Samir Tine <[email protected]> Wed, 24 Jun 2026 06:13:54 -0700 (PDT)
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>

Thank you for your questions : 

   1. 
   
   The GC is a custom implementation. It's an incremental mark-and-sweep 
   collector designed specifically for CLX's runtime.
   2. 
   
   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 run independent states concurrently. But there 
   is no mechanism implemented for thread safety or for sharing values between 
   LStates.
   3. 
   
   Regarding dynamic Lua code, the current focus is on statically compiled 
   Lua applications rather than hybrid interpreter execution models. Maybe in 
   the future, an embbedded Lua interpreter could be used for this dynamic 
   code (but it seems very complex at first sight, specifically when yielding 
   from/to the interpreter to/from the CLX runtime) 
   

Le mercredi 24 juin 2026 à 13:57:25 UTC+2, 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/2cf8790a-331e-4c6b-8f62-d750f42511bfn%40googlegroups.com.