[HN Gopher] C++ creator rebuts White House warning
___________________________________________________________________
C++ creator rebuts White House warning
Author : ben_s
Score : 11 points
Date : 2024-03-18 19:34 UTC (3 hours ago)
(HTM) web link (www.infoworld.com)
(TXT) w3m dump (www.infoworld.com)
| favorited wrote:
| On a recent CppCon panel[0], after much discussion of ecosystem-
| wide safety and how "safe" programming languages don't
| automatically create "safe" systems (which has merit), he
| basically had to shrug his shoulders when someone asked about
| thread safety.
|
| [0]https://www.youtube.com/watch?v=R10pXWHpPn4
| pornel wrote:
| > _I find it surprising that the writers of those government
| documents seem oblivious of the strengths of contemporary C++ and
| the efforts to provide strong safety guarantees_
|
| No, Bjarne needs to realize that RAII and smart pointers are an
| old concept now, and they have shown to be insufficient, for
| _decades_ now.
|
| The bar for safety has been raised, and the Modern C++ is so
| behind, they don't even understand the issue. It has barely
| anything for temporal safety. It has nothing for thread safety.
| The contemporary C++ is even lacking in the easy spatial safety,
| e.g. the std::span has been standardized without .at(), and
| they're just getting around to adding it.
| orf wrote:
| > Of the billions of lines of C++, few completely follow modern
| guidelines
|
| AKA, we've created a messy monster that's out of our control,
| please don't blame us.
| biomcgary wrote:
| Maybe they need to fork a version of C++ that doesn't have all
| the dangerous features and forces developers to write only safe
| C++. It could be called C++--.
___________________________________________________________________
(page generated 2024-03-18 23:02 UTC)