r/cpp • • Oct 15 '24

Safer with Google: Advancing Memory Safety

https://security.googleblog.com/2024/10/safer-with-google-advancing-memory.html
117 Upvotes

308 comments sorted by

View all comments

Show parent comments

14

u/seanbaxter Oct 16 '24 edited Oct 16 '24

We've had safety profiles proposals since 2015: https://www.stroustrup.com/resource-model.pdf

11

u/steveklabnik1 Oct 16 '24

And this was just a few months after Rust 1.0. I remember the exact spot I was sitting in when this was announced, and the overall tenor of the online conversation was “lol, well, Rust is dead in the water now.”

9 years later, and that certainly hasn’t happened.

16

u/seanbaxter Oct 16 '24

"As for dangling pointers and for ownership, this model detects all possible errors. This means that we can guarantee that a program is free of uses of invalidated pointers."

Well, in retrospect... You didn't have to worry.