~/talk

How Hard Could It Be? int64 → int64_t

Talkat CppNorth 2022 · 2022-07-18..07-20· [c-and-cpp, software-architecture]
slides:none on file

Migrating a companywide int64 alias to int64_t forces concrete fixes not vague guidance: thousands of template-deduction failures and a few hundred virtual-signature mismatches get rewritten via custom clang-tidy checks, thousands of format-string mismatches get eliminated by switching to an Abseil-style constexpr format validation API, static const fields become constexpr to avoid ODR, unit tests catch boolean-overload bugs, and a 2% PGO slowdown is recovered with clang’s profile-remapping; the automated toolchain plus reviews makes the migration complete and production-safe.

AI-written summary · about

  1. 0:00Introduction to the project
  2. 3:58Platform assumptions and constraints
  3. 8:11Why the type alias change is tricky
  4. 15:06Reference binding issues
  5. 22:07Template overload resolution problems
  6. 33:27String formatting and ODR rules
  7. 41:14Performance impact of type changes
  8. 49:37Lessons and future improvements
  9. 51:42Q&A on PGO and refactoring
~/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.