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

-12

u/SadieWopen Feb 20 '25

Can someone explain to me why we can't just do this in C? I understand that Rust is a "Safe" language, but why can't we just code in "Safe" C? I can't understand how adding more complexity results in faster execution.

41

u/Schmittfried Feb 20 '25

Because you’re not adding complexity. The complexity is inherent to the problem space. Rust gives you tools to express and handle it properly whereas with C you‘re on your own. 

0

u/fungussa Feb 21 '25

Rust eliminates a class of bugs, but it's undeniable that it adds complexity with its strict rules, its challenging syntax and a type system that can make even simple code hard to read

→ More replies (4)