Stackless coroutines for gamedev in ~200 lines of C++ -- Vittorio Romeo
C++20 coroutines have lovely syntax, but they're a terrible fit for games.
In this article, we'll build a macro-base alternative that's more suitable for game development in ~200 lines of C++.
Stackless coroutines for gamedev in ~200 lines of C++
by Vittorio Romeo
From the article:
For a game I want a coroutine that is part of an object’s data. When the object dies, the coroutine dies with it. When I serialize the object to a save buffer, the coroutine’s state goes with it. When the optimizer is off, there is no extra cost compared to the equivalent state machine. C++20 coroutines do not provide any of these guarantees out of the box.
Let’s build something that does.


Ever wondered why your clean, object-oriented design sometimes slows things down? This piece breaks down how virtual dispatch impacts performance—and how techniques like devirtualization and static polymorphism can eliminate that overhead entirely.
In algorithmic trading, the Python-vs-C++ debate is usually framed as flexibility versus speed — rapid strategy development on one side, ultra-low-latency execution on the other. But with C++26 reflection, that trade-off starts to disappear, making it possible to generate Python bindings automatically while keeping the core logic running at native C++ performance.