CppCon Making C++ Safe, Healthy, and Efficient - CppCon 2025
https://youtu.be/p52mNWsh-qs?si=Bz6pyW6d0SMLCZxVNow with some updated content since the ACCU talk, and the Q&A is nonetheless interesting.
56
Upvotes
View all comments
Show parent comment
21
u/SophisticatedAdults Jan 11 '26
It's a bit more complicated than that. Yes, bounds checking for e.g. arrays is cheap. Fully featured checks that aim to prevent any access to wrong memory (e.g. use after free) would be much more expensive.
IIRC Google's work only applies to spatial bound checks, not temporal ones. If you want full temporal bound checks you're probably going to reinvent something like Fil-C and it's going to get much more complicated (and expensive).