So, I rewrote my game in C3
Over the past few months, the developer has been rewriting their game, Traction Point, from Zig to C3. Hot-reloading the game code has become an integral part of their development workflow, allowing for quick adjustments such as tweaking UI elements, changing animation ease-in values, or adding temporary print statements to isolate game bugs.
The reason for this rewrite is the slow build times of Zig on Windows, which can take up to 24 seconds for a full build of the game, while C3 compiles the entire game in around 3 seconds. C3 was chosen because it acts as a drop-in replacement for Zig, has the same memory model (no GC, no RAII), compiles to WASM for mod support, is fast, and compiles quickly.
The developer found the code structure in C3 to be quite similar to C# or C++, with the addition of fn annotations at the start of function signatures, explicit handling of lifetime management and scoping, and temporary memory pools as built-in features. The developer also leveraged C3's support for annotations and user-specified built-in annotations, such as @Component for game object components and @Exposed for properties displayed in the level editor inspector.
Rewritten by urgent.news; may contain errors — check the original.
Source: madrigalgames.com