~/talk

Enhancing Safety in C++ Code With Modern C++ Quantities and Units Library

Talkat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
slides:none on file

Shows a concrete library, mp-units, built for C++20 that enforces compile‑time unit safety, models quantity kinds and quantity_spec trees, and keeps zero runtime or size overhead (assembly matches raw doubles). Demonstrates GCC/Clang support while MSVC currently fails, catches unit-mix bugs that caused Mars Climate Orbiter and historical 31% navigation errors, prevents truncation and invalid point math, and surfaces mistakes as compile errors though integer division and unsafe numeric types remain user risks.

AI-written summary · about

  1. 0:00C++ safety and units
  2. 12:01Unit conversion disasters
  3. 21:09System of quantities and units
  4. 38:38Safe unit conversions
  5. 45:49Columbus navigation error
  6. 54:09Dangers in legacy durations
  7. 59:27Quantity kinds and type safety
  8. 1:09:30Fine space points examples
  9. 1:17:40Pitfalls and trade-offs
  10. 1:28:36Summary
~/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.