Hacker News new | ask | show | jobs
by microgpt 158 days ago
Would using Rust have prevented this?
5 comments

I get that it’s fun to dunk on Rust when a Rust bug surfaces. But is it a bit petty to bring this out when there’s any type of bug of any severity in any Rust software?

In this case a small minority of requests were getting truncated responses.

No one said Rust software is bug free. If someone thinks that they’ve been seriously misled.

Isn't this already Rust?
That was obviously a joke question, pointing that Rust isn't the solution for everything.
Woosh :-)
No. Anyone expecting that hasn't read No Silver Bullet essay.
Actually I suspect that Rust is a Silver Bullet in that sense. That essay seems to be a case where people know of the essay but haven't read it. Normally in English a "Silver Bullet" is something much bigger, a panacea or cure all which entirely solves a problem but in his essay Brooks is talking about order-of-magnitude improvements, and that looks a lot like Rust.

Brooks was expecting such "Silver Bullet" improvements as often as every few decades, we're arguably overdue significantly. He cites Ada as an example of where such an improvement might come from, well, Rust isn't Ada but a lot of the same ideas about correctness are present.

Google reports order of magnitude changes from their Rust work for example.

> Actually I suspect that Rust is a Silver Bullet in that sense.

Not really. If anything I'm pretty sure Fred would compare it to Ada:

    > Nevertheless, Ada will not prove to be the silver bullet that slays the software productivity monster, It is, after all, just another high-level language, and the biggest payoff from such languages came from the first transition, up from the accidental complexities of the machine into the more abstract statement of step-by-step solutions.
And I think he'd be on the money. Rust and Ada are revolutionary languages in their own right, but 10x holy grail they aren't.
> And I think he'd be on the money. Rust and Ada are revolutionary languages in their own right, but 10x holy grail they aren't.

Google reports 4x fewer (and still falling) rollbacks for Rust versus C++ in their Android development for example. That's not 10x but it's pretty sizeable.

Which they could equally achieve by reducing even further the use of NDK, or moving more stuff into Kotlin/Java processes using Android IPC.

Naturally there are several ideological questions between that approach from the anti GC crowd, and adopting Rust instead.

Not that breaks the C++ vs Rust from your comment, though.

thats how you get bloated memory use and disk space. you know, the things everyone complains about when it comes to modern tech
Order of magnitude more complexity.
The Hyper library in question is a Rust library.

Did you read the article, or are you a "use rust" parrot / bot based on titles?

Sarcasm. (I guess)
Obviously written by a C freak using a BSD
Agree. This is warning to people who thought Rust is optional at cloud scale.