26 points · by rmason · 9y ago · 25 comments
That said: I think we should. Electron is problematic and you can always tell an Electron app when you see it because the performance is so terrible.
Still - at some point if you want to build an app that has a UI users interact with, connects to the internet to get data via HTTP requests, and then stores some data in a database: at some point you should just be able to write that no matter where the end delivery will be.
I'm not sure how we're going to get there, but it seems like things like Electron and React Native will at least be part of the path. Eventually they'll hit a critical mass of performance and will become the default, then we'll have to deal with that from there.
Have you tried the open-source Brave browser?
Its GUI is created with Muon (which is a fork of Electron). The browser doesn't seem very slow, at least to me.
Also, Firefox have used XUL for a long time to create its interface. XUL is not much different from what Electron is: XML-like markup to design your interface and JS to manipulate it.
Yes, and XUL is terrible too. Firefox is very resource-intensive and quite slow, and I'm a Firefox user. I wish we could get the values of Firefox with the performance of Chrome...
I can tell an Electron app when I see it because it clobbers other windows on my Windows 7 VM: https://github.com/electron/electron/issues/1821 . I really wish they'd fix this since it makes VS Code much less usable.
In the short-medium term Electron apps will probably hit that ole VisualBasic sort of sweet spot: for learners to write xcopy-distributable (I'd hope?!) "apps" to share with peers, and for day-to-day hackers writing the "messy no-performance-required" one-off tools that need a tad more visualization than can be effected with quick custom CLI println tools.
I too fail to see "a programmer's text editor" as the "killer app" for Electron of course ;)
Is this intrinsic to Electron architecture --- or just the current realities of the sort of JS people tend to write, thrown at the JS engine that Electron wraps?
What I mean, if the final executable is actually some sort of embedded Python interpreter and "Electron" is a bunch of shoddy Python scripts messing with WebKit and Gtk/Tk/Qt/whatever then I'd steer clear. But if the non-3rd-party parts are solidly high-perf-engineered, I'll remain interested..
In raw performance: Vim > Emacs* > Sublime > VS Code > Atom
In UI performance:; Sublime > VS Code > Atom > Vim > Emacs*
*I don't use Emacs regularly, so not entirely certain of this
Honestly, download Sublime and try to use it for a day or two (if your workflow can bear it) and then switch back to VS Code. You'll notice all sorts of small delays that, while not breaking, are certainly annoying.
I wanted to create a self-contained package of a webapp [1] (from source) so I could easily share it with less technically inclined friends. I was sure something to do this automatically must exist, but it looks like i will just have to create my own package out of a portable xampp or similar.
VS Code is pretty ok too - though there is a definite performance gap between that and something like sublime/notepad++
What I would like is a set of Desktop GUI tools that would work for something like Go or Rust