~/talk

A Type, by Any Other Name

Talkat CppCon 2017 · 2017-09-24..09-29· [software-architecture]
name:Jon Cohen
links:none on file
slides:none on file

Google's C++ library team uses type aliases to migrate millions of lines non-atomically: create a new implementation class, make old names alias the new one, and flip users piecewise. Concrete example: ArraySlice and MutableArraySlice (50–100k call sites) merge into a single span by hiding dependent-template logic in a central impl, removing ~100+ lines of metaprogramming. The talk warns about breakage from ADL and forward declarations and shows tools like template aliases and std::conditional to avoid massive, disruptive renames.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Rename types
  3. 2:52Why rename
  4. 5:27Why refactor
  5. 7:55Why not make a new type
  6. 14:50Examples
  7. 20:09Hirams Law
  8. 24:21pandas are sad
  9. 26:11Template aliases
  10. 28:26The sad owl
  11. 30:06Summary
  12. 32:16Story
  13. 40:04Claim
  14. 41:38Wrapup
~/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.