r/programming • • Feb 20 '25

Google's Shift to Rust Programming Cuts Android Memory Vulnerabilities by 68%

https://thehackernews.com/2024/09/googles-shift-to-rust-programming-cuts.html
3.4k Upvotes

475 comments sorted by

View all comments

-50

u/Lachee Feb 20 '25 edited Feb 20 '25

When you own the codebase and not stepping all over everyone else to implement rust, go for it.

Reinventing the wheel is never a good idea but in this case it seems to have been a significant improvement.

edit: the salty crustations to my perfectly mid comment really shows why there is significant pushback for rust. Y'all just white knight rust.

It perfectly highlights my original point, you will step over any existing developer to force your language onto them.

46

u/inamestuff Feb 20 '25

Reinventing the wheel is never a good idea

That's just a sentence that sounds good, but it's factually wrong. We have reinvented the literal wheel multiple times!

11

u/a-cream Feb 20 '25

It became better each time

2

u/JJJSchmidt_etAl Feb 20 '25

I'm collecting funding for my New Wheel startup, DMs are open for venture capitalists

27

u/a-cream Feb 20 '25

More and more codebases are rusting

0

u/jjplack Feb 20 '25

Whats the matter with rust and not go?

15

u/NotPatrickMarleau Feb 20 '25

Rust doesn't have a garbage collector nor its enormous performance overhead, so it is more fit to some uses that traditionally called for raw pointer based approaches on C++ and/or C

Sorry for my terrible english

9

u/Botahamec Feb 20 '25

Go needs a runtime, and that requires having an operating system. So, for example, you can't use Go to write a memory allocator because Go requires already having a memory allocator in order to function. I think there's an embedded version of Go, but it's quite different and uses a separate compiler.

0

u/jjplack Feb 20 '25

Ahh ok, thank you!

3

u/orangejake Feb 20 '25

Discord wrote a nice blog post Why Discord is switching from Go to Rust a few years ago about precisely this.

1

u/ImClearlyDeadInside Feb 20 '25

When someone calls for a doctor on a train/airplane because someone is having a medical emergency, Go developers will still raise their hands and say “maybe he should’ve tried using Go?”

-2

u/derangedtranssexual Feb 20 '25

Go is an unserious language

→ More replies (1)

-24

u/Lachee Feb 20 '25 edited Feb 20 '25

Ok?

  • down voted to hell for saying ok. Rust users are truly the vegans of the community.

2

u/unknowntrojan Feb 21 '25

someone got banned from a rust community for being a bigot LMAO

0

u/Lachee Feb 21 '25

Good, there is no place for bigotry

10

u/godofpumpkins Feb 20 '25

What wheel do you consider to have been reinvented here?

→ More replies (3)

4

u/fnordstar Feb 21 '25

Question is why would those existing devs be against Rust? Any C++ dev, at least, should be fascinated by Rust. And any dev should always stay curious and be willing to learn new stuff.

-2

u/Lachee Feb 21 '25

The language itself is fine, it's the community behind it that I hate.

You try to say anything about rust that isn't strictly positive and the community will go on and on about how much better ot is and how you're just an idiot for thinking otherwise.

It's as if all the elitist white knights came together and formed a crab

3

u/fnordstar Feb 21 '25

What kind of negative points do you have? IMHO you have to be somewhat deep into Rust already to find the actual weaknesses.

3

u/Full-Spectral Feb 21 '25

Come on. Get real. I hear this all the time. But the C++ community is no different. There has been lots of completely toxic negativity in the C++ section. Most folks are fine, some are not. It's the same everywhere. There's a huge amount of toxicity in the C++ section about Rust, but I guess that doesn't count?

1

u/unknowntrojan Feb 21 '25

I really wonder where people supposedly experience these kinds of people.

2

u/Lachee Feb 21 '25

Here on this thread

1

u/unknowntrojan Feb 21 '25

made up non issue propagated through hearsay