~/talk

The Curiously Recurring Pattern of Coupled Types

Talkat NDC Oslo 2019 · 2019-06-17..06-21· [rust]
links:none on file
slides:none on file

Identifies a recurring type pattern as affine spaces and shows it in raw C pointers, STL iterators, std::chrono time_point/duration and 2D/3D positions, arguing that subtracting points yields vectors while adding points is meaningless. Implements a small C++17 library (demoed in Compiler Explorer) and C++20 concepts to enforce point vs vector types, uses a window-size example and std::midpoint to show compile-time errors instead of runtime bugs, notes zero-cost (even register-favorable) codegen, and explains how this prevents mistakes like mixing clocks or units.

AI-written summary · about

  1. 0:00Introduction to affine spaces
  2. 14:19API design principles
  3. 15:36Real-world examples
  4. 15:59Chrono library analysis
  5. 18:15Iterators and containers
  6. 24:19Mars climate orbiter case
  7. 25:39GUI API design case study
  8. 26:23Library implementation
  9. 28:08Compiler explorer demo
  10. 28:44Performance and assembly
  11. 32:35C++20 concepts modeling
  12. 34:03Intermission
  13. 35:32Conclusion and Q&A
~/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.