3 ms·
Will we see the next generation of electron applications using WASM for the bulk, and JS for the UI?
by jabl 6y ago
Will we see the next generation of electron applications using WASM for the bulk, and JS for the UI?
- untog 6y agoI’d be surprised, given that one of the big arguments for using Electron is that you get to write it in JS. If you write Rust for WASM you could just use a native UI framework and target that instead!
- flohofwoe 6y agoIMHO the USP of Electron isn't even that you can write the logic in Javascript, but that it's the option that "sucks least" for creating cross-platform UI applications.
- flohofwoe 6y agoHeh, good point. In my last sentence I was thinking about web apps running in browsers, not about Electron (but of course there's a lot of overlap). For native applications, maybe a better idea is to drive the UI with native code, and use WASM to run "untrusted" external code (for instance extensions/plugins), because a WASM runtime is a lot smaller than a complete browser engine like Electron.