r/cpp • OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 • Dec 18 '24

WG21, aka C++ Standard Committee, December 2024 Mailing

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/index.html#mailing2024-12
85 Upvotes

243 comments sorted by

View all comments

73

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 Dec 18 '24

As the author of these papers.. I will expand on the background story.

  • P2656R4 WITHDRAWN: C++ Ecosystem International Standard
  • P2717R6 WITHDRAWN: Tool Introspection
  • P3051R3 WITHDRAWN: Structured Response Files
  • P3335R4 WITHDRAWN: Structured Core Options
  • P3339R1 WITHDRAWN: C++ Ecosystem IS Open License
  • P3342R2 WITHDRAWN: Working Draft, Standard for C++ Ecosystem

Many years ago when I started working on the area (see https://wg21.link/P1177) I always understood that there were two basic requirements for solving the C++ tooling ecosystem problems:

  1. WG21 needed to buy in to the position that the work was needed.
  2. The solutions (and adoption) needed to include parties external to WG21.

The first one took a couple of different attempts, and almost 3 years, to find a viable avenue (a new International Standard) and support in WG21.

For the second one I choose to develop and publish all the work using an open license. With the theory that it was possible within the framework allowed by ISO as the rules stood (at least within the last 5 years).

Work was progressing mostly on schedule for a final IS document in Summer 2025. Although with narrower scope than initially hoped for. Events in the Summer meeting, Fall meeting, and in between changed my understanding of both the level of support and priorities of WG21 and of what was possible. But before I get to what happened let me say the things that need, and needed, to happen for an IS to become a reality:

  1. Obviously an outline of the contents of the IS needs to get composed.
  2. That outline needs to be approved.
  3. Lots of work happens to compose, review, and accept "ideas" from the outline.
  4. Lots more work happens to compose, review, and accept *wording* for a draft IS.
  5. A coherent draft IS needs to be composed.
  6. An "ISO work item" needs to be approved and created.
  7. The draft wording needs to be reviewed in detail by one of the two WG21 wording groups.
  8. WG21 needs to vote to approve sending the "final" draft to ISO for comments/voting.

And assuming all that happens successfully an IS gets published by ISO.

Items (1), (2), (3), (4), and most of (5) happened roughly on-time. What happened with the rest? When attempting to get (6) completed last Summer the draft IS was approved by SG15 and sent to EWG for approval. But given the schedule of EWG it was not discussed for approval to start the work item.

==> It did not make progress.

During that Summer meeting the subject of the open licensing that I had placed the work under came up. We wrote P3339 explaining our position. But we ran afoul of a rule that only allows technical matters in WG21. And I was asked to remove the open license. Which I did to hopefully advance the process. At that time I was also advised to contact the ISO legal department regarding the licensing. Between the Summer and Fall meetings I contacted that ISO legal department. After some exchanges to clarify what I was asking help with, ISO legal asserted that they would not render decision (or even read P3339) on the matter and determined that they only support the existing avenues of publishing standards free of charge (for which recent rules this IS would not qualify) and do not support open licensing. But, I was still willing to continue with a similar model that we currently have for the "not entirely legal" free/public access of the C++ IS.

==> It meant that my (2) requirement was impossible according to ISO.

For the Fall meeting I thought I was prepared as the draft was done. And SG15 even added more to it. Which I managed to inject from a paper into the draft IS in a couple of hours. The idea being that the draft would be discussed and approval for the work item created (and still barely keeping us on schedule). First event that occurred was that the chairs appeared to not understand who or what needed to happen. But we did get that sufficiently resolved to make it clear that EWG would need to vote on the draft to create the work item. It was put on the schedule for Friday for possible consideration. But I was warned that it was unlikely to be discussed given the schedule. I attended the meeting on late Friday hoping and somewhat expecting a vote to happen. Instead the draft, and a few other papers, got bumped in favor of discussing, and eventually voting on, what is now SD-10 (https://isocpp.org/std/standing-documents/sd-10-language-evolution-principles). In addition there was also a vote to re-prioritize WG21 towards working to include profiles for C++26.

==> Again, it did not progress. And now we missed a deadline from our schedule.

What I concluded from those meetings, is that the (1) requirement was not resolved. WG21 prioritized profiles above the tooling ecosystem work. And given that time requirements step (7) would not happen until after C++26.

==> Which means the EcoIS would be delayed for 2 more years (at best).

After the Fall meeting I met with some tooling people that have been doing work to eventually target the EcoIS on possible ways to make progress. Our conclusion was that it would best serve the C++ community to remove the work from WG21 (and ISO). And to continue the work elsewhere. And, hopefully, still keep the goal of a 2025 open licensed release of an ecosystem standard.

48

u/James20k P2005R0 Dec 18 '24 edited Dec 18 '24

got bumped in favor of discussing, and eventually voting on, what is now SD-10 (https://isocpp.org/std/standing-documents/sd-10-language-evolution-principles). In addition there was also a vote to re-prioritize WG21 towards working to include profiles for C++26.

Good lord. I don't think I have the words to express how grim it is that that is the paper that got yours bumped. SD-10 was at best a tremendous misuse of time and resources - seemingly in an effort to divert attention away from Safe C++ - and its disappointing to see exactly what was missed from the standard as a result. I'm sorry that things went like this! Its tremendously disappointing to see politics bump out useful work

SD-10 has very little in it, and it contains almost nothing which is even vaguely actionable. SIGH. This is the real consequences of the politiking around safety in C++, and.. lets say 'using' the process to get your own papers through. Instead of doing what we should be doing, which is working together to better the language

Our conclusion was that it would best serve the C++ community to remove the work from WG21 (and ISO)

WG21 rarely seems like the best place to get anything done these days

→ More replies (3)

11

u/neiltechnician Dec 18 '24

Right now, my question is... what's next? I mean, apparently, the core of your work will remain unchanged. But, it is a major change in platforming, so, like:

  • What do we do with SG-15? Is it still useful?
  • Who, out of the major tool makers, are on board of this change?
  • Without the "blessing" of ISO (for what it's worth), how do you make sure the new ecosystem standard will gain recognition?

16

u/jwakely libstdc++ tamer, LWG chair Dec 18 '24

how do you make sure the new ecosystem standard will gain recognition?

Make it useful, and rely on vendors wanting to support useful things because they're useful

15

u/bretbrownjr Dec 18 '24

We have recent experience with P1689 in technically non-standard features getting implemented across the ecosystem. Likewise for the compile commands JSON format, which is only specified in LLVM docs. SARIF adoption in some form seems to be on that same trajectory (SARIF is an OASIS standard, though use of it in specific cases is not required as such).

It's a shame that ISO and WG21 can't prioritize the mostly mechanical work of saying, "Yes. Those things. Those are in the standard C++ Ecosystem", at least not with a reasonable amount of effort.

But C++ absolutely must have an ecosystem that keeps advancing to meet the needs of C and C++ engineers and users of software written in C and C++. A pivot towards a public domain specification and/or a document standardized through a more productive process is sensible. The desired outcomes for coherence and interoperability are certainly needing our support.

8

u/Minimonium Dec 18 '24

People largely overestimate the value of ISO "blessing".

It can't dictate things that vendors don't want, so the process is set in way so the vendors generally don't mind the changes which pass the approval. An out of band process won't change it unless it would decide that it doesn't need to consult vendors for some reason.

The sg15 was already a collaboration of tooling stakeholders, lots of whom don't really want to participate in wg21 politicking.

Sg15 as a concept are useful. Sg15 as a mailing list and process is less so (can't count how many times I observed drops into the mailing list from committee tourists). The alternative process presented by the author seems more productive for everyone involved.

26

u/neiltechnician Dec 18 '24

Gosh. It has always been known the ISO process is kinda flawed. Now, your story makes me fear ISO and WG21 are actually failing C++, bit-by-bit and accumulating.

10

u/germandiago Dec 18 '24 edited Dec 20 '24

I see lots of useful work happening in WG21. That C++ is not at the top for every single thing does not mean bad. that would be impossible.

I really do not get how people get so pessimistic. I understand it can be frustrating or even infuriating at times but look at all things that are moving: execution, reflection, contracts, pattern matching, relocation, hardened stdlib, std::embed, parallel ranges, feedback on profiles...

Yes I know it is slow and frustrating at times but there is a lot happening here.

What is so wrong and negative here? Only what I mentioned is already a ton of work but there is much more.

11

u/neiltechnician Dec 18 '24

It is not a concern in productivity, nor a claim of dysfunctionality. (Indeed I do praise and thank all the hard works and good works WG21 has done for the community, and I know WG21 will keep on.)

It is more about lost of confidence in the institution, and maybe by extension disappointment in our public intellectuals who drive the institution. I'm not sure how to elaborate... Perhaps think a parliamentary government. A political crisis is often not about productivity of the government; it is usually about failure to address key issues, and more importantly misalignment between the leader's attitudes and the populace concerns.

10

u/germandiago Dec 19 '24 edited Dec 19 '24

I think this is empty words. You measure things by their outuput, quality and I would say industry usage. The committee has been highly successful at delivering meaningful improvements for lots of features yet I see many people totally focusing on the negative or controversial parts when there is a lot accomplished so far.

To just give an example safety seems to have been prioritized. That means more resources into it. Tooling is out, probably bc of priorities. So now people start complaining about the tooling as if nothing could be done anymore but if it had been prioritized at the expense of safety, then some people would say C++ does not take safety seriously.

I see relocation, pattern matching, reflection, executors, contracts and a push for safety, and lots of other smaller features going on.

What do people really want here?

As for Safe C++, a bunch of people have polarized the topic to the highest possible without absolutely admitting the real-world concerns for a language like C++.

For sure the committee is not perfect, but for what I see from outside they do a very reasonable job more often than not: they deliver features, they can be added incrementally, they keep increasing good patterns and avoiding bad ones (dangling type in ranges, smart pointers) they improve usability (structured bindings, constexpr), they study how to fit difficult to fit stuff such as relocation and safety without ignoring the reality of an industrial-strength language, which is not a language you can break at the slightest chance ignoring all your users.

FWIW, I have an overall positive view of the work done here.

But if it can be done so much better, just the wise people gather together, do a fork and do something usable.

You do not need ISO for that.

ISO provides a stable language, with incremental improvements for which there is a clear spec that is improved all the time and where features are carefully added to remove annoyances or cover new use cases.

I think that keeping in mind what I would say that mission is, it is handled reasonably well.

If someone wants the last fashionable thing just go find Zig, Rust or others.

But retrofitting Rust into C+ + would have been a terrible decision at many levels.

6

u/kronicum Dec 20 '24

You do not need ISO for that.

What I have read in the last 4 years on this reddit sub and elsewhere have convinced me that, actually, ISO has saved C++ from its own community.

7

u/germandiago Dec 20 '24 edited Dec 20 '24

I also have that feeling at times. It is all rants and complaints ignoring the huge amount of work that is pushed forward.

Yes, modules still are in its infancy (but start to be more or less usable now) and coroutines only have the engine but not libraries in ISO C++ (but there is Boost.Cobalt, Asio, CppCoro, some Google efforts...) so I am not sure what is so bad about C++.

A deeper analysis shows that many of the things people ask for are not even realistic and would be harmful. Two of those are usually a "Cargo for C++", you just cannot do that when projects are written in a zillion different build systems and it is working software already... you need another solution. By another solution I mean: with Cargo (or Meson wraps!) you would need to port all build systems to the "true one". This is not even a question in C++: it is not going to happen, the solution goes more along the lines of Conan.

The other one I think would have been a terrible decision is Safe C++: it would have split the language literally in two pieces apart with the only characteristic that you can call the code with the same safety as usual.

I am glad the committee was there representing what C++ represents: an industrial-strength language where things will keep coming and improving for the better given the restrictions that there are millions of users using it and do it with minimal disruption.

When you start to disrupt the language in ways some people have asked for repeteadly what you would have is an assessment of the cost/benefit of those disruptions.

Something similar happens to Java as well. For example reified generics has been a real concern for years. Or lambdas were. They have not done Valhalla stuff or lambdas until they knew the design fits in. Why? Because there are people using it for real things and breaking all that would be a disaster.

This is the category where C++ belongs. Also, I see people often asking for ABI breaks. The amount of problems ABI breaks would bring is spectacular. You just cannot do that lightly. They need to be predictable, if they happen and, after all, you have a bunch of libraries (Abseil, Boost.Container, etc.) that you can use anyway if you want max speed.

So all in all, I really sympathyze with most of the committee decisions given the language C++ is: stable, rock-solid, non-disruptive and for using in projects where things have to get done. Not a toy where we break things at the caprice of some.

6

u/_a4z Dec 18 '24 edited Dec 19 '24

Hardened stdlib, profiles, how do you want to deal with that without talking about tools.
Modules anyone?
There are enough topics, and the core people that decided to come up with an SD-10 and not talk about tooling is on the way to losing all respect I had for them. They look more and more like reality-detached academic eggheads, having never had to deal with real real-world scenarios, like taking responsibility for shipping products over several years together with multiple teams.

5

u/germandiago Dec 19 '24

Hello. I have not been there, but as of today, with Meson and CMake I can use hardened std libs without problem.

The state of modules still needs some work. Even if the committee does not push for something, I think that an open alternative can do the job in this regard.

Since I was not there, I do not have enough information to give an opinion, but I would say that it is likely that what is considered now extremely critical is all the safety work towards C++, more so than even tooling, because tooling can be solved outside (even if not the way many of us would have wished) but not having some kind of official push for safety work in C++ would be the difference between seeing C++ disappear or keeping it relevant.

So I am guessing here that this was more a matter of priorities more than a "no, I do not want to improve tooling" thing.

If this was the case, sadly, we cannot have everything but it was the most sensible choice.

I wish the best luck to the tooling people, who are doing a very relevant job as well and I hope that some kind of open standard comes from the work done at some point, even if not officially supported by the committee.

Also, after all this safety-critical stuff is done, is there a chance that tooling comes back inside the committee? I think in the meantime work outside could be done and experimented with.

6

u/bretbrownjr Dec 20 '24

...not having some kind of official push for safety work in C++ would be the difference between seeing C++ disappear or keeping it relevant.

Solving ergonomic and interoperability problems is as essential for C++ relevance, and the need to make progress is on a much shorter horizon than safety, which is a real concern, but C++ is losing new users now because it's too hard to use C++ as a practical matter. The ISO C++ surveys of C++ users show this every year.

And safety does require good tooling. The goal we must target for C++ safety isn't an acceptable language design document. It's users actually writing safe code using safe dependencies. All of the memory safe ecosystems have more or less consistent ways to categorically depend on a memory safe project. The C++ language standard and therefore ISO WG21 on its current trajectory assumes dependencies are literally not meaningful.

The reason we have a priority issue is because language design is a priority for the median WG21 participant and all ecosystem and usability concerns are considered a priority for someone else. I don't think it's malicious, but regardless the outcomes so far speak for themselves. Is it fixable? Probably yes, by removing some roadblocks, prioritizing specific discussions, and maybe scheduling a few more meetings until an Ecosystems IS gets meaningful momentum. But I'm not a WG21 organizational hacking expert, so maybe I'm oversimplifying something.

6

u/_a4z Dec 19 '24

> ... but as of today, with Meson and CMake I can use ...

yes, and those are ... TOOLS. That is precisely my point; it does not work anymore without having a huge focus on tooling and some of the core functionality for tooling standardized so that in the future, the situation on how you build systems with many dependencies improves .However, without the work of SG15, the OP in particular, it might be challenging to proceed with that topic. So, not handling those points with a specific priority at any WG21 meeting and causing delay is probably not a wise thing

→ More replies (7)

4

u/GabrielDosReis Dec 19 '24

I attended the Wroclaw meeting in person and I can tell you this is the first time I am reading about this account. If the concerns were aired at that meeting, it must have been in between a very small number of people. I checked with other folks and they are as surprised as I am.

→ More replies (2)
→ More replies (4)

9

u/pjmlp Dec 18 '24

The amount of stuff being done on paper and only landing after standardisation, with compilers current adoption velocity, is another example of it not working.

11

u/schombert Dec 18 '24

It is a weird sort of standard. It functions as if the standard writers were also in charge of the compilers, and so the development of a new standard is like a roadmap for where they are planning on taking the compiler next. But ... they aren't in charge of the compilers. So in actuality it is one group of people assigning work to a second group (well, groups) of people whom they don't pay, and also putting them in a situation where the group of people doing the work have a very small say in the work they are assigned. I'm honestly shocked it is as functional as it is. It would be very easy for the big 3 to just set up their own "standard" and assign themselves the work they want to do.

→ More replies (11)

3

u/JVApen Clever is an insult, not a compliment. - T. Winters Dec 18 '24

Reading about EcoIS, I recognize some ideas from CPS (https://cps-org.github.io/cps/overview.html), like knowing the defines ... by having them specified in a JSON file. How much overlap is there between these 2?

7

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 Dec 18 '24

Many of the same people working on CPS, including myself, had also been working on EcoIS. And EcoIS was the avenue to get CPS standardized after some implementation experience (as it's more complicated than what EcoIS initially contains). So it definitely has overlap. And we work towards making CPS and everything else working together. In a way moving to the new EcoStd continuation of the work will make that easier.

2

u/germandiago Dec 19 '24

Is all that work being put to good use somewhere else? It would be a pitty to lose that effort just because it went out of ISO.

2

u/bretbrownjr Dec 20 '24

Yes. Initial CPS experimental support is landing in CMake already. Incomplete and API unstable support, to be sure, but there's work underway. We don't expect package managers will have to make huge changes to support CPS. It's mostly for interop across build system executions and perhaps other tools that benefit from awarenesses of C++ dependencies like tools that would suggest missing or unneeded dependencies by scanning include directives.

5

u/RoyAwesome Dec 18 '24

what a huge bummer.

10

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 Dec 18 '24

While I also feel some sadness that ISO/WG21 did not work out for this, I also think it's a good opportunity. We can create a venue and process that works best for the myriad of tool developers. Especially for the ones that tried over the years to get involved in WG21/SG15 and ran away. And I am also especially hopeful of seeing users get interested in having a say on how the tools they use behave. After all, we need more and more tool developers and development.

→ More replies (4)
→ More replies (13)