Re:Firefox's low-latency WebAssembly compiler
by austincheney on Friday March 27, 2020 @04:17AM
(#22701171)
Nobody from the WASM working group is working on that though, so the probability of direct access to the page’s DOM is close to zero. Programmers have been hoping for this for years but WASM has been very clear that isn’t in the project’s design path. The are intentional design objectives limiting that work officially but likely the largest hurdle is overcoming various security and privacy concerns already in place due to the isolation of WASM instances from their containing page.
Far more likely, and this already exists in various unofficial examples, is that WASM instances ship with a DOM for accessing markup provided by or requested into the WASM instance.
Re:Firefox's low-latency WebAssembly compiler
by justinclift on Friday March 27, 2020 @08:46AM
(#22702406)
> ... WASM instances ship with a DOM for accessing markup provided by or requested into the WASM instance.
Sounds like it would achieve the same end goal? eg direct access to the page elements, without needing to go through JS
Or is that my not really understanding the problem space? :)
Re:Firefox's low-latency WebAssembly compiler
by austincheney on Friday March 27, 2020 @02:53PM
(#22705658)
No, a DOM that is provided by a WASM instance will provide access to markup contents available to that WASM instance, such as markup requested or shipping with the WASM code, but not outside the WASM instance such as the containing page.
Re:Firefox's low-latency WebAssembly compiler
by justinclift on Friday March 27, 2020 @06:16PM
(#22707412)
Interesting. What's the intended use case for that?
Trying to think of something, but nothing is coming to mind.
Re:Firefox's low-latency WebAssembly compiler
by austincheney on Friday March 27, 2020 @09:16PM
(#22708381)
If your WASM application makes use of any kind of XML or HTML content you need to parse it or it’s just a string.
Re:Firefox's low-latency WebAssembly compiler
by justinclift on Saturday March 28, 2020 @02:17AM
(#22709579)
No worries, thanks. :)
Re:Firefox's low-latency WebAssembly compiler
by pjmlp on Friday March 27, 2020 @03:09AM
(#22700921)
Check Qt, Blazor or Uno.
Re:Firefox's low-latency WebAssembly compiler
by justinclift on Friday March 27, 2020 @08:43AM
(#22702390)
Thanks, but Qt isn't really suitable for web apps. :(
eg PgAdmin, which went from a good desktop application (v3) to unusable in non-trivial cases on the desktop when they switched to Qt (web). :(
Blazor / Uno seem to be C#? Not (personally) going to touch that with a long stick. ;)
Unfortunately, that appears to be a huge miss. There are a lot of programmers in other (non-JS) languages that would very much like to create front end pieces for their web applications.
Hopefully when the interface types proposal (or whatever) happens, direct access to the DOM does become a thing and non-JS programmers really can do their front end work without JS.