~/talk

Typing++ for C++ - Making the Compiler Do the Thinking

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [c-and-cpp, compilers-and-language-design]
links:none on file
slides:none on file

Argues that adding small, explicit strong types moves many bugs to compile time and shows a tiny C++ library (a standalone file inside TTL) that wraps scalars with unique tag enums so the object code stays identical but invalid unit combinations fail to compile. Demonstrates with an automated generator that as expressions gain more distinct types ~90% of combos fail at three types and experiments give an average 22% rejection rate. Library is 99 lines, yields zero-runtime overhead and requires explicit conversions for cross-unit operations.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:54Why strong typing matters
  3. 3:24Types in everyday life
  4. 6:14Overcoming resistance to typing
  5. 7:15How strong types work in C++
  6. 9:19Type consistency and operations
  7. 12:10Real-world bug prevention
  8. 15:40Monkeys writing code experiment
  9. 18:54Typing as a validation filter
  10. 21:02System-level type robustness
  11. 23:46Avoiding over-typing pitfalls
  12. 25:30Trying the typing library
  13. 26:35Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.