{"by":"lerno","descendants":185,"id":43569724,"kids":[43573026,43575284,43571980,43572190,43571523,43574510,43598675,43578987,43574947,43575206,43585069,43572189,43573988,43575555,43574518,43597505,43595908,43571762,43579346,43583891,43580343,43579487,43575101,43571803],"score":175,"text":"Get it from here: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;c3lang&#x2F;c3c\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;c3lang&#x2F;c3c</a><p>In 2019, while contributing to the C2 language, I started up &quot;C3&quot; as a pet project while waiting for pull requests to be approved...<p>Now it&#x27;s 6 years later and C3 well on its way to 1.0, having released 0.7.0 last week.<p>Unlike other C alternatives, C3 tries to evolve C – but without concern to backwards compatibility to the latter.<p>What it adds to C is among other things:<p>- Module system<p>- Semantic macros and compile time introspection<p>- Lightweight generic modules<p>- Zero overhead errors<p>- Build-in slices and SIMD types<p>- Gradual contracts<p>- Built-in checks in debug mode<p>You can find more details on the site: <a href=\"https:&#x2F;&#x2F;c3-lang.org\" rel=\"nofollow\">https:&#x2F;&#x2F;c3-lang.org</a>\nIt might be interesting to look at the examples: <a href=\"https:&#x2F;&#x2F;c3-lang.org&#x2F;language-overview&#x2F;examples&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;c3-lang.org&#x2F;language-overview&#x2F;examples&#x2F;</a> so see how the language looks for some simple examples.<p><i>Some other links that might be interesting follows:</i><p>I&#x27;ve posted about C3 on HN before, notably<p>- <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24108980\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24108980</a><p>- <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27876570\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27876570</a><p>- <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32005678\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32005678</a><p>Here are some interviews on C3:<p>- <a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=UC8VDRJqXfc\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=UC8VDRJqXfc</a><p>- <a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9rS8MVZH-vA\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9rS8MVZH-vA</a><p>Here is a series doing various tasks in C3:<p>- <a href=\"https:&#x2F;&#x2F;ebn.codeberg.page&#x2F;programming&#x2F;c3&#x2F;c3-file-io&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;ebn.codeberg.page&#x2F;programming&#x2F;c3&#x2F;c3-file-io&#x2F;</a><p>Some projects:<p>- Gameboy emulator <a href=\"https:&#x2F;&#x2F;github.com&#x2F;OdnetninI&#x2F;Gameboy-Emulator&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;OdnetninI&#x2F;Gameboy-Emulator&#x2F;</a><p>- RISCV Bare metal Hello World: <a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0iAJxx6Ok4E\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0iAJxx6Ok4E</a><p>- &quot;Depths of Daemonheim&quot; roguelike <a href=\"https:&#x2F;&#x2F;github.com&#x2F;TechnicalFowl&#x2F;7DRL-2025\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;TechnicalFowl&#x2F;7DRL-2025</a>","time":1743688538,"title":"Show HN: The C3 programming language (C alternative language)","type":"story","url":"https://github.com/c3lang/c3c"}