~/talk

Practical C++ Modules

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp, compilers-and-language-design]
links:none on file
slides:none on file

C++20 modules arrive with three practical migration paths: include translation, header-unit importation, or full named modules that produce a binary module interface (BMI). Measured with GCC on a six‑core laptop, turning iostream into a BMI cuts a synthetic build from about 6s to ~2s (~3× speedup). Build systems must produce and depend on BMIs (don’t distribute BMIs as a public artifact), compilers have partial, evolving support, and choose module granularity, interface/implementation units, and naming deliberately to avoid unnecessary recompilation.

AI-written summary · about

  1. 0:00Introduction to C++ modules
  2. 10:40Include translation overview
  3. 21:20Header importation basics
  4. 28:28Practical module guidelines
  5. 39:50Module naming and structure
  6. 50:14When to migrate to modules
  7. 57:53State of tools 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.