~/talk

Exceptions Under the Spotlight

Talkat CppCon 2020 · 2020-09-14..09-18· [software-architecture]
links:none on file
slides:none on file

Surveys show over 54% of projects (especially embedded) cannot use C++ exceptions freely; a microbenchmark reports 435x slower throws vs return codes on thrown paths and larger binary size on ARM. GCC’s table-based unwind emits RTTI, catch tables and landing pads that inflate binaries and cold-path runtime; MSVC uses frame-based code unwinding with different tradeoffs. A PoC replaces dynamic allocation with a preallocated exception buffer and short-circuits unwind, reaching runtimes close to return-value approaches. Papers discussed propose stack-returned error values and low-cost deterministic, signal-less exception designs.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:50Basics of exceptions
  3. 7:46History of error handling
  4. 15:15Exception overhead explained
  5. 26:33Exception mechanism design
  6. 32:38Alternatives to exceptions
  7. 41:29Future of exception handling
  8. 51:19Call to rethink exceptions
~/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.