Re:Firefox’s new streaming and tiering compiler
by seren on Wednesday January 17, 2018 @12:35PM
(#16169886)
Running a native app compiled to wasm into the browser ? So the opposite of running an Electron app?
[ Parent
| on HN ]
Re:Firefox’s new streaming and tiering compiler
by wlesieutre on Wednesday January 17, 2018 @01:32PM
(#16170423)
Calling it now:
1) Write a Windows app
2) Run it in the browser with wasm
3) Stuff that into Electron and distribute to Mac/Linux/Windows
Why distribute the electron wrapped wasm on Windows instead of using the real native Windows app? It's more consistent this way! Single codebase! Developer efficiencies!
Re:Firefox’s new streaming and tiering compiler
by swsieber on Wednesday January 17, 2018 @02:50PM
(#16171151)
Small deviation - write a native linux or mac app (instead of targeting Windows for the initial app)... mostly because I feel like developing on those platforms is so much more enjoyable.
Re:Firefox’s new streaming and tiering compiler
by wlesieutre on Wednesday January 17, 2018 @04:55PM
(#16172373)
Good point. Linux is probably the easier one because you'd need to build your UI toolkit into it and we don't have the source for Cocoa or whatever this year's Windows UI toolkit is called.
Re:Firefox’s new streaming and tiering compiler
by krapp on Wednesday January 17, 2018 @06:31PM
(#16173090)
I realize this is likely to be the most likely way native WASM apps are implemented because it's the most obvious to web developers, but I also think it's the wrong approach.
Webassembly.org's own docs mention that it's intended to be agnostic about its runtime environment[0]. Electron is for packaging HTML, CSS and JS into a "native" application, but WASM doesn't actually need that if it's running outside the web.
Why not a native runtime on top of a cross-platform library like SDL? Just because it's "Web Assembly" doesn't mean it has to be limited to webdev paradigms.
Re:Firefox’s new streaming and tiering compiler
by viraptor on Wednesday January 17, 2018 @03:35PM
(#16171537)
Not wasm yet, but you can definitely stick it into electron: https://bellard.org/jslinux/