logoalt Hacker News

mohamedkoubaatoday at 6:27 PM3 repliesview on HN

Biggest open question is whether the small changes to the module system in this standard will actually lead to more widespread adoption


Replies

zarzavattoday at 6:52 PM

The best thing the C++ WG could do is to spend an entire release cycle working on modules and packaging.

It's nice to have new features, but what is really killing C++ is Cargo. I don't think a new generation of developers are going to be inspired to learn a language where you can't simply `cargo add` whatever you need and instead have to go through hell to use a dependency.

show 5 replies
jjmarrtoday at 6:56 PM

No, because most major compilers don't support header units, much less standard library header units from C++26.

What'll spur adoption is cmake adopting Clang's two-step compilation model that increases performance.

At that point every project will migrate overnight for the huge build time impact since it'll avoid redundant preprocessing. Right now, the loss of parallelism ruins adoption too much.

forrestthewoodstoday at 6:44 PM

No. Modules are a failed idea. Really really hard for me to see them becoming mainstream at this point.

show 4 replies