▲ | 8n4vidtmkvmk 7 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
Wait, is that never going to happen? I was so excited when WASM was first announced, but then lack of DOM access killed it for me. It was supposed to allow us to use any language instead of just JS. | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | flohofwoe 7 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
You can access the DOM from WASM just fine, you just have to go through a JS shim because the DOM is a Javascript API (just like WebGL, WebGPU, WebAudio and any other API available in browsers). In most DOM access libraries (like https://github.com/web-dom/web-dom) this Javascript shim exists but is completely invisible to the library user (e.g. it looks and feels as if WASM would have direct DOM access). Why this topic is always brought up I really have no idea, at this point it feels like trolling attempts because from a technical point of view 'direct DOM access from WASM" simply doesn't make a lot of sense. Accessing web APIs from WASM is an FFI scenario, no matter how you look at it. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|