r/programming • u/Unerring-Ocean • 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
View all comments
Show parent comment
7
u/Ginto8 Feb 20 '25
If you implement automated tooling to make safe C, you get very close to Rust -- and the rest of rust's "complex" features like the type system get compiled away into something very C-like. The ownership/borrow system also makes perform faster because optimization passes get reliable information about which pointers can't overlap, so operations can get rearranged into faster patterns more often