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

185

u/maxinstuff Feb 21 '25

Using a language with high memory safety reduces memory vulnerabilities 😱

In seriousness, it’s interesting to hear how they consider their approach of just doing new code in Rust and leaving well enough alone for the old code has worked for them.

I have to wonder if Linux kernel development/maintainers could learn from this.

-8

u/CobaltVale Feb 21 '25

It's not the same for Linux kernel development because the impact of instability is far, far, far, far greater than if Android has a bug in it.

Rust is not-backwards compatible in the truest sense of the word, so it represents a severe and cortical impact if something is changed.

4

u/the_gnarts Feb 22 '25

Rust is not-backwards compatible in the truest sense of the word, so it represents a severe and cortical impact if something is changed.

Are you just stringing random words together in an attempt to look smart?

0

u/CobaltVale Feb 22 '25 edited Feb 22 '25

I'm pretty sure I have more experience using Rust than most people who feign interest in it, so no. Since you know, I use it daily and have been using it since its earliest days when it was flirting with object oriented programming.

Do you know why the borrow checker breaks between 1.0 and 1.5?

Do you know why there is a 5% package drift in builds over time with reach release or edition?

Or even better, when rust decided to break five thousand crates because someone really wanted their pet change to go through and just said fuck it: https://github.com/rust-lang/rust/issues/127343

No, you don't. Because you're a pretend programmer who at most works in an enterprise environment doing some shitty B2B in .NET or Java. You don't understand the considerations and issues of something like linux kernel development.

Now run along and go ask ChatGPT for help.

→ More replies (2)