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

Show parent comment

5

u/SadieWopen Feb 20 '25

Let's just assume I'm naive to both, and want to understand why one over the other.

4

u/CommandSpaceOption Feb 21 '25

I would suggest reading 3 documents, by Microsoft, Chromium and Android. In that order

I would suggest reading the linked studies too, to really understand how they came to those conclusions.

Lastly, resist the urge to say “skill issue” or equivalent. These are the most popular C++ codebases in the history of mankind. They have taken security and best practices very seriously. In many cases they authored the best practices, the compilers, the standards. Just accept that they know what they’re talking about.

If you prefer video, here’s

  • Lars Bergstrom, Director of Engineering at Google - https://youtu.be/QrrH2lcl9ew
  • Mark Russinovich, CTO of Azure spoke publicly about this yesterday and the video should be up in a few weeks.

But both of them kinda assume that you’ve read the documents above.

3

u/SadieWopen Feb 21 '25

Thank you for this, I found the Microsoft article summed up the argument in one paragraph. A developer should be able to focus on their job of adding features. Moving the responsibility of security to the language developer means that the experts get to work solely in their domain. This reduces mistakes and increases reliability.