7/16/2026 at 11:48:23 PM
Does the backend output c++20? If so, why? I’m curious what specific features you guys are using from c++20.Have c++20 coroutines been useful at all?
by valorzard
7/17/2026 at 4:25:26 AM
Yes, Clx generates C++20.The main motivation wasn't a particular C++20 feature, but using GCC, Clang and MSVC as a portable optimization and code generation backend instead of LLVM or custom machine code generation.
As for coroutines, no. Clx doesn't use C++20 coroutines because Lua coroutines are stackful, so the runtime uses platform-specific context switching instead.
by _samt_
7/17/2026 at 5:00:07 AM
My understanding of the original question is: what motivated you targeting C++20 instead of e.g. C++17by jxndbdbd
7/17/2026 at 5:08:57 AM
My bad ! There wasn't a strong reason to target C++20 specifically. I simply choose the latest standard available at the time as started experiments.In practice, the code generator doesn't rely heavily on C++20-only features, so targeting C++17 would likely be possible with some adjustments.
by _samt_