~/talk

De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
slides:none on file

C++ currently pays for exceptions and RTTI even when unused; proposal makes error reporting static by default, dynamic by opt-in via a new throws annotation that lets the compiler implement value-based exceptions with no heap allocation and no RTTI, preserving throw/catch semantics and automatic propagation. Library/allocator tweaks let allocators choose fail-fast vs throw so many functions become noexcept, cutting roughly 90% of exceptions seen today. For casts, a five-instruction downcast range check (CFI-style) gives fast, safe downcasts with ~1–1.5% binary impact in trials.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:36Context for exceptions and RTTI
  3. 9:47Exception handling problems
  4. 20:07Zero overhead exception proposal
  5. 31:15Static exception handling details
  6. 44:42Reducing exceptions via contracts
  7. 50:53Memory allocation failure handling
  8. 1:09:57RTTI problems and solutions
  9. 1:17:11Static reflection for RTTI
  10. 1:25:37Efficient downcast proposal
  11. 1:27:48Future of C++ simplification
  12. 1:33:08Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.