r/cpp • • 24d ago

"C++26 DIS failed, how does C++ survive?"

https://andreasfertig.com/blog/2026/11/cpp26-dis-failed-how-does-cpp-survive/
114 Upvotes

193 comments sorted by

View all comments

Show parent comment

-1

u/pjmlp 24d ago

OpenCL politics is one of the reasons Apple come up with Metal, and completely left Khronos, after contributing OpenCL to them.

It also had some share from Intel, AMD and NVIDIA, hence why OpenCL 3.0 is basically OpenCL 1.0 renamed, ignoring OpenCL 2.x ever existed.

However, the whole process of how extensions eventually land into the core standard versions, after getting enough field experience with implementations, is much better than the current waterfall approach for several C++ features.

4

u/James20k P2005R0 24d ago edited 24d ago

It just seems very weird to cite Khronos as an example of good standardisation. Lots of the stuff they produce is exactly the same kind of problematic design as C++

SPIRV in general has a lot of critique levied at it as well specifically for not standardising existing practice with structured control flow, which required a huge amount of compiler work. The OpenCL SPIRV dialect also postdates apple leaving the committee significantly as far as I know, and my understanding is that its likely Nvidia doing politicking that resulted in the OpenCL spec not being merged into vulkan properly. As you mention, OpenCL 2.0 was basically unimplementable for some vendors, and OpenCL 3.0 still has problems in terms of how it maps to modern hardware. So there's a lot of problems going on all around

Khronos members have specifically told me that they envy some of the structure of WG21, so perhaps the grass simply always seems greener

Edit:

Also lest we forget, that time Khronos decided it was a good idea to fork C++ and make it incompatible with regular C++. Literally nobody implemented that

-1

u/pjmlp 23d ago

If that chaos happened with standard follows implementation, imagine how Khronos APIs would look like if Khronos created them first, and only afterwards the GPU OEMs would implement them, similar to how ISO C++ is currently going on.

1

u/James20k P2005R0 23d ago edited 23d ago

imagine how Khronos APIs would look like if Khronos created them first, and only afterwards the GPU OEMs would implement them

This frequently happens with Khronos, I don't know why they're being cited as a body that only standardises existing industry practice or where the spec follows implementation. It simply isn't true. Vulkan often simply standardises extensions, but there's a lot of actual design that goes into that API. Even then:

  1. OpenCL C++ was a trainwreck that that nobody ever implemented, as far as I'm aware
  2. Parts of OpenCL match very badly to graphics hardware, and the whole spec is a mess. OpenCL 2.0 is the classic example of ivory tower design, where many vendors simply never implemented it. There was no prior art for OpenCL 2.0
  3. OpenGL <broadly gestures at everything>
  4. SPIR-V standardised structured control flow, which was a remarkably novel idea at the time to put into a GPU assembly language, and was incredibly not industry practice at the time
  5. GLNext is the absolute peak of this, if anyone remembers that fiasco
  6. Nobody wants or has ever wanted two SPIR-V specs

-1

u/pjmlp 23d ago

At least something got implemented,

https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html#opencl-kernel-language-changes-in-clang

As for OpenGL or Vulkan, which features got first into Core instead of via extensions, beyond version 1.0?

Vulkan started anyway as Mantle, thus AMD had some existing implementation.

1

u/James20k P2005R0 23d ago

That's C++ for OpenCL, which fantastically isn't the same thing as OpenCL C++. C++ for OpenCL is regular C++ on top of OpenCL C, OpenCL C++ was Khronos' C++ fork that never went anywhere and was never implemented AFAIK

some existing implementation.

Some, but it got significantly reworked

Vulkan is definitely one of their better specs in general for standardising existing practice, but Khronos can also be very guilty of inventing their own solutions that flop

0

u/pjmlp 23d ago

Fair enough.

1

u/lee_howes 24d ago

Apple was the major source of Khronos politics in OpenCL time, to be fair.

-2

u/pjmlp 24d ago

Because it wasn't happy with what Khronos did with what they were gifted.

1

u/James20k P2005R0 24d ago

I don't think anyone knows the details publicly of the khronos <-> apple dispute, because it was a private legal affair, but it does not seem like its because of what Khronos did with OpenCL

The most we know is meeting notes where someone from apple says that there's a legal dispute with Khronos and that they can't work under a Khronos spec as a result, which is how we ended up with WGSL

1

u/pjmlp 24d ago

We don't know the details, but that was the general vibe on the rumors.

Google and Mozzilla are the ones to blame for the Rust influenced WGSL, Apple was only against shaders being SPIRV instead of text like GLSL on WebGL.