News for hackers. Stuff that matters.
Re:C++26 is done ISO C++ standards meeting, Trip Report by forrestthewoods on Sunday March 29, 2026 @02:44PM (#47565909)
No. Modules are a failed idea. Really really hard for me to see them becoming mainstream at this point.
Re:C++26 is done ISO C++ standards meeting, Trip Report by AyanamiKaine on Sunday March 29, 2026 @03:59PM (#47566643)
Can you explain why you think modules are a failed idea? Because not that many use them right now?

Personally I use them in new projects using XMake and it just works.

Re:C++26 is done ISO C++ standards meeting, Trip Report by devnullbrain on Sunday March 29, 2026 @05:23PM (#47567487)
I'm not the PC but I think you miss most of the pain points due to: 'personal' projects.

There's not a compatible format between different compilers, or even different versions of the same compiler, or even the same versions of the same compiler with different flags.

This seems immediately to create too many permutations of builds for them to be distributable artifacts as we'd use them in other languages. More like a glorified object file cache. So what problem does it even solve?

Re:C++26 is done ISO C++ standards meeting, Trip Report by nickelpro on Monday March 30, 2026 @01:33PM (#47577263)
BMIs are not considered distributable artifacts and were never designed to be. Same as PCHs and clang-modules which preceded them. Redistribution of interface artifacts was not a design goal of C++ modules, same as redistribution of CPython byte code is not a design goal for Python's module system.

Modules solve the problems of text substitution (headers) as interface description. It's why we call the importable module units "interface units". The goals were to fix all the problems with headers (macro leakage, uncontrolled export semantics, Static Initialization Order Fiasco, etc) and improve build performance.

They succeeded at this rather wonderfully as a design. Implementation proved more difficult but we're almost there.

Re:C++26 is done ISO C++ standards meeting, Trip Report by forrestthewoods on Sunday March 29, 2026 @05:26PM (#47567510)
Because as a percentage of global C++ builds they’re used in probably 0.0001% of builds with no line of sight to that improving.

They have effectively zero use outside of hobby projects. I don’t know that any open source C++ library I have ever interacted with even pretends that modules exist.

Re:C++26 is done ISO C++ standards meeting, Trip Report by m-schuetz on Sunday March 29, 2026 @02:58PM (#47566025)
The idea is great, the execution is terrible. In JS, modules were instantly popular because they were easy to use, added a lot of benefit, and support in browsers and the ecoysystem was fairly good after a couple of years. In C++, support is still bad, 6 years after they were introduced.
Re:C++26 is done ISO C++ standards meeting, Trip Report by evanmoran on Sunday March 29, 2026 @04:15PM (#47566813)
Exactly. C++ is still waiting for its "uv" moment, so until then modules aren't even close to solved.
Re:C++26 is done ISO C++ standards meeting, Trip Report by lostdog on Sunday March 29, 2026 @05:59PM (#47567840)
And uv required some ground work, where the PEP process streamlined how you define a python project, and then uv could be built on top.
Re:C++26 is done ISO C++ standards meeting, Trip Report by creato on Monday March 30, 2026 @01:26AM (#47570661)
The idea is great in the same way the idea of a perpetual motion machine is great: I'd love to have a perpetual motion machine (or C++ modules), but it's just not realistic.

IMO, the modules standard should have aimed to only support headers with no inline code (including no templates). That would be a severe limitation, but at least maybe it might have solved the problem posed by protobuf soup (AFAIK the original motivation for modules) and had a chance of being a real thing.

Re:C++26 is done ISO C++ standards meeting, Trip Report by Xraider72 on Sunday March 29, 2026 @03:01PM (#47566059)
No idea if modules themselves are failed or no, but if c++ wants to keep fighting for developer mindshare, it must make something resembling modules work and figure out package management.

yes you have CPM, vcpkg and conan, but those are not really standard and there is friction involved in getting it work.

Re:C++26 is done ISO C++ standards meeting, Trip Report by StilesCrisis on Sunday March 29, 2026 @03:20PM (#47566260)
Much like contracts--yes, C++ needs something modules-like, but the actual design as standardized is not usable.

Once big companies like Google started pulling out of the committee, they lost their connection to reality and now they're standardizing things that either can't be implemented or no one wants as specced.

Re:C++26 is done ISO C++ standards meeting, Trip Report by pjmlp on Monday March 30, 2026 @07:44AM (#47573026)
Usable enough for Office, and the initial proposal was done by Microsoft.
Re:C++26 is done ISO C++ standards meeting, Trip Report by StilesCrisis on Friday April 03, 2026 @08:11PM (#47634048)
I know Microsoft invested a lot into modules development and migrated a few small pieces of Office onto modules, but I'm not sure if they are actually using it extensively, and I'm also not sure if they're actually all that beneficial. Every time I hear about modules, it's stories about a year of migration work for a single-digit build-time improvement.
Re:C++26 is done ISO C++ standards meeting, Trip Report by forrestthewoods on Sunday March 29, 2026 @05:22PM (#47567479)
I emphatically agree. C++ needs a standard build system that doesn’t suck ass. Most people would agree it needs a package manager although I think that is actually debatable.

Neither of those things require modules as currently defined.

Re:C++26 is done ISO C++ standards meeting, Trip Report by germandiago on Monday March 30, 2026 @11:03AM (#47575252)
That is not even half realistic. Are you going to port all that code out there (autotools, cmake, scons,meson, bazel, waf...) to a "true" build system?

Only the idea is crazy. What Conan does is much more sensible: give s layer independent of the build system (and a way to consume packages and if you want some predefined "profiles" such as debug, etc), leave it half-open for extensions and let existing tools talk with that communication protocol.

That is much more realistic and you have way more chances of having a full ecosystem to consume.

Also, noone needs to port full build system or move from oerfectly working build systems.

Re:C++26 is done ISO C++ standards meeting, Trip Report by forrestthewoods on Tuesday March 31, 2026 @07:53PM (#47595031)
Are the perfectly working build systems in the room with us now? Cmake and Conan ain’t it.

> That is not even half realistic.

uv is an existence proof that when you make something that doesn’t suck ass the entire industry will very very rapidly converge.

Claude makes converting any particular configuration from one system to another very very very tractable.

Re:C++26 is done ISO C++ standards meeting, Trip Report by pjmlp on Monday March 30, 2026 @07:43AM (#47573018)
It has the developer mindshare of game engines, games and VFX industry standards, CUDA, SYCL, ROCm, HIP, Khronos APIS, game consoles SDK, HFT, HPC, research labs like CERN, Fermilab,...

Ah, and the two compiler major frameworks that all those C++ wannabe replacements use as their backend.

Re:C++26 is done ISO C++ standards meeting, Trip Report by hrmtst93837 on Sunday March 29, 2026 @03:49PM (#47566556)
"Failed idea" gives modules too much credit. Outside old codebases, almost no one outside C++ diehards have the patience for the build and tooling circuss they create, and if you need fast iteration plus sane integration with existing deps, modules are like trading your shoes for roller skates in a gravel lot. Adopting them now feels like volunteering to do tax forms in assembbly.