~/talk

Building C++ Modules

Talkat CppCon 2017 · 2017-09-24..09-29· [c-and-cpp]
links:none on file
slides:none on file

Modularized a real build2 utility (≈30 modules, unit tests) and sees 2.5x–3x faster builds with Clang and a modularized libstdc++; compilers emit a binary module interface (BMI) plus object file for an interface unit, so the build system must order BMI builds and supply BMIs to importers; BMIs depend on compiler options so build systems often perform side builds or rebuild BMIs per-option. Guidance: separate interface and implementation units, avoid including headers in the module purview, keep modules cohesive.

AI-written summary · about

  1. 0:00Introduction to C++ modules
  2. 1:04Why use C++ modules
  3. 3:19Demo of build speedup
  4. 5:39What is a module
  5. 9:14Module consumer perspective
  6. 10:42Module producer perspective
  7. 17:36Build system implications
  8. 21:35Build pipeline examples
  9. 27:57Module design guidelines
  10. 29:20Module granularity
  11. 31:53Module interface structure
  12. 34:47Where to put includes and imports
  13. 39:28Module naming conventions
  14. 41:17Modularizing existing codebases
  15. 47:54Backwards compatibility levels
  16. 53:20Q&A session
~/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.