News for hackers. Stuff that matters.
Re:C Isn't a Language by nacozarina on Thursday February 05, 2026 @08:04PM (#46907698)
None of the alternatives have stability. What was exemplary & idiomatic rust pre-pandemic would be churlish & rejected now and the toolchain use would be different anyway.

Carpenters, plumbers, masons & electricians work on houses 3-300 yrs old, navigate the range of legacy styles & tech they encounter, and predictably get good outcomes.

Only C has, yet, given use that level of serviceability. C99, baby, why pay more?

When there’s an alternative that can compete with that sort of real-world durability, C will get displaced.

Re:C Isn't a Language by charleslmunger on Thursday February 05, 2026 @08:30PM (#46907871)
C99, but with a million macros backporting features from newer language versions and compiler extensions. Lovely features you don't get with ordinary c99:

free_sized

#embed

static_assert

Types for enum

Alignof, alignas, aligned_alloc

_Atomic

Re:C Isn't a Language by okanat on Thursday February 05, 2026 @08:41PM (#46907937)
The replacement has already happened. It is HTTP and JSON for 99% of the software developed today. The reason C stayed has multiple reasons but most obvious ones are for me are:

- People just stopped caring about operating systems research and systems programming after ~2005. Actual engineering implementations of the concepts largely stopped after the second half of 90s. Most developers moved on to making websites or applications in higher level programming languages.

- C hit a perfect balance of being a small enough language to grok, being indepedent of the system manufacturers, reflecting the computer architecture of 80s, actually small in syntax and code length and quite easy to implement compilers for. This caused lots of legacy software being built into the infrastructure that gave birth to the current contemporary popular OSes and more importantly the infrastructure of the Internet. Add in .com bubbles and other crises, we basically have/had zero economic incentive to replace those systems.

- Culture changed. We cared more about stability, repairability and reusability. Computers were expensive. So are programmers and software. Now computers are cheap. Our culture is more consumerist than ever. The mentality of "move fast and break things" permeated so well with economic policy and the zeitgeist. With AI it will get worse. So trying to make a real alternative to C (as a generic low level OS protocol) has reduced cultural value / optics. It doesn't fill the CVs as well.

It doesn't mean that people haven't tried or even succeeded. Android was successful in multiple fronts in replacing C. Its "intents" and low level interface description language for hardware interfaces are great replacement for C ABI. Windows' COM is also a good replacement that gets rid of language dependence. There are still newer OSes try like Redox or Fuchsia.

Re:C Isn't a Language by noosphr on Thursday February 05, 2026 @10:04PM (#46908537)
I'd never thought I'd see the day that anyone praises COM.
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @03:41AM (#46910483)
As idea it is great, as the tooling available in C++ Builder, Delphi, VB 6, C++/CX (WinRT is basically COM with extras) also great.

Using it from MFC, kind of alright.

Using it from .NET, depends if Framework, .NET Native, or modern, with various levels of usability.

Using it from ATL, WRL, C++/WinRT, is a mess unfortunely.

Re:C Isn't a Language by tonyedgecombe on Friday February 06, 2026 @04:02AM (#46910608)
If you read Don Box’s book on COM he goes through every decision they made and the rationale for it. It all seemed to make sense.

Unfortunately I think Don Box’s was the only person in the world who really understood it all.

Re:C Isn't a Language by okanat on Friday February 06, 2026 @06:05AM (#46911432)
Compared to wobbly types in C and hidden contracts due to C compiler internals, COM's IDL-based approach is much better!
Re:C Isn't a Language by sinnsro on Thursday February 05, 2026 @10:16PM (#46908629)
> It doesn't mean that people haven't tried or even succeeded. Android was successful in multiple fronts in replacing C. Its "intents" and low level interface description language for hardware interfaces are great replacement for C ABI. Windows' COM is also a good replacement that gets rid of language dependence. There are still newer OSes try like Redox or Fuchsia.

I am not sure I buy this from a system perspective, especially when taking this[1] into consideration.

______

1. Alexis King's reply to "Why do common Rust packages depend on C code?". Link: https://langdev.stackexchange.com/a/3237

Re:C Isn't a Language by trueismywork on Thursday February 05, 2026 @09:51PM (#46908442)
Name me a stable binary interface that is not ints and arrays of ints
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @03:43AM (#46910498)
COM, WinRT, XPC, AIDL.

Now you can move the goal posts and assert that any data serialized into a memory buffer is an array of ints.

Re:C Isn't a Language by okanat on Friday February 06, 2026 @04:52AM (#46910929)
C ABI is more than how ints and array of ints sit next to each other in memory.

It cares about calling conventions and what you can store in registers vs what you cannot. There are multiple possible ways of doing an RPC call and C ABI only provides one way of doing it.

Re:C Isn't a Language by kevin_thibedeau on Friday February 06, 2026 @10:50AM (#46914292)
How big is an int?
Re:C Isn't a Language by chasil on Thursday February 05, 2026 @10:21PM (#46908660)
In pieces of my code, I need to call setuserid() to manage some of the security that I designed in 2010.

There was no Rust at that point, and I used the most basic tool that could do it.

Could I have done this in Java with gymnastics of JNI, linking C into the JRE?

Definite maybe.

Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @03:45AM (#46910508)
Yes, nowadays with Panama, and before Rust was around, JNA was already there so using JNI wasn't strictly necessary.
Re:C Isn't a Language by direwolf20 on Friday February 06, 2026 @07:29AM (#46911993)
JNA is a whole dependency of its own, shame it's not built into the JRE
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @08:07AM (#46912377)
It is nowadays, that is what Panama is for.

Unless one is stuck with Android Java, Google's J++.

Re:C Isn't a Language by kogasa240p on Thursday February 05, 2026 @09:26PM (#46908239)
>Culture changed. We cared more about stability, repairability and reusability. Computers were expensive. So are programmers and software. Now computers are cheap. Our culture is more consumerist than ever. The mentality of "move fast and break things" permeated so well with economic policy and the zeitgeist. With AI it will get worse. So trying to make a real alternative to C (as a generic low level OS protocol) has reduced cultural value / optics. It doesn't fill the CVs as well.

IMO I do see this changing in the future as higher power computers become expensive once again, and I'm not just referring to the recent chip shortage.

Re:C Isn't a Language by PaulDavisThe1st on Friday February 06, 2026 @12:36AM (#46909496)
> People just stopped caring about operating systems research and systems programming after ~2005.

and so it was that after that date, all development of

   embedded systems
   kernel drivers
   digital audio workstations
   video editors
   codecs for audio and video
   anything that involved actually controlling non-computer hardware
   game engines
came to a grinding halt, and no further work was done.
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @03:38AM (#46910470)
On Windows, macOS and Android, most of that development on that list is done in C++, not C.
Re:C Isn't a Language by okanat on Friday February 06, 2026 @05:06AM (#46911029)
What I mean is all of those things are more of the same things we did since 90s.

It is better and higher performing hardware but until Rust and Zig arrived, the most popular ways of designing system-level software stayed the same. RTOSes work the same as how they work in late 90s / early 00s. C ABI is still the majority of communication interface. Interacting with OS using system calls stayed the same. After virtual memory and paging no big change in OS design happened. Main programming design patterns in C and C++ also stayed the same.

One area that stayed interesting is GPU programming. Nowadays CPUs basically provide us a PDP-11 simulator. Most of the time you don't need to recompile programs to harness most of the gains from a CPU. GPUs expose more of their internal hardware detaila than CPUs and unlike CPUs you need to recompile programs (which is what a GPU userspace driver does) to use newer models.

Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @09:37AM (#46913342)
Nowadays, NVidia designs their GPUs for C++, not C.

"Designing (New) C++ Hardware" - https://www.youtube.com/watch?v=86seb-iZCnI

And now with tiled architecture, Python JIT as well.

Re:C Isn't a Language by jacinabox on Friday February 06, 2026 @02:12PM (#46916866)
If you think about it, those who shape mainstream opinion on operating systems were always mostly bought off, and invested in the mainstream operating systems. That investment meant that a niche operating system like Plan9 or BeOS was never going to see wide support from the opinion shapers, even if those OSes had some interesting ideas.
Re:C Isn't a Language by xigoi on Saturday February 07, 2026 @02:30PM (#46926814)
> C hit a perfect balance of being a small enough language to grok, being indepedent of the system manufacturers, reflecting the computer architecture of 80s, actually small in syntax

C is a complex language with complex syntax. The C specification is, like, 800 pages. And good luck implementing a C parser as easily as you could a Scheme parser.

Re:C Isn't a Language by cannonpr on Thursday February 05, 2026 @08:54PM (#46908020)
Having just finished renovating a 140-year-old home with solid brick walls that was slowly collapsing and deteriorating due to the aforementioned professionals’ application of modern and chemically incompatible materials to it… I’m not sure I agree. It’s also why a lot of the UK’s building stock is slowly rotting with black mould right now. Literally none of the professionals I hired, before I trained them, knew how to properly repair a type of home that represents 30% of the UK building stock.
Re:C Isn't a Language by yeame on Friday February 06, 2026 @02:24PM (#46916996)
lol
Re:C Isn't a Language by ux266478 on Thursday February 05, 2026 @10:29PM (#46908729)
> Only C has, yet, given use that level of serviceability.

On the contrary, Lisp outshines C to a large degree here. Success has nothing to do with technical merit (if such a thing even exists), it's not a rational game.

Re:C Isn't a Language by Panzer04 on Thursday February 05, 2026 @10:35PM (#46908773)
What makes you say that?
Re:C Isn't a Language by ux266478 on Thursday February 05, 2026 @11:06PM (#46908992)
Reduce is a Lisp library that's still in active use from 1968, making it older than C itself. We can point to GNU Emacs as an ancient and venerable self-contained Lisp tortoise with more wrinkles than are finitely enumerable, and is in fact a hosted Lisp operating system. Pulling it apart and working with it is admittedly a treat even if I loathe it as a text editor. Mezzano is a modern Lisp OS that you can play with in a VM, and might give you an idea of why Lisp is such a great systems language.

In short: Lisp is semantic and geared towards a living system. The basic REPL is sh + cc + ld + db (and a few others) all in one. It's almost a little mind bending how nice these systems are put together, how cleanly they work. C is like pulling teeth in comparison.

I'm not even a fan of Lisp or sexpr languages. But it's the obvious heavyweight champion of longetivity and ultra-pragmatic service record... Yes, even in the systems domain.

Re:C Isn't a Language by jklowden on Friday February 06, 2026 @10:45AM (#46914234)
Not sure how viable Mezzano is. The most recent bug report was two years ago. The “beginnings of a manual” was last updated 7 years ago.

A better example might be Guix, depending how “operating system” is defined.

Re:C Isn't a Language by ux266478 on Friday February 06, 2026 @12:42PM (#46915817)
Both of which are besides viability. It's just a usable system that gets you an idea of how an OS works when it's Lisp all the way down. It didn't invent this idea, it's just a modern example of it.
Re:C Isn't a Language by thayne on Friday February 06, 2026 @12:41AM (#46909530)
FWIW, the crabi project within rust is trying to improve on some parts of it. But it is still built on (a subset of) the environments c ABI. And it doesn't fix all the problems.
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @03:35AM (#46910454)
Outside UNIX clones, and embedded space where it is mostly a religious point of view than available compiler toolchains, C has already been displaced.

Even the most relevant C compilers are no longer written in C.

Re:C Isn't a Language by kreco on Friday February 06, 2026 @04:34AM (#46910816)
> Even the most relevant C compilers are no longer written in C.

Worth to point out that most of the C compilers are also C++ compilers.

So the point is kind of distorted.

Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @06:21AM (#46911544)
On the contrary, GNU Compiler Collection is written in C++ and happens to have C as one of the supported fronteds, having moved away from C in 2008.

LLVM is written in C++, also supports multiple language frontends, one of them happens to be C.

Visual C++, also written in C++, happens to still compile some form of C, and after adding some C11 and C17 support (a few items are still missing in 2026), Microsoft is in no rush to add anything else.

The language that matters is the implementation, otherwise we can also talk about the relevance of PL/I compilers from IBM and Unisys, written in C++.

Re:C Isn't a Language by mbonnet on Monday February 09, 2026 @01:40PM (#46949063)
Rust is making huge headway in mission-critical embedded.
Re:C Isn't a Language by NuclearPM on Friday February 06, 2026 @10:06AM (#46913711)
Churlish can’t be the right word here.