r/cpp
•
u/steveklabnik1
•
Oct 24 '24
•
1
Why Safety Profiles Failed
https://www.circle-lang.org/draft-profiles.html
180
Upvotes
View all comments
Show parent comment
-4
u/germandiago Oct 25 '24 edited Oct 25 '24
Why not? Sean takes current C++ and omits, for example in the paper, the fact that non-const functions (from Stroustrup paper) can be assumed to invalidate iterators and with an annotation reverse it [[not_invalidating]]. This is a technique to conservatively make invalidation inspection.
He also claimed in a reply to a comment to me at some point "you cannot have safe C++ without relocation". Not true. You can, but null is a possibility and a run-time check in this case. It is an inferior solution? Probably, but the proposition "you cannot make C++ safe without relocation" was not true.
He also claimed that it was impossible to make C++ safe, and someone put a link to scpptool (I think the author) proving him wrong again.
When I told him about caller-side injection of bounds checking, he felt free to insult me saying it was "dumb". I think he did not know that came from H. Sutter's proposal.
You can figure out my low confidence in his claims at this point, which have targeted pre-made targets into the current state of the language without even inspecting the other proposals (I think, I do not know for sure, but I see some omissions there that make me think he did not go through those) and asserts the impossibility of having a safe C++ without his proposal.
He has an hypothesis: the only way is Safe C++. So everything that gets in the middel seems to be bothersome.
I can in part understand it. He put a lot of work there. But there have been repeated inaccurate claims in his responses.