News for hackers. Stuff that matters.
Re:C Isn't a Language by ChrisSD on Thursday February 05, 2026 @11:47PM (#46909260)
It minimally reflects PDP-11 assembly, which is not how modern computers work.
Re:C Isn't a Language by uecker on Friday February 06, 2026 @01:33AM (#46909799)
This is a meme which is repeated often, but not really true. If you disagree, please state specifically what property of PDP-11 you think it different from how modern computers work, and where this affects C but not other languages.
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @03:48AM (#46910524)
It lacked SIMD instructions.
Re:C Isn't a Language by tmtvl on Friday February 06, 2026 @07:20AM (#46911926)
Don't forget about branch prediction (GCC may have __builtin_expect, but that's not standard C).
Re:C Isn't a Language by direwolf20 on Friday February 06, 2026 @07:33AM (#46912019)
The compiler usually can't do anything about branch prediction. Expect is more about keeping cold paths out of the cache.
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @08:10AM (#46912398)
Actually that was one of the problems with EPIC architectures, where compilers are expected to be the ones doing those kind of optimizations.
Re:C Isn't a Language by uecker on Friday February 06, 2026 @02:21PM (#46916965)
C compilers can emit SIMD instructions just fine and often have extensions to support writing it explicitly. Also few other languages have explicit support for them from the start and most have added them as some kind of extension later. So the idea that this is some fundamental computer architecture thing C got wrong seem pretty far-fetched. Support for multi-core processing would be a more plausible thing to look at, but even there it seems that C still does quite well.
Re:C Isn't a Language by jcgl on Saturday February 07, 2026 @03:54AM (#46922393)
This isn’t my space to opine on, but I found this talk both riveting and compelling: https://m.youtube.com/watch?v=36myc8wQhLo&t=1s&pp=2AEBkAIB

In a nutshell, the useful fiction of computer-as-Von-Neumann-meaning doesn’t adequately reflect the reality of modern hardware. Not only does the CPU itself not fit that model (with things like speculative execution, sophisticated power and load management…), but the system as a whole is increasingly an amalgamation of different processors and address spaces.