35
submitted 2 weeks ago* (last edited 2 weeks ago) by cmeerw@programming.dev to c/cpp@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] hunger@programming.dev 10 points 2 weeks ago

If you could reliably write memory safe code in C++, why do devs put memory safety issues intontheir code bases then?

Even highly paid (and probably skilled) devs in the IT industry manage to mess that up pretty regularly. Even if it was: devs using memory safe languages make much fewer mistakes wrt. managing memory... so that tooling does seem to help them at least more than the C++ tooling helps the C++ devs.

[-] lysdexic@programming.dev -3 points 2 weeks ago

If you could reliably write memory safe code in C++, why do devs put memory safety issues intontheir code bases then?

That's a question you can ask to the guys promoting the adoption of languages marketed based on memory safety arguments. I mean, even Rust has a fair share of CVEs whose root cause is unsafe memory management.

[-] FizzyOrange@programming.dev 2 points 2 weeks ago

No it doesn't, that's bullshit.

[-] sukhmel@programming.dev 2 points 2 weeks ago
[-] robinm@programming.dev 3 points 2 weeks ago

The fact that rustc has bugs (which is what cve-rs exploit) doesn't invalidate that rust the language is memory safe.

this post was submitted on 17 Sep 2024
35 points (94.9% liked)

C++

1732 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS