So, you want to use C++ Modules ... cross-platform?
summary
Shows that C++ Modules work cross‑platform but with caveats: msvc is broadly usable, clang 17 and GCC lag and show BMI consistency issues and crashes during modularization. CMake offers CMake 3.26+ experimental support relying on compiler dependency scanners; MSBuild already handles modules. Demo modularizes small (ar) and larger (SDL) header‑only libraries, builds on Linux with clang17 and on Windows with MSVC, and runs. Measured build speed for a full std header: include ~2s, header‑unit import ~15ms, named‑module import effectively ~0ms (modularized standard library speeds).
AI-written summary · about
chapters (8)
- 0:00C++ Modules cross-platform
- 1:26Modules recap and terms
- 17:33Compiler status details
- 23:29Modularizing existing library
- 38:29Build systems for modules
- 45:41Module dependencies handling
- 51:34Live demo cross-platform modules
- 56:04Conclusion modules
related talks
58mSo, You Want to Use C++ Modules … Cross-Platform?
01h 04mC++ Modules - Getting started today
01h 09mC++ Modules: Getting Started Today
58mKnockin' on Header's Door: An Overview of C++ Modules
01h 28m2024 Update: C++ Modules - C++ Developers Get Started Today!
34mPractical C++20 Modules and the future of tooling around C++ Modules
01h 07mBuilding C++ Modules
01h 11mA Practical Introduction to C++20's Modules
