3 ms·
Anyone have a guess as to when WebAssembly will be able to directly access the DOM?
by taivare 6y ago
Anyone have a guess as to when WebAssembly will be able to directly access the DOM?
- city41 6y agoThis is the proposal tracking this: https://github.com/WebAssembly/proposals/issues/16 https://github.com/WebAssembly/proposals/issues/16 No recent updates unfortunately.
- Jasper_ 6y agoDespite all the hype, I don't think this will ever realistically happen. interface-types is (supposedly) here but it can't really hold onto DOM objects, it can only reference them, and nobody has made DOM bindings for interface-types yet. GC is an extraordinarily hard problem, and they've talked about scoping out "mini-mini-MVPs" for about a year now, with basically no progress. I wrote an essay about this a few years ago but never decided to publish it because I felt it was too harsh, but I think it gives a better overview of the challenges involved: https://gist.github.com/magcius/8959ca1f5bbde4bd66b98b6d5dc73112 https://gist.github.com/magcius/8959ca1f5bbde4bd66b98b6d5dc7...
- pjmlp 6y agoEven if it doesn't happen, at very least it won't be much different from what Google forces upon native devs on Android. However given the possible security issues, even with a sandbox, maybe that isn't that bad.