News for hackers. Stuff that matters.
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by enos_feedler on Wednesday August 18, 2021 @07:11PM (#28228341)
Cross platform. You could build a rust app with a WebGPU target that runs across web and native.
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by tenaciousDaniel on Wednesday August 18, 2021 @08:17PM (#28228887)
Ah nice, I see. Any particular reason for Rust being used? Just curious, because I would (naively) expect to see similar projects with Golang, C++ etc but I really only see Rust.
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by kvark on Wednesday August 18, 2021 @08:38PM (#28229014)
Rust is great for this!

Google has an implementation of WebGPU called Dawn, which is quite impressive. It's written in C++.

Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by jms55 on Wednesday August 18, 2021 @08:38PM (#28229011)
This implementation is developed by firefox (at least, last I checked). Google has an implementation along similar lines in C++ called dawn, and I'm pretty sure webkit plans to use dawn. So you see them in Rust/C++, but no one has written an implementation in go afaik.
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by dralley on Wednesday August 18, 2021 @08:46PM (#28229074)
A Go implementation would only be usable from Go, whereas Rust and C++ can export a C API that many different languages can use.

Plus, using system libraries (DirectX, Villain, Metal, OpenGL) from Go would be a pain and possibly suffer worse from the FFI penalties than just using a higher level library written in Rust/C++ to begin with.

Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by kvark on Wednesday August 18, 2021 @08:40PM (#28229033)
For all we know, Safari on Windows(!) is going to use Dawn. But anything on Apple platforms isn't quite clear. They may get their own implementation.
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by kangz on Thursday August 19, 2021 @07:40AM (#28232630)
I think you meant WebKit on Windows (used for other browsers than Safari). Once Dawn is integrated in WebKit for one OS, it should be easy to extend WebKit to use it on other OSes so maybe it will be a quick way to have WebGPU implemented in Safari?
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by kvark on Thursday August 19, 2021 @08:53AM (#28233206)
Thanks for correcting! For a moment I started wondering if I exposed any confidential info here, phew!
Re:Wgpu-0.10 released: WebGPU implementation now in pure Rust by frutiger on Wednesday August 18, 2021 @08:59PM (#28229148)
The Windows version of Safari was discontinued in 2012.