by irealis · 3w ago · 0 comments
This entire argument against Rust hinges on it somehow invalidating all of the improvements it does have, all the safety it does guarantee, just because it also has a few bugs. It's neither a myth that Rust is safer, nor is it a nail in the coffin for it.
Otherwise you must make the argument that just because unsafe exists, and is used, it is automatically as bad as let's say C - a language that has proven time and time again how trivial it is to make mistakes with. Something that just doesn't happen in Rust.
That is not to say it is not an improvement. But downplaying issues does not help improving the situation. Fixing them does.
> This entire argument against Rust
No, it is not an argument against Rust, it is an argument against a particular sales pitch. The "nail in the coffin" is not for Rust but for that sales pitch.
I personally like Rust and think it is a great improvement over C for many use cases and it provides a refreshing angle as an alternative to GC approaches. Just some evangelists are going too far.
Please let's use some nuance here.
Among software developers, we shouldn't need to provide a "assuming there are no bugs" caveat with every statement about how something works, because we know that bugs are essentially unavoidable at scale. We can say that Rust makes it much easier to avoid bugs, but nobody serious has ever claimed that they are 100% eliminated.
It's not like C or C++ compilers are bug free either, despite implementing much weaker models.
This comes up a lot as a defensive argument too, but it's also pretty frustrating, because Rust's "fundamental model" is not a thing that really exists. There are project proposals to create one (such as https://goals.rust-lang.org/2026/roadmap-project-zero.html#), but at the moment it's just a vague set of vibes people gesture towards to dismiss all the problems with Rust-as-actually-implemented.
If you would like the Rust language to have a formal specification, I would suggest you look at ways to help that happen. There is already the Ferrocene[1] project.
The safety model of Rust is extremely well described in detail. It's not particularly hard to understand, either. Are you worried that there is some kind of fundamental flaw in the design, we're just waiting to discover it, and it will all come crumbling down? My suggestion would be to start by understanding Rust's type system and why it works the way it does, and you will very quickly build an intuition ("vibes") that it obviously works.
Yet, for some curious reason, a substantial group of snake oil salesmen insist that only this one particularly cut puzzle piece (rust) fits the bill.
It has been known for decades that GC was one way to achieve memory safety. That was one of the main selling point of Java back in the 90s - no more segfaults.
Rust was an absolute breakthrough, because it provides a second way to gain memory safety, this time without the significant drawbacks of a garbage collector, bringing memory safety to systems programming. That's materially different.
The only other previous attempt at this was Ada, which for a variety of reasons never quite fit the bill despite its obvious strengths.
I'm on your side of this, but there are Rust zealots out there and they're incredibly annoying.
(Edit to add:)
As a longtime Java guy (after a decade or so as a C++ guy) what drew me to Rust wasn't actually memory safety; that was table-stakes for me and Go might have lured me in if that was all I wanted. The low-cost (cognitive complexity is a cost) of memory safety was a factor, but it was the expressive type system that sealed the deal.
I mean, I keep hearing about them, and they just literally never show up anywhere I am, and I'm pretty active in the Rust community.
Anyway, it's basically slander to say that people advocating Rust are snake oil salesman. Rust is a genuine improvement to systems languages over the existing options (primarily C/C++) in multiple respects, not just memory safety; it is not a panacea that solves every problem or eliminates every possible bug, and no one involved with the project ever claimed that it did.
For the record here is the Oberon GC implementation, in Oberon.
https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Kerne...
If you want a more trendy example, check D or Go.
The amount of times I've seen, even on HN, not rewriting the world's C/C++/Zig/Odin software in Rust is a moral failing is.. well.. I've never seen any other language community argue that way - and this, very naturally, breeds animosity.
As for systems programming, whether Rust fits the bill is a much deeper and nuanced discussion than most drive-by Rust commentators seem to have patience for. I'd point out that in spite of C++ (also a language prioritising RAII) most serious systems software is written in C. Ignoring this fact and insisting that a new, better RAII language is the panacea of systems programming seems to me just a little unserious.
I myself think that we should rewrite most of the world's C and C++ in something else (I specifically include the Linux kernel in this, among many, many other pieces of software). Rust is obviously a strong contender here, but this is not a specifically pro-Rust viewpoint, but an anti-C/C++ one. As I said, I don't think that Rust is a panacea or that it's reasonable to conceive of Rust as a panacea. I even think it is important to research new systems languages that are not Rust and that go even further in the direction of statically-guaranteeing program correctness properties than Rust does - I explicitly do not want to treat Rust as the only good or worthwhile language to write systems software in. This doesn't mean that the C/C++-based status quo is good.