I feel the need to recycle an older comment of mine: https://news.ycombinator.com/item?id=50620032
Now let's see the list they gave:
• 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.
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
No mention of Fil-C?
> 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.
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?
[dead]
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%.
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.