~/talk

How Hard Could It Be? Lessons Learned from Replacing int64 With int64_t.

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp]
slides:none on file

Google spends a year-plus migrating a typedef across ~250M lines to the standard int64_t, first proving the aliases are identical, then fixing ~1,000 template deduction failures, hundreds of format-string sites, virtual-signature mismatches, and dozens of ODR/linker issues. Built a replacement string printf → str format with constexpr-like checking, wrote many clang-tidy fixes (including the static const-expr pattern), used PGO remapping to avoid a measured ~2% web search regression, and lands the migration successfully.

AI-written summary · about

  1. 0:00Introduction to C++ integers
  2. 1:02The problem with type aliases
  3. 5:37Strategies for refactoring
  4. 13:54Handling reference mismatches
  5. 18:34Overload resolution issues
  6. 23:46Silent logic errors
  7. 28:36Format string challenges
  8. 32:30Linker and definition errors
  9. 37:55Performance and conclusions
~/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.