I fail to see how this is anything but a reheat of the same old arguments.
Meanwhile, in the real world, from the author of curl:
> I know I’m repeating myself but: out of the 81 vulnerabilities we have confirmed in curl so far during 2026, 14 were the result of mistakes that most likely would have been avoided had we used a memory-safe language such as rust. That’s 17.3%.
The article suffers from the usual issues - like jumping straight to the author’s favorite pet language- I absolutely would encourage fewer programs written in C++ and C (and Rust) - it is so rarely worth the risks to take on memory management by oneself.
But there will always be cases, and those usually involve strict performance requirements where RAII-style memory management (i.e. Rust) is a poor fit anyway.
17% is a significant proportion. in any serious engineering discipline, a solution which eliminates 17% of critical failure modes would be seen as a great success, instead you have people whining about how they don’t like the aesthetics of the language or it forces them to write code a bit differently.
Any serious discussion would consider the benefit (17%) and weigh the cost.
For example;
What is the likelihood of rewriting curl without introducing (more than a few minor) issues?
When rewriting, what are the odds of losing long-standing contributors?
How would curl feel about being unable to support some machine architectures they support today?
How would curl continue to provide a good interoperability experience? (Again, how many projects downstream are saddled with an additional compiler to install etc because of curl’s choices)
What about developer velocity? Could they respond as fast to those non-17% issues (you know; the vast majority) as fast and well as they do today?
Put simply, if every cost is free, 17% is good - being a serious engineer, as you say, is about determining if something costs more than it gains you.
• Buffer overflow -> Bounds checks.
• Null pointer dereference -> Basically safe outside of embedded.
• Use after free -> Hard (temporal safety).
• Use of uninitialized memory -> Compilers already warn us.
• Illegal free -> Hard (temporal safety).
In broad strokes. I don't think current C compilers catch all uninitialised memory use. Having a variant that enforces it however is pretty easy. Bounds checks are similar. Proving the absence of overflow at compile time is impossible in the general case without proof assistance, but we can always have an incomplete analysis that inserts runtime checks when it's not sure. Same thing for null pointer dereference, just add a checks on systems that don't guarantee a safe segfault.
All those could easily be solved with a slightly modified C compiler already. Zig to name but one basically does it already. So we're left with the two hard ones: use after free, and illegal free. For those there are 3 well known solutions: garbage collection (a performance deal breaker in many cases), and borrow checking (a godsend or a pain in the butt, depending who you ask), and smart pointers (not quite safe in C++, but they do help a ton).
What's practically unheard of in the industry however are arenas. https://www.dgtlgrove.com/p/untangling-lifetimes-the-arena-a... Sure, most game devs know of this, and it does have serious traction in some circles (the Handmade community comes to mind). But never once have I seen it applied in my day job since I started 20 years ago. In fact, I have never seen anyone use anything other malloc()/free() or new/delete.
Which is a shame, because arenas have the potential to simplify memory management to the point where memory safety bugs (assuming we have proper bounds checks) drop near the bottom of our list of concerns. I mean, I'd be fairly surprised if in Zig or Odin projects that mostly use arenas, memory safety bugs still comprised 2/3rd of all high and critical vulnerabilities.
C compilers have had 50 years for introducing fat pointers as extension, they could even base the idea on Dennis Ritchie or Walter Bright proposals to WG 14, yet here we are.
Memory safety is a nice thing if you have full control over all the code you use. But as long as there is a unsafe keeword neccersary it is futile. Any change in any unsave code may break all the nice borrow checking in only one call. I even think telling the user they are memory save but call unsafe code in the os layer is a extreme bad idea. Real memory safety needs a all or noting approach. I use rust binarys that fail with panics because something out if rusts scope goes wrong, mostly memory related
> C and C++ won’t die, but they will likely decline and become legacy languages like Cobol or Ada.
Yes, any day now, the languages powering Linux, every major RDBMS, every distributed storage engine, every hypervisor, every browser engine, every AAA game engine, LLVM/GCC toolchains, and the embedded world are going to turn into COBOL - because Google wrote some Android Binder code in Rust, and a government working group published a PDF. For sure.
But if anything the "In Budget, On Schedule" section makes a surprisingly lucid case for why you shouldn’t rewrite working systems.
Another option might be to prove memory safety for C code.
I'm exploring this possibility with https://github.com/jfhg/c2lean
by translating C code using Clang to LLVM IR and using LLMs to prove safety or functional properties of the code.
For small fragments it's quite nice. I'm not sure how that approach could scale to larger code bases though.
It seems like you've got a steady state fallacy. It is true that things are as they are, and yet it's also true that they weren't always that way and can be expected to be different in the future.
"Nothing will change" is probably the stupidest possible guess in any dynamic system.
Take a system where we have play-by-play data over a long period, Firefox. Ten years ago C++ makes up about 60% and C another 25% of the codebase and there was a trifling amount of Rust as it was newly introduced. They didn't stop writing C or C++ but they did write a lot of Rust, and so now only about 45% is C++ and C about 15%.
Legacy languages don't "turn into COBOL", they remain exactly as they are, like COBOL did, and the world changes anyway.
It's more like "Nothing will change significantly in the foreseeable future", which might be true - A lot of C or C++ codebases will never migrate to other languages, just like a lot of the surviving COBOL codebases haven't been successfully migrated to anything else for 50+ years.
There is a lesson in here: there are codebases that resist rewrites (I've seen many Java and C# projects try to replace COBOL applications and failing spectacularly). I imagine some parts of Linux will remain C for the foreseeable future, but the Rust corpus in it will only increase. Same for Firefox - some parts are just hard to express in different semantics (and, if you write Rust with C semantics, you are just writing C with a different syntax).
His point is that the old code bases do not get displaced because the language they were built on is obsolete.
The only thing that can obsolete those code bases isn't yet another AI boosted language, the thing that makes the old code bases obsolete is a newer code base that is either simply better on a technical basis or is easier to use. At least one of those paths must lead to mass appeal to take advantage of network effects in favor of the new code base.
Unfortunately the "change" goes into the wrong overall direction for Firefox. If the market share keeps shrinking (in those same 10 years from around 8% to around 2% today) it might be completely dead before the transition to Rust is finished (and it doesn't look like Rust made them any faster, for instance the WebGPU implementation in Firefox is still not nearly in the same shape as Chrome's or Safari's).
(and FWIW, currently I wonder how "LLM hardened" C code will compare to Rust, from what I've seen so far LLMs do a pretty good job at finding latent bugs and edge cases in C code, e.g. specific language properties might not play such a big role in the future as they did in the past)
>(and FWIW, currently I wonder how "LLM hardened" C code will compare to Rust, from what I've seen so far LLMs do a pretty good job at finding latent bugs and edge cases in C code, e.g. specific language properties might not play such a big role in the future as they did in the past)
Isn't this the ultimate self own? Saying that your language is so bad that only AI can help you fix your own code from containing severe security problems. The smart enough C developer isn't even human anymore.
Writing C code by hand and have it reviewed by LLMs remains an enjoyable middleground. In that scenario, the LLM is just another static analyzer tool.
Typical Rust OTH is neither a joy to read nor to write for humans, so the LLM remains the only option to create and maintain Rust codebases ;P
Also memory safety isn't the only thing that matters, iteration speed and code simplicity might too, and large C code bases build infinitely faster and are also easier to read and understand than typical Rust or C++ codebases)
So far I have only written trivial code in Rust, but I really find the puzzle it poses quite enjoyable. It forces me to understand what I'm doing much more deeply than C would. Most of the time I write Python, but I'm always aware of the ownership of shared mutable state because I learned to do multithreading a long time ago and it's not something you can unlearn.
I suspect once someone gets comfortable with Rust, their code will be better because of it (kind of what Bruce Perens says about Lisp).
> I really find the puzzle it poses quite enjoyable
I kinda enjoyed the puzzle solving aspect of C++ code (in my mind, C++ and Rust are essentially the same thing) when I was younger, but eventually I preferred when the programming language just completely "disappears" from the mind during programming sessions (because tbh, the "language puzzle solving" just distracts from the actually important "problem solving" part). Small and simple languages like C or Go (also Zig, have that quality for me, "big" languages like C++ or Rust don't.
A few observations:
- I always get the sense we all live in our own little bubbles.
- It's clearly not economically viable to manually transition all codebases to rust or any other mem-safe lang.
- How cute that the paper points out that any mem-safe language is fine, though rust is always the prime example. Almost as if this is a rust marketing piece, but the author wants to move
away from the controversy.
- Is mem-safety even that important when hardware has mitigations like MTE (or capabilities in the future)?
- Is mem-safety even important when we're going through the tectonic shift of AI developing code and AI reviewing it! Where limitations of human perception/attention are no longer that relevant?
> - Is mem-safety even that important when hardware has mitigations like MTE (or capabilities in the future)?
What memory-safe languages do is to make it nearly impossible to express a class of bugs. If the CPU has CHERI or memory tagging support, the compiler can turn an unsafe language into code that relies on those and render even the bugs unexploitable (but won't make the program correct - it will still have a bug).
AI can find and fix the bugs that already exist in lots of C code out there, and this is being done, so, at some point, even the chronically unsafe code will be free of bugs and, therefore, safe.
> the paper points out that any mem-safe language is fine, though rust is always the prime example. Almost as if this is a rust marketing piece
I regard Rust itself as a marketing piece and exhibit A is the world's largest advertising corporation being one of the founding members of the "Rust Foundation" with other scumbuckets rounding out the rogues' gallery.
Meanwhile, in the real world, from the author of curl:
> I know I’m repeating myself but: out of the 81 vulnerabilities we have confirmed in curl so far during 2026, 14 were the result of mistakes that most likely would have been avoided had we used a memory-safe language such as rust. That’s 17.3%.
https://daniel.haxx.se/blog/2026/11/17/actual-curl-rewrites-...
The article suffers from the usual issues - like jumping straight to the author’s favorite pet language- I absolutely would encourage fewer programs written in C++ and C (and Rust) - it is so rarely worth the risks to take on memory management by oneself. But there will always be cases, and those usually involve strict performance requirements where RAII-style memory management (i.e. Rust) is a poor fit anyway.
For example;
What is the likelihood of rewriting curl without introducing (more than a few minor) issues?
When rewriting, what are the odds of losing long-standing contributors?
How would curl feel about being unable to support some machine architectures they support today?
How would curl continue to provide a good interoperability experience? (Again, how many projects downstream are saddled with an additional compiler to install etc because of curl’s choices)
What about developer velocity? Could they respond as fast to those non-17% issues (you know; the vast majority) as fast and well as they do today?
Put simply, if every cost is free, 17% is good - being a serious engineer, as you say, is about determining if something costs more than it gains you.
Now let's see the list they gave:
In broad strokes. I don't think current C compilers catch all uninitialised memory use. Having a variant that enforces it however is pretty easy. Bounds checks are similar. Proving the absence of overflow at compile time is impossible in the general case without proof assistance, but we can always have an incomplete analysis that inserts runtime checks when it's not sure. Same thing for null pointer dereference, just add a checks on systems that don't guarantee a safe segfault.All those could easily be solved with a slightly modified C compiler already. Zig to name but one basically does it already. So we're left with the two hard ones: use after free, and illegal free. For those there are 3 well known solutions: garbage collection (a performance deal breaker in many cases), and borrow checking (a godsend or a pain in the butt, depending who you ask), and smart pointers (not quite safe in C++, but they do help a ton).
What's practically unheard of in the industry however are arenas. https://www.dgtlgrove.com/p/untangling-lifetimes-the-arena-a... Sure, most game devs know of this, and it does have serious traction in some circles (the Handmade community comes to mind). But never once have I seen it applied in my day job since I started 20 years ago. In fact, I have never seen anyone use anything other malloc()/free() or new/delete.
Which is a shame, because arenas have the potential to simplify memory management to the point where memory safety bugs (assuming we have proper bounds checks) drop near the bottom of our list of concerns. I mean, I'd be fairly surprised if in Zig or Odin projects that mostly use arenas, memory safety bugs still comprised 2/3rd of all high and critical vulnerabilities.
Yes, any day now, the languages powering Linux, every major RDBMS, every distributed storage engine, every hypervisor, every browser engine, every AAA game engine, LLVM/GCC toolchains, and the embedded world are going to turn into COBOL - because Google wrote some Android Binder code in Rust, and a government working group published a PDF. For sure.
But if anything the "In Budget, On Schedule" section makes a surprisingly lucid case for why you shouldn’t rewrite working systems.
"Nothing will change" is probably the stupidest possible guess in any dynamic system.
Take a system where we have play-by-play data over a long period, Firefox. Ten years ago C++ makes up about 60% and C another 25% of the codebase and there was a trifling amount of Rust as it was newly introduced. They didn't stop writing C or C++ but they did write a lot of Rust, and so now only about 45% is C++ and C about 15%.
Legacy languages don't "turn into COBOL", they remain exactly as they are, like COBOL did, and the world changes anyway.
It's more like "Nothing will change significantly in the foreseeable future", which might be true - A lot of C or C++ codebases will never migrate to other languages, just like a lot of the surviving COBOL codebases haven't been successfully migrated to anything else for 50+ years.
There is a lesson in here: there are codebases that resist rewrites (I've seen many Java and C# projects try to replace COBOL applications and failing spectacularly). I imagine some parts of Linux will remain C for the foreseeable future, but the Rust corpus in it will only increase. Same for Firefox - some parts are just hard to express in different semantics (and, if you write Rust with C semantics, you are just writing C with a different syntax).
The only thing that can obsolete those code bases isn't yet another AI boosted language, the thing that makes the old code bases obsolete is a newer code base that is either simply better on a technical basis or is easier to use. At least one of those paths must lead to mass appeal to take advantage of network effects in favor of the new code base.
(and FWIW, currently I wonder how "LLM hardened" C code will compare to Rust, from what I've seen so far LLMs do a pretty good job at finding latent bugs and edge cases in C code, e.g. specific language properties might not play such a big role in the future as they did in the past)
Isn't this the ultimate self own? Saying that your language is so bad that only AI can help you fix your own code from containing severe security problems. The smart enough C developer isn't even human anymore.
Typical Rust OTH is neither a joy to read nor to write for humans, so the LLM remains the only option to create and maintain Rust codebases ;P
Also memory safety isn't the only thing that matters, iteration speed and code simplicity might too, and large C code bases build infinitely faster and are also easier to read and understand than typical Rust or C++ codebases)
I suspect once someone gets comfortable with Rust, their code will be better because of it (kind of what Bruce Perens says about Lisp).
I kinda enjoyed the puzzle solving aspect of C++ code (in my mind, C++ and Rust are essentially the same thing) when I was younger, but eventually I preferred when the programming language just completely "disappears" from the mind during programming sessions (because tbh, the "language puzzle solving" just distracts from the actually important "problem solving" part). Small and simple languages like C or Go (also Zig, have that quality for me, "big" languages like C++ or Rust don't.
- It's clearly not economically viable to manually transition all codebases to rust or any other mem-safe lang.
- How cute that the paper points out that any mem-safe language is fine, though rust is always the prime example. Almost as if this is a rust marketing piece, but the author wants to move away from the controversy.
- Is mem-safety even that important when hardware has mitigations like MTE (or capabilities in the future)?
- Is mem-safety even important when we're going through the tectonic shift of AI developing code and AI reviewing it! Where limitations of human perception/attention are no longer that relevant?
What memory-safe languages do is to make it nearly impossible to express a class of bugs. If the CPU has CHERI or memory tagging support, the compiler can turn an unsafe language into code that relies on those and render even the bugs unexploitable (but won't make the program correct - it will still have a bug).
AI can find and fix the bugs that already exist in lots of C code out there, and this is being done, so, at some point, even the chronically unsafe code will be free of bugs and, therefore, safe.
I regard Rust itself as a marketing piece and exhibit A is the world's largest advertising corporation being one of the founding members of the "Rust Foundation" with other scumbuckets rounding out the rogues' gallery.
https://en.wikipedia.org/wiki/Rust_(programming_language)#Ru...