~/talk

Using Coroutines to Implement C++ Exceptions for Freestanding Environments

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 14:00· online· [rust]
links:none on file
slides:none on file

Claim: implement C++ exceptions for freestanding environments using C++20 coroutines as the core mechanism, removing RTTI and avoiding unwind libraries. The implementation builds a throwing<T> type, elides coroutine heap allocation onto the stack, and shrinks assembly from ~400 to ~59 lines in examples; it propagates errors via co_await/co_return, works across translation units without LTO, and exposes an open source library on GitHub that actually runs and passes the shown tests. zero overhead and no RTTI.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Exceptions are for exceptional
  3. 9:03Library
  4. 16:33Behind the Scenes
  5. 17:53Analyzing the Assembly
  6. 26:01Simplifying the Main Function
  7. 30:56Proof
  8. 32:56Making Compiler Happy
  9. 36:12Translation Unit
  10. 38:12Exit Condition
  11. 40:46Result
  12. 47:05Summary
  13. 48:45Stacktrace
  14. 51:49QA
~/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.