r/cpp • WG21 Member • Oct 24 '26

Balloting has completed for C++26. Unfortunately it was Disapproved

https://www.linkedin.com/posts/robertseacord_balloting-has-completed-for-c26-unfortunately-share-7519795139859517440-AOth/

Since the C++26 DIS has been disapproved, the next step is going to be taken in Buzios during the 2026-11 meeting. The committee will have to decide what changes to make (if any) and submit an FDIS (Final Draft of International Standard) for Balloting.

289 Upvotes

399 comments sorted by

View all comments

Show parent comment

6

u/14ned LLFIO & Outcome author | Committee WG14 Oct 25 '26

It's not zero who want to work on tooling, correct. But as with investment in any tooling anywhere in the industry, it's always under supported given its return on investment.

Let me clarify so: tooling is even more thankless and grindy than most other parts of standards. A few people will do loads of work only to watch uninformed passers by shoot it all down with ignorant side sniping. So they give up and often quit WG21. Unsurprisingly, WG21 has become nearly devoid of tooling people.

You then end up with non tooling people imposing stuff from above. And the tooling implementers never getting around to implement it. And now things are being standardised that will never be implemented.

2

u/Difficult-Court9522 Oct 25 '26

I suppose you’re mostly talking about modules? Or is there another example?

2

u/14ned LLFIO & Outcome author | Committee WG14 Oct 26 '26

If you talk to average devs, a large portion of what would make their lives better comes down to tooling.

Taking just modularity, why hasn't C++ standardised Component Object Modules? Forty year old technology. We know it works. We know it solves most of the ABI and interop problem. We have many implementations to choose between. It's been proposed multiple times.

Yet, crickets on that. It's too boring, unsexy and thankless, so it never happens. And so we all continue experiencing shared library upgrades which break, an inability to fix std regex, an inability to standardise new vptr APIs etc etc

All absolutely fixable. But not fixable for entirely cultural and political reasons. And that is one of many examples.

4

u/Difficult-Court9522 Oct 26 '26

You mean the windows COM? If we use that for every library crossing won’t our code slow down a lot if we have a lot of library crossings?
And people use the standard library a ton.
It’s a lot of indirection / OO.

2

u/14ned LLFIO & Outcome author | Committee WG14 Oct 26 '26

Modern optimising in lining linkers can assemble modules into optimised binaries. You'd start a background job after installation. You already get this in .NET and Java and even Python. There is already existing tooling for this. We would just need to plug into it.

Where you would get inefficiency is where backwards compatibility shims between ABI changes get auto inserted. I remember working with a Win3.1 COM binary that hadn't been recompiled since back then, and it ran flawlessly on modern Windows. I counted seven shim emulation layers as the ABI had broken seven times. Almost certainly horrendously slow if you ran that on a i386. But I was on a Haswell. It goes quite a bit faster.

1

u/Difficult-Court9522 Oct 26 '26

You raise a very good point. And the only technical reason I can think of why I’ve never used com in my professional life is because people just don’t care/have the time/the need to /… make the c/c++ partly abi agnostic.
Because the windows com flow does increase the lib and application text code size.
Unless you can hide away all the com business.
Has anyone made a version where a TU can just include/import a specific version of a lib and have it automatically be forwards abi and api compatible (not an explicit windows style com)? Because that would require some language/… features. But then I think it would see broad adoption.

1

u/14ned LLFIO & Outcome author | Committee WG14 Oct 26 '26

Yes there were several back in the day. None got widespread adoption and they withered. COM is an excellent example of something which makes lots of other problems much easier, but by itself looks unappealing. For it to be useful, everybody needs to be using it - exactly what standards are supposed to lead out upon. But you'd have a better chance at WG14 than WG21 for standardising something like COM (and I'm on that actually, but we need a universal STD::error first, and that we can get into C by itself).

1

u/pjmlp Oct 27 '26

COM is not the only one left around, others have some more performance impact though.

Android uses heavily Binder (AIDL), Apple platforms a mix of Objective-C runtime, COM (on IOKit / DriverKit) and XPC, with some Linux distros being heavy D-BUS users.

The new kid on the block on Windows, WinRT, is basically COM with some extras (IInspectable, application identity and .NET metadata instead of TLB).

1

u/14ned LLFIO & Outcome author | Committee WG14 Oct 27 '26

Oh yes I didn't get into all the other Component Object Model implementations for brevity, and the OP mentioned COM so I stuck with that.

For C++: I know I proposed a design with a working implementation, and so did Gaby though his was fuller fat. We weren't the only two either - I think there were four attempts at proposing this over the past few decades.

I've given up on WG21, but as I say, after I get std::error into C3x, I'll try pitching Component Object Model for C and see how far I get. The current WG14 would say no - but maybe in the 2030s they might say yes.