3 ms·
> And you still need to go through the browser to display anything No, you don't, and even if that was the case you can just throw a <canvas> tag on a page and
by EMM_386 4y ago
> And you still need to go through the browser to display anything
No, you don't, and even if that was the case you can just throw a <canvas> tag on a page and render whatever custom UI you want to that, sort of like one of Flutter's web output options is.
This scraps decades of work in HTML, JS, CSS, engines like V8 and SpiderMonkey, etc.
You may as well just toss the browser out the window and consider it a "program" you are running from the internet.
- dmitriid 4y ago> No, you don't, and even if that was the case you can just throw a <canvas> tag on a page and render whatever custom UI you want to that Ah, yes. Canvas. Tell me, what is the API for canvas exposed to WASM (hint: there isn't one, you go through the Javascript API) > This scraps decades of work in HTML, JS, CSS, engines like V8 and SpiderMonkey, etc. And instead it forces you to do the same decades of wrok because you have to re-invent the whole rendering part from scratch (including the funny little case of accessibility). Canvas couldn't even render text properly until relatively recently. > You may as well just toss the browser out the window and consider it a "program" you are running from the internet. Well, of course you can't. Because there are literally no APIs exposed to WASM except a Javascript bridge.
- dmitriid 4y agoIn addition to my other comment, there's also this, for example https://news.ycombinator.com/item?id=33861831 https://news.ycombinator.com/item?id=33861831