r/cpp • • 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

52 comments sorted by

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.

6

u/GabrielDosReis 12h ago

They are cooperative not competitive.

Yeah; they are not in tension or competition.

Profiles are almost entirely proposed as enhanced static analysis while contracts are runtime checks.

Actually, both Bjarne and myself have always presented profiles as combining code analysis and runtime checks - either in papers or presentations.

1

u/azswcowboy 7h ago

> combining

Fair, but I think the presented papers so far are largely compile time, thus I’m not sure how many runtime things will end up in the set. Regardless, really just hope we make a solid start in 29.

3

u/GabrielDosReis 5h ago

Fair, but I think the presented papers so far are largely compile time, thus I’m not sure how many runtime things will end up in the set.

The Profiles Framework paper has many examples showing running checks and hardening, illustrating how profile parameters can be used to configure runtime behavior. One of the papers by Ville and myself for Hagenberg proposed uses of profiles for requesting hardened standard library implementation.

•

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:

Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed it has been said that democracy is the worst form of Government except for all those other forms that have been tried from time to time.

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

Another change I’d like to see going forward is national bodies having more time to weigh in on major proposals.

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?

7

u/13steinj 14h ago

NBs also weighed in on Contracts (fairly negatively) a year or two in advance.

I kind of just... don't trust any statements put out by the C++Alliance anymore. There's just too much oddity in how they / the people employed operate. It's important to note that AFAIK the Alliance was also against Contracts, so, who it's coming from matters as much as what.

7

u/AhaGames 14h ago

There are people in the alliance that also worked on contracts, so I don't think that any position represents all the members

5

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 13h ago

Indeed

3

u/CyberMarine1997 13h ago

The author pretty much said the same thing which is why they chose to abstain from voting.

-3

u/13steinj 13h ago

Honestly that just makes things stranger, however the author has used language that is very "anti-Contracts" coded in the past ("stability over feature speed"), and I just... never trust anyone who decides to speak to news media like The Register.

The Alliance in general has a lot of messy history surrounding it, especially around Contracts and I just think it's best to not take anything they say (at least in terms of media communications and trip reports... by the "CEO") with too much weight. They sound a lot more "official" than they are as an organization, which doesn't make things better.

7

u/GabrielDosReis 12h ago

Those comments are painting with a very broad stroke and over-generalization.

If you run an organization where you don't make space for dissenting views or make place for people with differing views to speak up and be heard, you should seriously reconsider what you want the reach of your organization to be.

-3

u/13steinj 12h ago

Dissenting views is great!

Who in the organization ends up speaking to the media and being featured in articles and is the "CEO," is where the organization's allegiance and views actually lie.

3

u/GabrielDosReis 12h ago

Who in the organization ends up speaking to the media and being featured in articles and is the "CEO," is where the organization's allegiance and views actually lie.

That may correspond to some stereotypical view, but I don't know it is universally true. I acknowledge this is reddit, so nuances don't engage.

1

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 7h ago

It is definitely a challenge to moderate communications between company and personal. So I understand what you are saying. In this case Harry is certainly skirting the line. But I think Harry was rather clear that this is his opinion. Not sure if Harry could have done more.

5

u/teerre 13h ago

Slightly off topic, but its ridiculous that these committee meetings are often in some tourist paradise

5

u/GabrielDosReis 12h ago

Slightly off topic, but its ridiculous that these committee meetings are often in some tourist paradise

I was 3 days late (stranded in Dearborn, Michigan) and didn't get to do any tourism. The "tourism" facade is just a lure attract and to lock people in windowless rooms with the A/C cranked to max.

-1

u/teerre 12h ago

Yeah, I've a heard that before. It makes it even worse

4

u/Foxi_Foxa 12h ago

Any major location will be a touristic trap for an international community, right ? I live in Paris and hate it, some would dream to come "work" here for a week.

0

u/teerre 11h ago

Some places are much more touristic than others, lets not play dumb

2

u/GabrielDosReis 12h ago

Yeah, I've a heard that before. It makes it even worse

Where would you like to hold them?

1

u/Minimonium 9h ago

How about an airport?

3

u/GabrielDosReis 8h ago

How about an airport?

That was once proposed and accepted in the last 5-6 years, then I don't know what happened to it. Please feel free to suggest hosting it and talk to the convenor.

2

u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 6h ago

COVID happened to it. And the organizers didn't want to try again.

2

u/AKostur 7h ago

I'm curious: how does holding it at the airport change the "tourist paradise" problem? (And I'm not saying that this even is a problem in the first place)

•

u/Minimonium 26m ago

Because an airport meeting is the opposite of a tourist paradise and after years I still find it utterly hilarious that the committee tried to meet there. The mall in the middle of a desert takes the second place.

-1

u/13steinj 12h ago

I do not care at all where they are held, but pretending as though holding them in repeated tourist paradises isn't a problem is disingenuous.

  • Companies think "why am I paying my employee to have a vacation?"
  • For those at companies that don't cover the expense, it is increased compared to any standard urban center
  • It's just a bad look to many looking in on the outside. You're there for "work" [realistically unpaid, but people don't grok that], right?"

•

u/serviscope_minor 56m ago

pretending as though holding them in repeated tourist paradises isn't a problem is disingenuous.

Yeah bruv, Croydon iz bare innit.

Easy access to:

  • Knife crime
  • Drugs
  • Angus Steakhouse (only 40 mins by train!)

4

u/Ansible32 11h ago

For those at companies that don't cover the expense, it is increased compared to any standard urban center

is it? San Francisco would be a "more logical" place but probably no less expensive. I think that's where you get to Hawaii being pretty reasonable - it's no less expensive than lots of places that sound more logical.

Also Búzios is a lot more reasonable than anywhere in the US for people outside the US, with the US's current militarized opposition to people traveling there for work.

1

u/13steinj 4h ago

I am in no way suggesting the US as a location, but any urban center would work. Toronto, London, Edinburgh, any number of cities across Europe. It's possible the issue is just how things are portrayed (this is the first time I've heard Buzios and "tourist paradise" in the same sentence.

I would argue though, that maybe meeting in person altogether is old fashioned (I'm aware there's Zoom participation).

4

u/AKostur 4h ago

Uh, two meetings back was held in Croydon (depending on who you ask, is a part of London), more than one previous was held in Toronto. And Zoom participation is a pale shadow of being there in-person. (Same as doing a conference on-line. It's a shadow of what the in-person conference is.). Again, I'm not mentioning other cities as I don't want to slight them. I will say that looking over the cities named, a number of them don't scream "touristy!" to me.

•

u/serviscope_minor 51m ago

> Uh, two meetings back was held in Croydon (depending on who you ask, is a part of London),

Definitely part of London. It's in Zone 5, comes under the mayoralty, ULEZ, and 15 travel time into a central terminus.

-5

u/GabrielDosReis 12h ago

disingenuous

.

0

u/13steinj 11h ago • Bravo

Dude, the Boost Documentary even had a pretty wild claim that "Hawaii is chosen a lot because Herb likes Hawaii," and the general air.

Now, I think that general notion was pushed because the documentarians felt slighted (because Herb refused to do an interview, and they felt they were kicked out of wg21 proceedings at the last minute).

Maybe this is a uniquely american view/disposition what with the generalized (IMO) toxic culture around work, I can't say. But pretending it's not a problem, and leaving a one-word quote of my comment as some strange clap-back is not only disingenuous, it's also childish. Which I find very surprising coming out of you of all people.

4

u/GabrielDosReis 11h ago

Dude,

This subthread that you're pushing is fascinating. I asked a serious question for suggestions of locations and suddenly I've got all this.

For your collection of anecdotes, my first meeting in Hawaii was in 2003 (where I presented constexpr, and concepts papers for the time); I flew from Paris, France, all the way to the Big Island (about 24 hours by the time I got my room). Nobody sent me there, and nobody covered my expenses. In fact, I was technically unemployed.

As of the non-touristic places, I've had employers ask me why they should cover the expenses to yhose places. So, reddit-buddy: I really don't know where you get your stories from and what to tell you. If you're looking for validation (otherwise I would be "desingenuous") then, I am sorry: feel free to fire the qualifiers.

3

u/AKostur 13h ago

Who do you think pays for these trips?  (And be careful to not overgeneralize)

-3

u/teerre 12h ago

Who cares? They could be teleported there by the Spaghetti God, it doesn't make it any less ridiculous

1

u/AKostur 12h ago

Apparently you do. I'd point out various locations it has been held at that I wouldn't call a "tourist paradise", but I don't want to offend folks from those locations. Since you don't go, nor do you somehow contribute to anyone else going: why does it matter to you where they happen?

-3

u/teerre 11h ago

I said I care who pays for it? Where?

2

u/canadajones68 11h ago

It's probably in part because these locations are well-equipped to handle a large influx of people meeting in one location on short preparation, all gathered for one purpose. 

3

u/ImNoRickyBalboa 6h ago

Did you ever visit a large dev conference? I recall many conferences going back as far as MSN dev in the old ages, and thousands of engineers was the norm. The handful of people in the inner WG club actually traveling there is like a non event, most towns can't count that low

0

u/teerre 11h ago

I'm not sure if you're joking or not, but committee meetings aren't "large influx of people"

1

u/canadajones68 11h ago

Not large in an objective people-mass way, but 80-100 people is not nothing. They need places to stay, places to get together, and so on, and places that people already go to simply have better facilities. If you meet in Nowhere, Siberia, and the one convention hall that can fit everyone has a gas leak, the whole trip kind of falls apart.

I'm not an expert on these things, and so I should probably shut up, but I personally think it makes sense to put a meeting where everyone goes to a single place in a spot where lots of people already go. 

1

u/ReDucTor Game Developer | quiz.cpp-perf.com 5h ago

  80-100 people

I live in a small town in rural Australia with about 6k population, even we could handle 80-100 people.

There are some events that draw just as many people to town, like rodeo, ag shows, and more.

A meat raffle or a bingo night might even push bigger numbers.

I also used to live in Bathurst, where we had 30-40k population and for the V8 race in town would get 300k people from around the world, lots of people in tents, but it didnt kill the town.

You would need to be a really really small town to not be able to handle 80-100 people.

1

u/almost_useless 10h ago

80-100 people is not nothing.

That seems like something you could easily organize in pretty much any city of 100k people, in any developed country

2

u/ReDucTor Game Developer | quiz.cpp-perf.com 4h ago

You dont need a city a rural town with 10-20k population would handle that without issue.

1

u/FreitasAlan 4h ago

Why? Why would a worse or mediocre place help with anything?

•

u/teerre 3h ago

More people can get to it? Less distractions? Less wasted money? Better image? Why isn't every meeting in Hawaii?

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.

•

u/James20k P2005R0 2h ago

The purpose of contract based programming (at least in my opinion) is to document your preconditions and postconditions in a standardised way, especially so it can be picked up by tooling and compilers more easily. How/if they're enforced is a separate axis entirely

•

u/serviscope_minor 41m ago

One could argue that once a condition is always checked then it ceases to be a check on the contract and becomes part of the contract. In other words, if your function is guaranteed to behave predictably given that input, then its contract is that it can accept that input, so that input is within the contract of the function.

Personally I think the fuss over requiring always-enforced is a bit odd. If you don't have control over your build tooling you're not writing hardened code anyway. And if you do, just use enforced. But whatever post conditions are checked on all exit paths and as you say it's documented semantically, so cool.

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