The White House Memory Safety Appeal Is a Red Herring
hackaday.com
hackaday.com
It's just increasingly hard to even bother reading stuff like this nowadays. I feel like some people need to hear "you're not as good at writing memory safe code as you think, and even if you were, it doesn't make you a better person".
It's okay to want better tools. It's okay to admit humans, even your own self, make or are capable of making mistakes.
Modern C++ does give you some nice foot armor, but (and I say this as a grudging C++ developer) that's no match for Rust's policy of taking away your footgun by default.
Based on the article I think that "better tool" is the fuzzer. As it points out remote exploits are overwhelmingly caused by bad input validation. These sorts of bugs can be found with fuzzing. Even if you're using a "memory safe" language you should still be fuzzing because uncaught exceptions and panics are bugs and improperly recovering from one without sanitizing state could lead to a security hole.
Incidentally, as the article notes, the CVE reports we keep hearing about are coming from Microsoft and Google. One has to wonder whether this speaks more about these companies priorities than the tech. Do consider that it wasn't until Heartbleed that these companies finally decided to devote serious resources to the OpenSSL project. Do note that Heartbleed was discoverable with a fuzzer.
It's lipstick on a pig.
> One has to wonder whether this speaks more about these companies priorities than the tech.
I am so, so very tired of this psuedo intellectual, open ended, conspiratorial nothing statements that are vague and meaningless.
Is Torvalds in on it? The White House? Oxide? Chromium? Android? Maybe Rust folks are infiltrating C projects and writing bad code on purpose.
> I feel like some people need to hear "you're not as good at writing memory safe code as you think
both equally wrong. and it's _fine_ to want better tools. but we need to use the right tool for the job.
doing something that involves lots of dynamic allocation and ownership and especially strings might be very hard to do in a memory-safe fashion in C or C++ but conversely there are plenty of other kinds of code that actually are "easy" to write, and verify, to be memory safe.
to assert that language A is overall "better" or even just "safer" then language B without knowing the details is presumptuous. [to be clear TFA is highly presumptuous too]
In abstract? Sure.
As a pretext for surrendering to mediocrity and a ride to hell with a tank full of good intentions? Never!