3 ms·
If operating system vendors wanted to, they could deliver APIs that resemble Electron, but with better OS integration capabilities without the performance probl
by bradgessler 5y ago
If operating system vendors wanted to, they could deliver APIs that resemble Electron, but with better OS integration capabilities without the performance problems.
HN loves blaming companies like Slack for shipping “crappy bloated electron apps”, but what we should be doing is demanding more from Apple, Microsoft, and Google to ship a sane APIs to make this work. Blaming vendors is essentially victim shaming.
Sadly I know that’s a naive optimistic pipe-dream because these corps would lose power over their user base.
- skavi 5y agoI assume most people use React on Electron. Apple has SwiftUI and Google has Flutter.
- Spivak 5y agoGreat, now make it so one code base can produce a working GUI on all platforms. Use any tricks you want — COM style binary interfaces, linking against platform libs with common headers, protocols like X11 or Wayland, a common “high level” API that can be transpiled to platform specific code and then natively compiled. The “one code base” is allowed to have platform ifdefs, doesn’t have to be magically perfect and handle all edge cases. Because this is table stakes for Electron, cross platform libs, and game engines. Getting Apple, Google, and Microsoft (because honestly if the others can agree Linux will just follow) to agree on something anything would be a huge milestone but I’m sure they would all see it as erasing their moat.