Remix.run Logo
▲ cohani 17 hours ago

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 16 hours ago | parent | next [-]

Were you intentionally rude with your first sentence or just unaware?

▲cohani 15 hours ago | parent [-]

[flagged]

▲TripolitianFish 14 hours ago | parent [-]

Jesus Christ you suck.

▲aw1621107 13 hours ago | parent | prev | next [-]

> 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 7 hours ago | parent [-]

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 7 hours ago | parent | prev | next [-]

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.

▲wannabe44 14 hours ago | parent | prev [-]

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 13 hours ago | parent | next [-]

What would you have preferred the devs work on instead?

▲slopinthebag 7 hours ago | parent | prev [-]

i suppose a supply chain that doesn't exist is pretty secure.