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
17
u/Minimonium Oct 25 '24
The claim isn't that "profiles" can't catch safe code. The claim is that "profiles" can't catch unsafe code. The code which was analyzed by "profiles" will be unsafe.
This lack of guarantee is the point which makes them completely unusable in production - industries which requires safety won't be able to rely on them for regulation requirements and industries which don't won't even enable them because they bring in runtime costs and false positives.
We want a model to guarantee that no unsafe code is found inside the analysis. Safe C++ achieves it as a sound model with a zero runtime cost abstraction.