fubark / cosmic

A platform for computing and creating applications.
https://cosmic.ooo
MIT License
343 stars 16 forks source link

JS Web Target #18

Open fubark opened 2 years ago

fubark commented 2 years ago

Cosmic should be able to target web with just plain JS. No wasm. See #19 for wasm.

This can be a lot of work since there isn't a nice way to convert zig to js. Why just JS? In many ways it can be faster than WASM on the web since WASM doesn't have native interop with things we care about in the browser runtime like the gpu. threejs and bablyonjs are all just JS.

WebGL2 will be the graphics target until WebGPU becomes a thing. This work involves providing an API for all graphics related things. Things that don't make sense on the web will be a nop.