News for hackers. Stuff that matters.
Re:C++26 Reflections adventures and compile time UML by Someone on Sunday August 03, 2025 @09:19AM (#44776393)
> One of the projects came back with 'just flipping C++20 switch with no changes causes significant regression on build times

Given that C++20 introduced modules, which are intended to make builds faster, I think just flipping C++20 switch with no changes and checking build times should not be the end of checking whether C++20 is worth it for your setup.

Re:C++26 Reflections adventures and compile time UML by jcranmer on Sunday August 03, 2025 @10:17AM (#44776747)
> Given that C++20 introduced modules, which are intended to make builds faster

Turning on modules effectively requires that all of your project dependencies themselves have turned on modules. Fail to do so, and a lot of the benefits start to become hindrances (Clang is currently debating going to 64-bit source locations because modularizing in this manner tends to exhaust the current 32-bit source locations).