Hacker News

Favorites Setup
Comment by cohani | original | C for Rust programmers
[−]cohani · 2026-10-10 Sat 14:16 UTC · link
Focusing narrowly on memory safety is frequently a distraction that incompetent developers use to excuse their buggy code. "Sure, my Rust code might cause deaths and cause millions of dollars lost; and my code might be unsafe, insecure and incorrect; but at least my code is memory safe and easy to debug when I fuck it up!". And then it often turns out that Rust is not memory safe in practice. https://news.ycombinator.com/item?id=49697392

The real value of Rust is likely pattern matching and tagged unions. Apart from modules/packages that are not a disaster, like Gabriel Dos Reis the saboteur's disaster with modules in C++.

[−]nilslindemann · 2026-10-10 Sat 14:47 UTC · link
Were you intentionally rude with your first sentence or just unaware?
[−]wannabe44 · 2026-10-10 Sat 16:55 UTC · link
Indeed! They shrug it off when you ask them about supply chain safety or compiler complexity. I opine that post 1.0 they wasted precious engineering time trying to placate nodejs webshits over building the best systems language.

    There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.

        — C.A.R. Hoare, The 1980 ACM Turing Award Lecture
[−]aw1621107 · 2026-10-10 Sat 18:29 UTC · link
What would you have preferred the devs work on instead?
[−]slopinthebag · 2026-10-10 Sat 23:35 UTC · link
i suppose a supply chain that doesn't exist is pretty secure.
[−]aw1621107 · 2026-10-10 Sat 18:28 UTC · link
> And then it often turns out that Rust is not memory safe in practice. https://news.ycombinator.com/item?id=49697392

For what it's worth, in that specific instance there's no memory safety issue since Rust is guaranteed to crash on stack overflow on Ubuntu (and probably other supported Linux distros)

[−]afdbcreid · 2026-10-10 Sat 23:55 UTC · link
For what it's worth, this is not only that specific instance. Rust might not be memory safe in theory, but when talking about "in practice" - there is profound evidence that Rust's memory safety works.
[−]slopinthebag · 2026-10-10 Sat 23:32 UTC · link
this argument is so stupid, yes rust doesn't prevent all bugs but eliminating a large proportion of them is very obviously a good thing.