3 ms·
How are you crossing the bridge from webassembly to having access to the native UX primitives? Are you directly making C calls to native libraries like win32?
by nightski 8y ago
How are you crossing the bridge from webassembly to having access to the native UX primitives? Are you directly making C calls to native libraries like win32?
- josephg 8y agoThrough a privileged security barrier, which in practice would look like a separate API. That API would in turn make win32 (or UWP or whatever) calls. At a minimum we'd need a separate API to enforce a web / mobile style security boundary.
- pjmlp 8y agoYou can do that with PWAs if they are packaged as native apps. For example on Windows, Microsoft has rebooted hosted UWP JavaScript apps into signed PWAs. So on that case, you can check if UWP APIs are available and use all of them, depending on UWP permissions for the app. Chrome is following a similar route with ChromeOS and Chrome Android. As native/Web developer I tend to have a native bias, but PWAs look like the way the Web might win back native. It isn't fully there though.