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
16
u/hihig_ Oct 25 '24 edited Oct 25 '24
Profiles can only serve as a standardized set of compiler warnings, static analyzers, and sanitizers by definition. They are envisioned to achieve perfection someday. But what is the real benefit of standardizing this? Why have previous tools—compiler warnings, static analyzers, and sanitizers—that have existed for decades still not resolved all safety issues? Do you believe the reason is that they weren’t developed by a committee?
It seems clear that C++ code alone lacks the information necessary to resolve all memory safety issues. Profiles are likely to end up being either too strict, resulting in excessive false positives that discourage use, or too permissive, leading people to overlook their importance, as with previous tools. While I recognize there are aspects of Profiles that could be beneficial, even if they become standardized, when will they truly surpass the effectiveness of existing sanitizers and static analyzers that are already available?