~/talk

Modules are coming

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
slides:none on file

Claim: C++20 modules redefine the compilation model, replacing textual inclusion with precompiled module interfaces (BMIs) that cut redundant parsing, enforce encapsulation, forbid cycles and make imports order‑independent. Practical details: header units for migration, module global and private fragments, partitions, and the risk that include translation can break macro‑based configuration. Migration is nontrivial—expect a one‑decade transition—and ecosystem work (dependency metadata, module recipes) lands via a tooling TR in about one to two years.

AI-written summary · about

  1. 0:00Start
  2. 2:11Modules Example
  3. 4:38Lambdas
  4. 6:36Compilation Model
  5. 7:27Non Modular Unit
  6. 8:13Compilation of the Textual Inclusion Compilation Model
  7. 10:03Problems with the Textual Inclusion Model
  8. 11:26Odr Violations
  9. 12:06Runtime Error
  10. 12:59Lack of Encapsulation
  11. 15:25Compilation Error
  12. 16:13Example of Modular of the Modular Compilation Model
  13. 22:07Translation Units
  14. 23:09Import
  15. 23:46What Is an in Portable Header
  16. 26:38Include Translation
  17. 27:27Header Unit
  18. 28:26Writing Modules
  19. 30:01Structure of Module Units
  20. 31:42Export Keyword
  21. 34:27Implicit Export
  22. 36:25Modules Provide Stronger and Capsulation than Textual Inclusion
  23. 38:15Name Encapsulation
  24. 39:29Detail Namespaces
  25. 46:32Imports of Legacy Headers
  26. 50:11Deal with Non Modular Headers
  27. 50:52Module Global Fragment
  28. 52:33Module Ownership
  29. 52:49Modules Are Order Independent
  30. 53:56Problem of Ownership
  31. 56:05Modules Owning Their Declarations
  32. 58:38Private Module Fragment
  33. 59:10Module Partitions
  34. 1:04:09C + + Modules Tool Tooling Interactions Technical Report
~/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.