r/cpp • • Oct 24 '24

Why Safety Profiles Failed

https://www.circle-lang.org/draft-profiles.html
179 Upvotes

347 comments sorted by

View all comments

Show parent comment

12

u/jeffmetal Oct 25 '24

From what I have seen a profile proposal has been put forward. People have picked it apart and shown bits where very common patterns in C++ will be flagged as unsafe even if not. Also and probably worse there are cases were things will not get flagged as unsafe by this proposal and they really are.

From what i understand from your arguments here your saying the profile can be tweaked to make it stricter and it will catch them so it does not leak unsafety, did I get this right ?

From what other people are saying the ratio to false postives and false negative will get shifted around when you change the strictness of this proposal.

If so then the onus is now on you to back up those claims it wont leak safety and it wont just become useless with tons of false positives and negatives.

-2

u/germandiago Oct 26 '24

Also and probably worse there are cases were things will not get flagged as unsafe by this proposal and they really are.

Please show me. I would like to see a piece of code that will do that under the profiles proposal. Because that would be of real concern to me.

From what i understand from your arguments here your saying the profile can be tweaked to make it stricter and it will catch them so it does not leak unsafety, did I get this right?

Once profiles are activated, passing-through a compilation that is unsafe should not be possible. This does not mean everything can be analyzed. It means that under doubt, do not pass.

If so then the onus is now on you to back up those claims it wont leak safety and it wont just become useless with tons of false positives and negatives.

No expert here, so I cannot talk about the full feasibility of this and how much of annotation code it would/will need and I think this is a contentious part right now.