News for hackers. Stuff that matters.
Re:WebGPU Shading Language by shmerl on Tuesday March 10, 2020 @01:31PM (#22537473)
Apple should stop messing things up and should support SPIR-V, sure.

But to generate SPIR-V you still need a high level language. So is this useful for it?

Re:WebGPU Shading Language by mwkaufma on Tuesday March 10, 2020 @01:39PM (#22537550)
Lots of languages _already_ compile to SPIR-V - GLSL and HLSL for a start. Why add _another_ syntax?
Re:WebGPU Shading Language by kvark on Tuesday March 10, 2020 @04:30PM (#22539356)
Apple and Microsoft investigated the possibility of specifying WebHLSL tightly. The main concern was that it's a ton of work in terms of semantics.

At the same time, SPIR-V semantics is fairly well specified, so we as a group figured that the familiar syntax of HLSL is not as important as the proper GPU behavior and our time specifying it. We've yet to see if it was the right decision - we might as well get stuck with discussing the syntax :)

Re:WebGPU Shading Language by imtringued on Thursday March 12, 2020 @11:22AM (#22557768)
From a technical standpoint a subset of SPIR-V that is safe to use in web browsers is exactly what is needed. However, there are IP problems that prevent direct usage of SPIR-V. [0] In short W3C needs full ownership of the spec so that it can be completely independent from Khronos. A textual representation of SPIR-V basically sidesteps these problems while still maintaining the ability to have a trivial SPIRV -> WSGL and WSGL -> SPIRV compiler.

[0] https://news.ycombinator.com/item?id=22539633

Re:WebGPU Shading Language by shmerl on Thursday March 12, 2020 @02:34PM (#22560117)
They refused to explain what IP problems there are, and given it's Apple, I doubt they are valid.
Re:WebGPU Shading Language by shmerl on Tuesday March 10, 2020 @01:50PM (#22537692)
I suppose current options aren't optimal. Or at least that could be a valid motivation to create one.

If the motivation is to replace SPIR-V itself, then it's not valid.

Re:WebGPU Shading Language by kevingadd on Tuesday March 10, 2020 @02:01PM (#22537830)
They're on record that their motive is disputes with Khronos, it's in some past meeting notes.
Re:WebGPU Shading Language by shmerl on Tuesday March 10, 2020 @02:40PM (#22538207)
Then this should be rejected.
Re:WebGPU Shading Language by gfxgirl on Tuesday March 10, 2020 @03:19PM (#22538631)
reject it and there will be no WebGPU for 1.5 billion iOS devices just like there is no WebGL2 for 1.5 billion iOS devices.
Re:WebGPU Shading Language by shmerl on Tuesday March 10, 2020 @03:39PM (#22538807)
Why should Apple dictate their approach to everyone else then? If they are so resolved to remain outsiders technology wise because they are crazy bent on NIH, let them be outsiders.

I'd say everyone else should take a hard stance on this and show Apple to the door, instead of dancing under their tune.

Re:WebGPU Shading Language by xenadu02 on Tuesday March 10, 2020 @04:43PM (#22539493)
It's called a "standards process" for a reason. Even if you personally have a different opinion the point of a standard is to get everyone implementing it on-board with that standard.

Releasing a standard that a major member opposes and won't implement is a pointless exercise.

Re:WebGPU Shading Language by vetinari on Tuesday March 10, 2020 @07:44PM (#22541291)
When Apple adopts some technology, they don't care whether others can do the same, or what problems that will cause to others.

They might use the same medicine.

Re:WebGPU Shading Language by shmerl on Tuesday March 10, 2020 @04:44PM (#22539503)
So if there won't be any consensus, then what? I see no reason to oblige Apple in this case then.
Re:WebGPU Shading Language by imtringued on Thursday March 12, 2020 @11:25AM (#22557802)
The motivation is to salvage SPIR-V in a way that makes Apple happy.
Re:WebGPU Shading Language by mwkaufma on Tuesday March 10, 2020 @01:56PM (#22537777)
Except it wasn't designed to be an "optimal target for SPIR-V" -- it was designed by Apple according to Metal's semantics, to promote Metal over Vulkan, and had to be rejiggered. It's worse, by your standard, than existing, battle-proven GLSL/HLSL toolchains.
Re:WebGPU Shading Language by kvark on Tuesday March 10, 2020 @04:27PM (#22539339)
This is not correct. The WGSL is renamed from Tint, which is a Google's proposal for a shading language, in agreement with all parties.