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

[email protected] Fri, 26 Jun 2026 18:01:32 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
CLX coroutines are stackful.

Internally they use ucontext (POSIX) or Windows Fibers (Windows), so 
yielding is implemented as a context switch between execution contexts 
rather than via longjmp.

This means local state and call frames remain intact across yields.

For native C++ modules, yielding follows the same coroutine semantics as 
Lua: execution can be suspended and resumed without manually preserving 
state.

Le 26/06/2026 08:35, 'Sewbacca' via lua-l a écrit :

> This peaks my interest: How did you implement yielding under the hood? 
> Did you use longjmp or did you employ a different technique? And what 
> does yielding mean for the C++ interface?
> 
> ~ Sewbacca
> 
> --
> 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/1c10d7db-e7bb-4bc0-a39c-f1e83aca1995%40kolabnow.com 
> [1].


Links:
------
[1] 
https://groups.google.com/d/msgid/lua-l/1c10d7db-e7bb-4bc0-a39c-f1e83aca1995%40kolabnow.com?utm_medium=email&utm_source=footer

-- 
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/9e9ffe99be701b46cc8eca4e861321de%40luart.org.