~/talk

Type safe C++ – LOL! :-)

Talkat ACCU 2018 · 2018-04-11..04-14· [c-and-cpp]
slides:none on file

Argues that wrapping primitives as distinct types both prevents bugs and can improve clarity and performance, showing a tiny safe_type template (with CRTP) used at work to turn ints and strings into distinct RequestID/ReceiverID types and stop about 20 bugs, plus a serialization pattern for 24‑bit slot counts. Covers two open libraries (Jonathan Miller’s and Fluent’s strong-type utilities), warns about inheriting mutating string APIs, demonstrates an affine space model (positions vs displacements), and measures no overhead — sometimes fewer instructions.

AI-written summary · about

  1. 0:00Introduction to type safety
  2. 5:28War stories from C++ code
  3. 17:34Building a simple strong type library
  4. 29:50Liskov substitution principle trap
  5. 39:15Exploring strong type libraries on GitHub
  6. 48:52Affine spaces in C++ types
  7. 1:03:19Performance impact of strong types
  8. 1:06:35Summary and key takeaways
  9. 1:09:07Q&A session
~/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.