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.
[ Parent
| on HN ]
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?