←back to thread

76 points mpweiher | 1 comments | | HN request time: 0s | source
Show context
stevefan1999 ◴[] No.43116899[source]
C is undeniably a legendary programming language, but it's time to move beyond the constraints of the C abstract machine, which was heavily shaped by the PDP-11 due to Unix's origins on that architecture. C feels outdated for modern computing needs.

It lacks features like lambda calculus, closures, and coroutines—powerful and proven paradigms that are essential in modern programming languages. These limitations make it harder to fully embrace contemporary programming practices.

The dominance of C and its descendants has forced our systems to remain tied to its design, holding back progress. Intel tried to introduce hardware assisted garbage collection, which unfortunately failed miserably because C doesn't need it, and we are still having to cope with garbage collection entirely in software.

While I’m not suggesting we abandon C entirely (I still use it, like when writing C FFI for some projects), we need to explore new possibilities and move beyond C to better align with modern architectures and programming needs.

replies(4): >>43117623 #>>43117644 #>>43120821 #>>43123545 #
codr7 ◴[] No.43117623[source]
I'm pretty sure the second there is a significantly better alternative that offers the same flexibility and control, plenty of people will jump.

Same for C++.

Assuming everyone else is an idiot leads nowhere worth going.

replies(1): >>43117656 #
ff317 ◴[] No.43117656[source]
https://ziglang.org/ is a solid future C-replacement, IMHO. There's pretty much no downsides and all upsides from a C hacker's perspective. It just hasn't reached 1.0 yet!
replies(1): >>43117769 #
1. flohofwoe ◴[] No.43117769[source]
Zig is a nice language, but from a 10000 ft view it's not fundamentally different from C (thankfully) - at least from the CPU's point of view. Any hardware that's a good match for C is also a good match for Zig.