je42on Hacker News • Recommends
On “Tim Sweeney: Eliminating C++ exceptions gave 15% speedup”
#exceptions#rtti#zero-overheadprinciple
189K subscribers • 103 videos on Hallway • Conference channel
Advanced. Deep dive for people who know the field.
89K views7 years ago3 recommendations
Programming languagesSystems programmingC++Language design and type systemsPerformance and optimization
Herb Sutter proposes a zero-overhead exception model for C++ to address community fragmentation caused by disabling exceptions and RTTI.
CppCon.org Discussion & Comments: reddit.com/r/cpp/ Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2019 — De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable A fundamental reason why C++ is successful and loved is its adherence to Stroustrup’s zero-overhead principle: You don’t pay for what you don’t use, and if you do use a feature you can’t reasonably code it better by hand. In the C++ language itself, there are only two features that violate the zero-overhead principle, exception handling and RTTI – and, unsurprisingly, these are also the only two C++ language features that every C++ compiler has switches to turn off and that are regularly discouraged or even banned. This matters because not using these features is the largest current cause of fragmentation of the C++ community into incompatible dialects, and the cause of recurring problems including type confusion security vulnerabilities arising from “didn’t down-cast using dynamic_cast because that would be too slow.” This talk is about ongoing long-term efforts to try to unify the community in this area, not by replacing exceptions and RTTI, but by doubling down: fully embracing exceptions and RTTI, and improving them so they can be zero-overhead too. — Herb Sutter Herb is an author, designer of several Standard C++ features, and chair of the ISO C++ committee and the Standard C++ Foundation. His current interest is simplifying C++. — Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctfWhat people say. Engineers recommend this talk for its deep dive into the performance overhead of C++ exceptions and the proposed Result-like alternative.
je42on Hacker News • Recommends
On “Tim Sweeney: Eliminating C++ exceptions gave 15% speedup”
Felkon Hacker News • Recommends
On “Investigating the Performance Overhead of C++ Exceptions”
je42on Hacker News • Recommends
On “These Modern Programming Languages Will Make You Suffer”
inetknghton Hacker News • Recommends
On “How is Ultrassembler so fast?”
u/mttdin r/ProgrammingLanguages • Mentions
On “Tutorial for implementing exceptions, RAII in LLVM?”
u/marler8997in r/Zig • Mentions
TuxSHon Hacker News • Mentions
On “TOML for Modern C++”
fpolingon Hacker News • Mentions
On “Secure Rust Guidelines”
sideeffffecton Hacker News • Mentions
On “Orthodox C++”
oconnor663on Hacker News • Mentions
On “Fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid”
bluxon Hacker News • Mentions
On “Trip Summer ISO C++ standards meeting (Varna, Bulgaria)”
u/bisixyfin r/C_Programming • Mentions
On “So, should you handle malloc errors or not?”