Cex.c – Comprehensively Extended C Language
Posted4 months agoActive4 months ago
github.comTechstory
excitedmixed
Debate
40/100
C Programming LanguageLanguage DesignCompiler Extensions
Key topics
C Programming Language
Language Design
Compiler Extensions
Cex.C is a comprehensively extended C language that has sparked interest and debate among HN users, with some praising its innovative approach and others questioning its necessity.
Snapshot generated from the HN discussion
Discussion Activity
Moderate engagementFirst comment
4h
Peak period
6
48-54h
Avg / period
3
Key moments
- 01Story posted
Sep 15, 2025 at 1:05 AM EDT
4 months ago
Step 01 - 02First comment
Sep 15, 2025 at 4:58 AM EDT
4h after posting
Step 02 - 03Peak activity
6 comments in 48-54h
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 17, 2025 at 1:55 PM EDT
4 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45246278Type: storyLast synced: 11/20/2025, 5:28:51 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
In general I think the appeal of "a better C" is limited. The value of C is that it's simple limited thing and there's a compiler for every platform. Your "Better-C" won't have that. What seems like the most universally acknowledged problem with C (unexpected cases of UB) also largely stems from this. There's some effort in the newer standards to nail down some of this in exchange for dropping support for some of the oddball historical stuff like not assuming twos-complement or whatever. Probably the correct path to a better C, rather than adding things on top.
Separate are the efforts at creating new lean systems programming languages that enable you to do the same things as C. But there's not much point in trying to extend C itself at that point.
Somehow the idea of quadrupling the number of footguns is not as appealing an idea to some C programmers as you may think it is.
Name asides (meant to be pronounced sexy), I had the same approach in mind for a long time: single-file distribution, keep the surface syntax, use $ to extend the core language, transpiling for the win. Glad that I'm not alone.
Nice :-)
I wonder how many sense-of-humour-impaired people are going to bristle at that