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
1
u/germandiago Oct 27 '24
I am aware that what I am saying is not a carefully written paper.
As for API compatibility, I think this should only be a compile-time analysis.
Yes, I complained about the ibkect model: adding drops and relocation, if it cannot be made compatible, would be a problem.
But my understanding was that a pure safe compile-time analysis would not break ABI, it would only let you use things in more restricted ways. Why should this be an ABI break? I am not sure I get you here.
It is the same function, used in fewer contexts bc you are in "safe mode" and not letting aliasing happen by default.
I am not sure it works, I am here thinking of possible paths because I think having a feature that is useful for existing code besides being able to write safe code (even in a more restricted subset thsn with lifetimes) would be amazingly useful.
I am aware of the "if"s and you are right. This needs more research in the exact aspects of how absolutely everything would work, if it does. The reward would be spectacular.