r/cpp • • Jan 11 '26

CppCon Making C++ Safe, Healthy, and Efficient - CppCon 2025

https://youtu.be/p52mNWsh-qs?si=Bz6pyW6d0SMLCZxV

Now with some updated content since the ACCU talk, and the Q&A is nonetheless interesting.

55 Upvotes

103 comments sorted by

View all comments

Show parent comment

13

u/seanbaxter Jan 12 '26

But they won't provide a prototype that partially works. It's not better than nothing at all. The ghost data thing is a make-believe solution. May as well say the tooth fairy makes your program memory safe. Next time, before someone gives keynotes on how they made C++ memory safe, they need to write down how the technique works, because extraordinary claims do require some evidence.

1

u/Wonderful-Wind-905 Jan 13 '26

Might Clang's lifetime annotations count as to something that partially works?

1

u/ts826848 Jan 16 '26

Not in the context of this subthread, I think, since the focus is generally on runtime enforcement. Clang's lifetime annotations are purely compile-time from what I understand.

1

u/pjmlp Jan 15 '26

Nope, because they go all the way back to 2015, alongside VC++ ones.

They require quite a few annotations, that go against the famous "no annotations" paper, and even then, they cannot cover all C++ semantics.

3

u/Wonderful-Wind-905 Jan 15 '26 edited Jan 15 '26

But if one relaxes the "no annotations" requirement, and then focuses on "partially works" regarding "they cannot cover all C++ semantics", might Clang's lifetime annotations count? There have been development on them over the years, including as recently as 3 days ago

https://github.com/llvm/llvm-project/pull/170007

https://github.com/llvm/llvm-project/issues/152520

3

u/ts826848 Jan 16 '26

But if one relaxes the "no annotations" requirement

Obviously relaxing restrictions will make more solutions more viable. That doesn't necessarily tell you anything about what would work for the non-relaxed-restrictions scenario, though.

In any case, that you can implement new features/checks/etc. using new annotations/keywords/syntax/etc. is entirely uncontroversial. If anything, doing such a thing is bog-standard part of language development and evolution. It's the claims that those new features/checks can be implemented without (or effectively without, if you want to be more pedantic) new annotations/keywords/etc. that grabs headlines, and it's those claims that subsequently garner skepticism when there's no good explanation nor examples of how they would work.

In this case, the "no annotations" part of the claim is basically the entire reason for the claims being discussed to be considered extraordinary, so relaxing that requirement kind of renders the entire conversation moot.