top | item 20759540

(no title)

vcarl | 6 years ago

Well, you still can't do that—WASM doesn't have DOM bindings, you'd still have to ship out to JS. I believe that's a goal, so yes eventually that could be a benefit, but not at the moment.

discuss

order

asdkhadsj|6 years ago

Fwiw, you can - just perhaps with not pure WASM and perf.

My next app I'm planning on using a Rust WASM DOM framework, and I know there are some in Go as well. This is primarily for developer UX.

pjmlp|6 years ago

DOM bindings are kind of irrelevant when one has WebGL.

One example among many ramping up

https://platform.uno/

the8472|6 years ago

Rendering UIs in webgl is fairly user-hostile. No accessability, no extensions, no custom styles, ...

mrec|6 years ago

For a smallish subset of use cases, maybe. But replacing the DOM with a canvas-based UI for general use would be reinventing many of the problems of Flash.

Rusky|6 years ago

WebGL bindings are on the same footing as DOM bindings- they're not an alternative in this sense, because insofar as we have one we already have the other.

icebraining|6 years ago

I looked into their WebAssembly demo, but it doesn't seem to use WebGL, just a regular DOM (with an ungodly number of elements).