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.

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?

-1

u/C_Madison Feb 20 '25

Rust is a systems language, which provides a measurable advantage over C or C++, in which those systems are usually written. It provides the advantages of a GC (no memory bugs outside unsafe) without the overhead/unpredictability of a GC. It also has other advantages, but that's a big one.

Go is a bad Java clone, used by people who don't like to say they are programming in Java, pushed by Google, because they couldn't find an agreement with Oracle, which has a (very bad) GC and a runtime, because GCs need one. There's zero technical reason for it to exist, it's all politics.