News for hackers. Stuff that matters.
Re:I want to talk about WebGPU by tikkun on Wednesday May 03, 2023 @10:47AM (#35803054)
Could someone explain what kinds of useful things will become possible with it?

I don't get it yet, but HN seems excited about it, so I'd like to understand it.

What I get so far - running models that can be run on consumer sized GPUs will become easier, because users won't need to download a desktop app to do so. This is limited for now by the lack of useful models that can be run on consumer GPUs, but we'll get smaller models in the future. And it'll be easier to make visualizations, games, and VR apps in the browser. Is that right and what other popular use cases where people currently have to resort to WebGL or building a desktop app will get easier that I'm missing?

Re:I want to talk about WebGPU by sebzim4500 on Wednesday May 03, 2023 @11:09AM (#35803322)
It's not so much that people want to run the models in the browser. They want to be able to write and publish one desktop app that e.g. runs a LLaMA quality model and runs decently across the hundreds of different GPUs that exist on their users' machines.
Re:I want to talk about WebGPU by tikkun on Wednesday May 03, 2023 @11:29AM (#35803580)
So it's more of a CUDA alternative for building desktop apps that are GPU powered?
Re:I want to talk about WebGPU by dm33tri on Wednesday May 03, 2023 @03:20PM (#35806533)
Nowhere near CUDA. Maybe OpenCL and Metal replacement because nobody bothers to support them, so just a fallback option for AMD and ARM chips.
Re:I want to talk about WebGPU by tikkun on Wednesday May 03, 2023 @04:57PM (#35807691)
So then:

If your app needs CUDA, you'd need to write it in CUDA.

If you don't need CUDA, you'd write it for WebGPU instead?

If you benefit from CUDA but don't strictly require it, then you can write it in CUDA with a WebGPU fallback.

Is that right?

Re:I want to talk about WebGPU by dm33tri on Thursday May 04, 2023 @08:00AM (#35814023)
I think you only write WebGPU code if you are using JS or Rust for your hobby project
Re:I want to talk about WebGPU by p0nce on Wednesday May 03, 2023 @12:35PM (#35804435)
HN was similarly excited about Vulkan, but this is newer.
Re:I want to talk about WebGPU by sebzim4500 on Wednesday May 03, 2023 @01:07PM (#35804862)
This fixes the main problem with Vulkan, which is that there were no big tech companies pushing them. WebGPU has Apple, Google and Microsoft all committing to support it in their browser/OS.
Re:I want to talk about WebGPU by kllrnohj on Wednesday May 03, 2023 @03:31PM (#35806626)
Not quite. The main problem with Vulkan is, as the blog post goes into, one of usability. Vulkan isn't designed for end developers to use, it's designed for middleware vendors to use. Vulkan is already being pushed by many major big tech companies include Google, Nvidia, AMD, etc... It's really only Apple that's a problem here.

WebGPU is basically a middleware for those that just want to use graphics, not all of unity, unreal, etc...

Re:I want to talk about WebGPU by connicpu on Wednesday May 03, 2023 @06:31PM (#35808692)
The Vulkan situation on Apple is incredibly funny, especially once you look at the landscape of gaming. There's games out there (I believe Final Fantasy XIV is like this) where the official Mac client runs in wine, using a DirectX -> Vulkan translation layer, on top of a Vulkan -> Metal translation layer.
Re:I want to talk about WebGPU by pjmlp on Thursday May 04, 2023 @03:08AM (#35812236)
One can go that way, or use one of the middleware engines that has support for Metal for several years now.
Re:I want to talk about WebGPU by pjmlp on Thursday May 04, 2023 @03:07AM (#35812222)
There is no Vulkan on game consoles, those little devices HN keeps forgeting about.

Yes, the Switch supports Vulkan alongside OpenGL 4.6, but if one wants the full power of the games console, the name of the game is NVN.

As for Apple, all relevant middleware has support for Metal.

Re:I want to talk about WebGPU by taeric on Wednesday May 03, 2023 @09:17PM (#35810080)
I'm not clear this is accurate. More, I'm not sure these are the right companies to push?

Many companies have tried to unseat Nvidia. Many of them big companies. There is no magic in the ones you named. Worse, I'm not clear that Google will bring stability to the project. Such that I see little reason to be overly excited.

Happy to be proven wrong.

Re:I want to talk about WebGPU by tormeh on Wednesday May 03, 2023 @05:04PM (#35807788)
> because users won't need to download a desktop app to do so

Not only that, WebGPU is OS and hardware neutral. It'll work regardless of what machine you have. Currently it's Nvidia or get lost.

Re:I want to talk about WebGPU by Conscat on Wednesday May 03, 2023 @05:21PM (#35807970)
If this is something users actually care about, wouldn't Vulkan AI be a big deal? It has way more features for AI than WebGPU will likely ever have, and it's widely available today.
Re:I want to talk about WebGPU by rodgerd on Wednesday May 03, 2023 @08:49PM (#35809884)
The blog spends a lot of time pointing out that it is not, in fact, widely available today in any practical sense.
Re:I want to talk about WebGPU by Conscat on Thursday May 04, 2023 @03:31AM (#35812412)
It spends a little time on the topic, and imho doesn't argue the point very well.

It points out that MoltenVK doesn't work very well, and I agree, although I think it's questionable whether the Molten-compatible subset is worse than WebGPU or not.

It says that Vulkan has driver issues on Linuxes, but provides no citations for that, and in my experiences, Vulkan drivers and developer tools have been the best for Linux, overall (my experience is limited to Nvidia, so maybe that's why, Idk).