~/talk

Make impossible state unrepresentable

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
links:none on file
slides:none on file

Use the type system to eliminate impossible states: model per-Q indices as an optional index so the struct shrinks from 24 bytes -> 12 bytes, removes duplicate initialization and runtime assertions, and guarantees you never read uninitialized indices. For GPU work, bundle a secondary command buffer with pipeline and a vector of commands to avoid costly pipeline rebinds and allow parallel command construction. For resource handles, prefer forbidding moves or delete move operations so handles never enter a useless "moved-from" state.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Motivation
  3. 1:39Memory footprint
  4. 2:13Graphics example
  5. 3:41Move semantics
~/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.