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
-12
u/germandiago Oct 25 '24 edited Oct 25 '24
Not really. Profiles are targetting 100% safety without disrupting the type system and the standard library and by making analysis feasible for already written code. Something that Safe C++ does not even try to do, ignoring the whole problem.
Choosing analyzing regular C++ has some consequences. But claiming that profiles do not target 100% safety is incorrect, repeated constantly and even suggested by the paper by pretending that C++ must match exactly the Safe C++ subset in order to be safe, using its mold as the target subset because yes, but is not true you need the same subset: what is important is for an analysis to not leak unsafety even if that subset is differenr.
Which is different from "if you cannot catch this because my model can, thennyou will never be safe". I find that argument somewhat misleading because it is just factually incorrect to be honest. What is true from Safe C++ model is that with relocation you can get rid from null at compile-time, for example. That one is factually true. But that breaks the whole object model at this point the way it is proposed at the best of my knowledge.