r/cpp • u/SignalDepth6131 • 14h ago
Búzios Trip Report
I wrote up a short report from the Búzios meeting and where things stand with C++26:
https://cppalliance.org/newsmedia/news/b%C3%BAzios-trip-report-what-the-c26-ballot-taught-us/
28
Upvotes
12
u/azswcowboy 14h ago
> alliance broadly aligned with the team working on Profiles, an effort largely viewed as competitive to Contracts
They are cooperative not competitive. Profiles are almost entirely proposed as enhanced static analysis while contracts are runtime checks. In constexpr mode contracts can be a compile time check as well, but lots of stuff isn’t constexpr.
•
u/HowardHinnant 3h ago
Awesome report Harry! I learned new things from your report that I had not read elsewhere.
As for the C++ standardization process, I am reminded of Winston Churchill's comments on democracy:
Our process isn't perfect. But we continually strive to make it more perfect. And I believe it is leading the pack vs the way other languages are evolved.
7
u/AKostur 14h ago
I'm not sure what this is referring to. Assuming this is referring to contracts (like most of the rest of the report refers to): weren't contracts pulled from C++20? And earlier forms than that? So it's been many, many years in the works. And remember that folk in WG21 are all members of their respective National Bodies. So: how much more time are we talking about?
5
u/teerre 13h ago
Slightly off topic, but its ridiculous that these committee meetings are often in some tourist paradise
3
u/trad_emark 13h ago
always checked contracts is stupid. the *option* to remove contract checks is the most significant differentiator of contracts from regular control flow, eg. if statements.
-2
u/theICEBear_dk 13h ago
I -- acknowledging that my opinion literally does not matter -- would advise against the National Body suggestion. In many countries the barrier of access to ISO National Bodies are such that most people and even companies are shut out of the national bodies due to cost. In general their role seem to have become a further drag on an already difficult and contentious process. The NB being different and some using unanimous voting (I do not even know if it is the same for all NB) allows for single or very few to disrupt the democracy of the many (given the size of the comparative majority for contracts it is verging on the few controlling the many at the moment). If the NB members need or want to weigh in on the standard they should do it during the WG21 process instead in my opinion. Otherwise there is a bifurcation of where the expertise and process is focused and that will dilute and slow down c++'s development further.