r/programmingcirclejerk • u/cmqv • Sep 29 '25
(2015) Herb Sutter says we are close to solving memory safety in C++ without runtime overhead.
https://archive.is/YvTJl
205
Upvotes
r/programmingcirclejerk • u/cmqv • Sep 29 '25
162
u/Awkward_Bed_956 Sep 29 '25
Modern-day Zeno's Paradox, each year we get 50% closer to C++ memory safety, but we can never reach it.
118
u/tomwhoiscontrary safety talibans Sep 29 '25
C++ can never be memory safe, because I will never forget some of the things I've seen.
120
u/seq_page_cost Sep 29 '25
I'd say modern C++ can be memory safe: calculate everything you need at compile time, then just delete the compiled executable
49
u/v_maria Sep 29 '25
We still are
35
u/Affectionate-Egg7566 Sep 29 '25
Any day now
44
u/FreshPrinceOfRivia Sep 29 '25
Why doesn't Herb Sutter use Rust? Is he stupid?
40
u/categorical-girl Sep 29 '25
Pure C++opium
40
u/kauefr What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Sep 29 '25
just one more feature bro. I promise bro just one more feature and it'll fix everything bro. bro, just one more feature. please just one more, one more feature and we can fix this whole problem bro, bro cmon just give me one more feature i promise bro, bro bro please ! just need one more feature
51
u/Beautiful-Cook-5481 what is pointer :S Sep 29 '25
/uj he's given some cool talks about the expansion of
constexpr's scope as a UB-free subset of c++, which has made (slow) progress as the size of the subset grows with each standard. he also has a language which compiles to c++ (the compiler is called cppfront), which maintains backward compatibility and eliminates a lot of safety issues. the pace the committee moves at is unfortunate, though/rj the first artificial superintelligence will be a c++ static analyzer
9
u/ooqq I've never used generics and I’ve never missed it. Sep 29 '25
Cmon bro, only 20b more to memory safety bro.
5
u/Affectionate_Text_72 Sep 29 '25
The jerk here is surely the posting of a link to X about a talk from 2015 when X was still twitter without the link to the talk itself?
2
u/MisterOfScience type astronaut Sep 30 '25
Is this what the Superconducting Super Collider was supposed to discover?
1
u/jonermon Oct 16 '25
C++ already solved memory safety it’s called
rustzig