Writing code that is resilient upon errors (API failures, exceptions, invalid memory access, and more) has always been a pain point in all languages. This being still largely an unsolved (and actually rather loosely-defined) problem, C++11 makes no claim of having solved it. However, C++11 is a more expressive language, and as always more expressive features can be put to good use toward devising better error-safe idioms and libraries.
This talk is a thorough visit through error resilience and how to achieve it in C++11. After a working definition, we go through a number of approaches and techniques, starting from the simplest and going all the way to file systems, storage with different performance and error profiles (think HDD vs. RAID vs. Flash vs. NAS), and more. As always, scaling up from in-process to inter-process to cross-machine to cross-datacenter entails different notions of correctness and resilience and different ways of achieving such.
To quote a classic, “one more thing”! An old acquaintance—ScopeGuard—will be present, with the note that ScopeGuard11 is much better (and much faster) than its former self.
May 15, 2012 at 1:54 pm
skripsi…
[…]Session Topics: Error Resilience in C++11 « C++ and Beyond[…]…
June 29, 2012 at 12:37 pm
[…] Initial Thoughts on Effective C++11 (Scott) Modern C++ = Clean, Safe, and Faster Than Ever (Panel) Error Resilience in C++11 (Andrei) C++ Concurrency – 2012 State of the Art (and Standard) (Herb) C++ Parallelism – 2012 […]
June 29, 2012 at 12:43 pm
[…] Initial Thoughts on Effective C++11 (Scott) Modern C++ = Clean, Safe, and Faster Than Ever (Panel) Error Resilience in C++11 (Andrei) C++ Concurrency – 2012 State of the Art (and Standard) (Herb) C++ Parallelism – 2012 […]