DEV Community

Discussion on: What's new and upcoming in browser land?

Collapse
 
maxart2501 profile image
Massimo Artizzu

Web Assembly will support a lot more features as time passes!

Threads! Garbage collection! DOM bindings! And so on.

Collapse
 
jrop profile image
Jonathan Apodaca

Can't wasm-pack for Rust already generate DOM bindings?

Thread Thread
 
maxart2501 profile image
Massimo Artizzu

Yes, sorta, but it shouldn't be possible, technically. I guess it's actually JavaScript that does the manipulation and it's exposed to the WASM part. I don't know the details...

Thread Thread
 
woubuc profile image
Wouter

Currently it's a JS lib that does the actual DOM manipulation and then communicates back to the WASM lib iirc. Not all that performant since you've got marshaling between JS and WASM in both directions for every call, but it's possible.

The DOM integration would provide direct native access to the DOM from your WASM binary. It's the one feature I'm waiting on before I really dive into it.

Thread Thread
 
jrop profile image
Jonathan Apodaca

TIL!