News for hackers. Stuff that matters.
Re:Wgpu-rs on the web by krcz on Thursday April 23, 2020 @05:55AM (#22954322)
I don't think that's going to happen and I hope that's not going to happen. DOM provides good abstraction of UI elements, which helps with accessibility, scrolling behaviour with the same feel as OS, standard text utils like selection, copy-paste. Using many incompatible libraries for that would lead to neo-Flash nightmare.

What I believe is going to happen is splitting more complex web applications into frontend part - written in JS - and backend + graphics part - provided as Wasm, possibly written in Rust.

Re:Wgpu-rs on the web by gameswithgo on Thursday April 23, 2020 @09:44AM (#22955874)
>DOM provides good abstraction of UI elements

Does it, or do we just have a whole generation of people used to that abstraction, who can't imagine anything better?

Re:Wgpu-rs on the web by MaxBarraclough on Thursday April 23, 2020 @09:53AM (#22955976)
It fundamentally doesn't do what UIs need it to. That's why most web UI frameworks use a 'VDOM'. When a framework finds a clever way to avoid doing this (Svelte), we all applaud the accomplishment. I think that gives us our answer. </snark>