C3 is a language designed as an evolution of C, without retaining strict backwards compatibility, but excellent interop with C.
This version departs from its rather uncommon module-based generics, but doesn't go all the way to C++ style templates. Instead generics can be grouped for common constraint checking on template parameters and instantiation. As usual it also contains fixes and additions to the stdlib.
C3 is a language designed as an evolution of C, without retaining strict backwards compatibility, but excellent interop with C.
This version departs from its rather uncommon module-based generics, but doesn't go all the way to C++ style templates. Instead generics can be grouped for common constraint checking on template parameters and instantiation. As usual it also contains fixes and additions to the stdlib.
Some older posts on C3:
- https://news.ycombinator.com/item?id=46463921
- https://news.ycombinator.com/item?id=43569724
- https://news.ycombinator.com/item?id=24108980
- https://news.ycombinator.com/item?id=27876570
- https://news.ycombinator.com/item?id=32005678
Try out C3 in the browser:
- https://www.learn-c3.org
Here are some interviews on C3:
- https://www.youtube.com/watch?v=UC8VDRJqXfc
- https://www.youtube.com/watch?v=9rS8MVZH-vA
Here is a series doing various tasks in C3, slightly dated:
- https://ebn.codeberg.page/programming/c3/c3-file-io/
Repository with link to various C3 resources and projects:
- https://github.com/c3lang/c3-showcase
Some projects:
- Gameboy emulator https://github.com/OdnetninI/Gameboy-Emulator/
- RISCV Bare metal Hello World: https://www.youtube.com/watch?v=0iAJxx6Ok4E
- "Depths of Daemonheim" roguelike https://github.com/TechnicalFowl/7DRL-2025