Re:The NSA advises move to memory-safe languages
by binary132 on Tuesday December 12, 2023 @09:49AM
(#38612840)
so what you’re saying is proper C++ is fine?
Re:The NSA advises move to memory-safe languages
by zaphar on Tuesday December 12, 2023 @09:54AM
(#38612908)
What I'm saying is that if you are sufficiently smart then you could concievably write perfectly safe C++. But since almost no one in practice has ever been able to be sufficiently smart consistently enough to ship C or C++ code that doesn't have memory safety issues, I don't trust anyone to do so and would rather people stop writing stuff in them when there are better languages to use where I don't have to trust you as much.
Re:The NSA advises move to memory-safe languages
by binary132 on Sunday December 17, 2023 @10:24PM
(#38678916)
Here’s what Stroustrup says:
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p26...
Maybe the risk is mitigated in other ways. Your software runs as a cli and not a service. It doesn't process outside input. It is run in an ironclad sandbox.
But honestly, if you think the way C++ with RAII want's you to then you should already be following the rules that Rust want's you to follow for the most part.