~/talk

Backporting C++ Safety

Talkat C++Now 2024 · 2024-04-29..05-03· [software-architecture]
links:none on file
slides:none on file

Built BlazingMQ: a large distributed queuing system (seven–eight year codebase processing millions of messages) implemented for C++03 clients. Uses contract programming (bsls_assert_safe macros) to opt into bounds and lifetime checks, custom allocators to detect leaks and quarantine frees, an actor model to avoid shared-state races, sanitizers and Jepsen-style tests for failure injection, and TLA+ to verify leader election. Claims a library-only backport gives substantial safety improvements within C++03 constraints while meeting performance goals; code is published and used in production.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:46BlazingMQ overview
  3. 6:03What is safety in C++
  4. 14:07Memory safety challenges
  5. 29:20Use after free solutions
  6. 36:22Allocator and Miracle Pointer
  7. 41:18Uninitialized memory and contracts
  8. 45:51Contract programming in code
  9. 49:03Type safety and strong types
  10. 55:43Thread safety and data races
  11. 1:04:32Safety vs correctness
  12. 1:07:27Ensuring correctness in code
  13. 1:16:12Q&A and closing
~/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.