logoalt Hacker News

mohamedkoubaayesterday at 6:27 PM4 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

zarzavatyesterday 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
jjmarryesterday 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.

forrestthewoodsyesterday 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
dheerayesterday at 9:27 PM

I frankly wish we'd stop developing C++. It's so hard to keep track of all the new unnecessary toys they're adding to it. I thought I knew C++ until I read some recent C++ code. That's how bad it is.

Meanwhile C++ build system is an abomination. Header files should be unnecessary.

show 1 reply