robinm@fosstodon.orgtoRust@programming.dev•Rust Foundation Releases Problem Statement on C++/Rust Interoperability
1·
3 days ago@onlinepersona @snaggen Indirectly it can. Recent studies showed that old code is very unlikely to have security issue. This means that if all new code can be in Rust, while keeping the old code in C++ will be much more secure that rewrite all C++ (because by definition rewrite have more bugs since its new code). So interoperability is both safer and cheaper.
@5C5C5C I found back the study I was talking about
https://www.theregister.com/2024/09/25/google_rust_safe_code_android/
> The good news for organizations with a lot of unsafe legacy code is that rewriting old code in new languages probably isn’t necessary.
> That’s not to say old bugs miraculously become unexploitable. Rather, the overall density of vulnerabilities diminishes – a statistical win but not a guarantee of safety.