Thanks - hopefully it will serve well.
For now, given that Google already did a great work of developing a
compatible bindings library, I did not want to entertain the idea of
upstreaming this library to one of the Emscripten "system" headers. We
certainly would not want to maintain two different ones side by side
there.
I don't know how many developers will find it valuable to be able to
target WebGPU outside the browser via Dawn, so it is hard for me to
judge which bindings layer is of "better" value. Hence giving way to
the Google-developed one in Emscripten, and developing our own thing
in a separate repo. I know Kai was pondering the idea of what it would
look like to implement the Dawn cross-platform compatibility header on
top of wasm_webgpu implementation, though not sure how much value that
work would be either, given that the current Dawn WebGPU bindings
library already exists in Emscripten.
The old headers for OpenAL, GLFW, SDL1.4, GLEW, X11, EGL are all
something I wish one day we'll be able to remove. They were immensely
useful back in the day when Emscripten was in its infancy setting out
to prove its viability. Now, and especially with the requirements
brought on by SharedArrayBuffer for multithreading, their
implementations don't follow the best practices anymore, so we should
not use their existence as a motivation for adding more into
Emscripten.
Wasm_webgpu is able to live comfortably as a "userspace" library in a
separate repo, with the sole exception of issue
https://github.com/emscripten-core/emscripten/issues/15211 , which is
a problem that we don't have a solution for. I.e. due to #15211
Emscripten system JS library headers are "more powerful" compared to
user-created JS libraries.
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
emscripten-disc...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/4ce07754-3d10-444a-a42a-c0d8c1da0b80n%40googlegroups.com.