Skip to content
0:00 / 0:00

#exceptions#errorhandling#herbsutter

KEYNOTE: De-fragmenting C++: Making exceptions more affordable and usable - Herb Sutter [ACCU 2019]

ACCU Conference

20K subscribers • 32 videos on Hallway • Conference channel

YouTube
  • One of the most-watched uploads on ACCU Conference, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
  • Presented by Herb Sutter
  • An opinion. It argues one side of a question engineers disagree on.

Advanced. Deep dive for people who know the field.

16K views7 years ago

Programming languagesSoftware designC++Language design and type systems

Herb Sutter analyzes the problems with C++ exception handling and proposes solutions to make exceptions deterministic and usable in all environments.

#CPP #ACCUConf #exceptions Error handling has fractured the C++ community into incompatible dialects, because of long-standing unresolved problems in C++ exception handling. Many projects turn off exception handling (EH) entirely, such as with -fno- except. Many others don’t throw exceptions in code that has to run in statically bounded space or time. Still others don’t know exceptions in code that may not be exception-safe, because they cannot see the invisible exceptional control flow paths. This talk summarizes the root causes and presents some early proposed solutions that we hope will let the community embrace using exceptions consistently for unified error handling. It also discusses the differences between program-recoverable errors (e.g., database connection dropped), program bugs (e.g., precondition violation), and exceeding resource limits (e.g., stack overflow) to demonstrate why these are three fundamentally different things with different audiences, and therefore should be reported in different ways. The talk will also cover what’s already going on in C++ standardization today to evolve the standard library in these directions, including what’s now already in C++20 to lay the groundwork for these coming changes. ------------------------- Herb is an author, designer of several ISO C++ features, and chair of the ISO C++ committee and the Standard C++ Foundation. ------------------------- Future Conferences: ACCU 2019 Autumn Conference, Belfast (UK): 2019-11-11 and 2019-11-12. ACCU 2020 Spring Conference, Bristol (UK), Marriott City Centre: 2020-03-24 to 2020-03-28. ------------------------- ACCU Website: www.accu.org ACCU Conference Website: conference.accu.org ACCU Twitter: @ACCUConf ACCU YouTube: youtube.com/c/ACCUConf Filmed and Edited by Digital Medium Ltd - events.digital-medium.co.uk Contact: events@digital-medium.co.uk

Why it's here

A top upload from a listed channel

ACCU Conference is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.

u/mttdin r/ProgrammingLanguages • Mentions

On “Tutorial for implementing exceptions, RAII in LLVM?”

…n Optimizations. An experiment. 2019-06-04; Gor Nishanov. https://wg21.link/P1676 There's also an alternative (proposed) design: - P0709: Zero-overhead deterministic exceptions: Throwing values. 2018-05-02; Herb Sutter. https://wg21.link/P0709 - De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable - Herb Sutter - ACCU 2019: link to this video - CppCon 2019: link to this video - An LLVM implementation is discussed in "Low-cost Deterministic C++ Exceptions for Embedded Systems" Compiler Construction (CC) 2019. https://www.research.ed.ac.uk/portal/en/publications/lowcost-deterministic-c-exceptions-for-embedded-systems(2cfc59d5-fa95-45e0-83b2-46e51098cf1f).html These talks are pretty good in…