r/cpp • • Jan 11 '26

CppCon Making C++ Safe, Healthy, and Efficient - CppCon 2025

https://youtu.be/p52mNWsh-qs?si=Bz6pyW6d0SMLCZxV

Now with some updated content since the ACCU talk, and the Q&A is nonetheless interesting.

58 Upvotes

103 comments sorted by

View all comments

Show parent comment

5

u/James20k P2005R0 Jan 12 '26

You'd need to attract sponsorships from large companies who are similarly dissatisfied with C++'s development, under the banner of a Rust style foundation. Ideally you want a few big name C++ people on board, so you can get enough legitimacy for it. Its a lot more money and investment to write new code in Rust while you have legacy C++, so I suspect there'd be funding available for a much more compatible language that requires less developer retraining. You also need to get at least one of the big 3 compilers onboard, or get sean baxter to open source circle

I think having a standard as your authoritative source of the language is a somewhat unnecessary model - you likely need something more formal than Rust, but a single comprehensive spec is likely unnecessary (vs a series of formal documents, like python's PEP). Down the line, you could write up a non normative spec ala ferrocene

In a more broad perspective, if wg21 wanted to leave ISO as a whole, it may well be possible to get ISO to simply release the spec, but of course you couldn't do that with a hostile hard fork

Its possible, it just needs the right group of people to sign onto it

4

u/pjmlp Jan 13 '26

The way I see it, it appears Bloomberg is that large company left around.

Apple, Google, Microsoft, each are having their own languages, and like everyone else in the planet seem to be happy enough with what you can already do with C++ today, not necessarly hunting down being up to date with ISO.

GCC development seems to be mostly sponsored by Red-Hat/IBM, which aren't also racing for latest ISO, and nowadays has a pleothora of safe languages frontends.

VC++, we already know how it is going from the outside.

So we are left with however wants to keep up pushing clang, under such foundation banner, besides Bloomberg, maybe NVidia given CUDA.

3

u/servermeta_net Jan 12 '26

Sounds like Google carbon

4

u/James20k P2005R0 Jan 13 '26

Carbon is significantly syntactically different to c++. Ideally a successor language would maximally maintain syntax compatibility

5

u/Business-Decision719 Jan 13 '26

Right, and then you're back to square one. The (would-be) safe language is beholden to (unsafe) legacy code/practices.

1

u/James20k P2005R0 Jan 13 '26

Sure, but you can define a much nicer interop story between that safe language with C++ syntax, and the legacy unsafe C++. Eg you could potentially define containers to be ABI compatible, and share datastructures without copying

4

u/Business-Decision719 Jan 13 '26

Hopefully that is possible and will work out. So far the attempts to fix the C++ safety problems have gone:

  • Not a fork, just safety proposals that try and fail to reform C++ from within. (Safe C++ died in committee, profiles are still speculative.)
  • Not C++, instead a new specification is created by a different group and inevitably becomes its own language with incompatible syntax. (Java, C#, D, Rust, Carbon)

The fact that a truly reformed "alternative C++" hasn't already emerged that is truly backwards compatible suggests to me that C++ probably can't have the compatibility cake and safely eat it too. If you change enough that things are actually different, then it's no longer trivially compatible with C++ and is therefore either stillborn (Safe C++), likely unrealistic (profiles), or a new language entirely (Rust). Maybe there's a safety/compatibility sweet spot that just hasn't been stumbled upon yet.

But realistically, if Carbon's interop isn't good enough, despite being purpose built for that by an unstoppable monopoly megacorp for its own indispensable horde of legacy C++ code, I am not sure the problem is solvable.

2

u/James20k P2005R0 Jan 13 '26

Personally I think carbon's interop could be a lot better. The language makes a tonne of syntactic changes, whereas we could have a much more syntactically compatible language

What I want is just a C++ with significant safety extensions, where regular C++ will still compile by default. The safety extensions would be significantly different - you need a new standard library, and some new syntax, but you can still keep a lot of C++ whihc lowers the burden vs carbon or Rust