C++ creator rebuts White House warning
infoworld.com
C++ creator rebuts White House warning
1–10 of 141 posts
Re: C++ creator rebuts White House warning
#2Re: C++ creator rebuts White House warning
#3The fundamental problem is they’re just guidelines and they’ll always be just guidelines. You can still do all the wild old stuff without so much as a warning and you’ll have to figure out how it even interacts with the new stuff which exposes yet another vector for failure.
Re: C++ creator rebuts White House warning
#4C++ barely made sense in 1995. It makes absolutely no sense today.
Re: C++ creator rebuts White House warning
#5C++ safety may have improved a lot, but it’s still far, far behind most other languages we use. It’s not even a close comparison.
You throw a bunch of programmers at a problem and you will get some number of bugs in the code. In C++, some percentage of those bugs will be memory errors. You can eliminate raw pointers but that doesn’t solve the problem—there are all sorts of places that dangling pointers crop up anyways, like in references that get captured in lambdas which get stored somewhere and then the programmer doesn’t realize that the lambda is called after the object is destroyed.
I’ve seen various solutions proposed to these problems. The worst solution is to “just hire better programmers and be careful”. The easiest solution for greenfield projects, most of the time, is to pick a different language.
Re: C++ creator rebuts White House warning
#6Re: C++ creator rebuts White House warning
#7I am solidly in the camp that believes C++ is unsafe. With enough discipline and tooling, it is possible to write safe C++. Are there more than a sliver of shops jumping through those hoops?
Of course, there may be a survivorship bias involved that proves me wrong. If it turned out that every remaining C++ shop is great at writing C++ code, because all the shops that weren't gave up and migrated to something else, I wouldn't be shocked.
Re: C++ creator rebuts White House warning
#8Re: C++ creator rebuts White House warning
#9Stroustrup as always fails to recognize the vast surface area of C++ features, foot cannons, and the heavy weight of C compatibility around C++ neck. C++ barely made sense in 1995. It makes absolutely no sense today.
Re: C++ creator rebuts White House warning
#10If only people were perfect, then things would be perfect.
There’s, what, 40 years of evidence to suggest that most people, most of the time, simply cannot write memory-safe C++ code (50 years if you count C.)
Maybe we should continue the experiment for another 50 years, just to be really sure the language is the problem.