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
77
u/[deleted] Oct 25 '24
We have to appreciate the quality of the writing in this paper. It uses direct quotes, supports its arguments with tiny code samples and clearly dissects the problems with profiles.
I read https://isocpp.org/files/papers/P3081R0.pdf a few hours ago, and I realized the problem with profiles vs safecpp. Profiles basically do two things:
The way I see it, profiles are mainly targeting "low hanging fruits" to achieve partial safety in old or new code, while dancing around the main problem of lifetimes/mutability. Meanwhile, safecpp tackles safety comprehensively in new code making some hard (unpopular?) choices, but doesn't address hardening of old code.