~/talk

“The Exception Situation"

Talkat CppCon 2016 · 2016-09-18..09-23· [software-architecture, security]
links:none on file
slides:none on file

C++ exceptions remain part of the language and are compared here against return codes, optionals and Go‑style pairs with concrete microbenchmarks across clang, MSVC and GCC; results show exceptions slower in microbenchmarks (special MSVC string case aside) and roughly a 3% code-size increase. Examples exercise recursive stack unwinding (depths to 10), RAII/unique_ptr to avoid leaks, and propose C++17 features (optional, structured bindings, expected) as practical alternatives. Catch only to clean up and rethrow is the recommended coding pattern.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:05Why exceptions need more love
  3. 5:01Basic exception handling example
  4. 8:59Alternatives to exceptions
  5. 17:48When to catch exceptions
  6. 22:54Exception safety in manual memory management
  7. 30:57Global cleanup and termination
  8. 34:30Error handling performance comparison
  9. 41:18Exception handling in real-world code
  10. 46:32Performance impact and embedded systems
  11. 51:30Where exceptions fit best
  12. 56:09Q&A session
~/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.