8 ms·
This is interesting to me because it's an example of the other side of the "Electron" argument. `lsof` exists in Linux. At least, my Ubuntu 16.04 has it. So i
by Waterluvian 8y ago
This is interesting to me because it's an example of the other side of the "Electron" argument.
`lsof` exists in Linux. At least, my Ubuntu 16.04 has it. So if this were an Electron UI, would we instantly have a Linux version as well? Or is it not that simple?
I do really enjoy the look and feel of this mac version, though.
- solarkraft 8y ago> if this were an Electron UI, would we instantly have a Linux version as well? Many Electron apps are only written in JS without any (or no neccessary) platform specific code, but some also interface with the platform. In this case, if it just calls lsof through the shell and the versions are the same, it might actually just work. If it ships with its own binary it'd need to be switched out.
- ourcat 8y agoThat's right. Once you've got the equivalent commands for each platform, it should be possible to build and package for all of them (Mac/Win/Linux). I've just done a tri-platform Electron app which handles quite a few platform-specific commands. (For drive listing, SD-card formatting, file decryption (in custom C apps), etc.) It does take a lot more work (and lots of time-consuming testing). But it can be done.
- lawnchair_larry 8y agoTaking something as lightweight as an lsof command line tool and putting an entire web browser and node.js instance on top seems like we are moving in the wrong direction. It’s like we are going to need a terabyte of RAM and a Tesla battery to run basic apps of the future with even half of the performance we got out of our systems 2 decades previously.
- kitsunesoba 8y agoIt’d be like building a factory around a music box.
- joppy 8y agoI'm not sure that I would call something with about 40 screens of man pages "lightweight".
- yakshaving_jgt 8y agoThe size of the program’s man page doesn’t impact the performance characteristics of the program, does it?
- joppy 8y agoNo, but "lightweight" doesn't necessarily mean performant. The size of the program's man page might be the thing that makes people want a different, more discoverable interface to the program.
- canadaduane 8y agoI feel like this argument is the software engineer's version of "smaller government" political ideology. Yes, we want small, fast processes. Yes, we want efficiency. But we want efficiency _for the sake of usability_. For the Linux user, Sloth is (nearly) useless. Electron would have provided great value (at the cost of and under the burden of larger hardware, etc.) Complexity and resource usage creep isn't going away, although I applaud efforts to reduce complexity and use resources parsimoniously.
- webninja 8y agoWhat are better starting points? QT?
- lawnchair_larry 8y agoYes
- tomc1985 8y agoThe app is older than Electron. The people who this tool were written for would probably dislike a big, slow Electron app anyway And why Electron? Why not QT, or Java swing, or some other language with GTK?
- dylan604 8y ago> And why Electron? Why not QT, or Java swing, or some other language with GTK? In this specific case, the app was targeted for MacOS and OS X earlier. Java really isn't a good solve on that platform. Which also makes it not a good solve for anything on the Mac platform. I have been wanting to build a UI tool for non-techies to be a front end to a collection of shell scripts that I have been using for day-to-day tasks. I have written the scripts to be a friendly as I can make them with drag-n-drop folders as inputs rather than requiring arguments to be provided. This looks like a good example for me to use as research.
- jacobolus 8y agoElectron apps are also horrible on the Mac (and probably everywhere else too). Buggy, bloated resource hogs with nonstandard and limited UI and incredibly high input latency for simple actions. As a Mac user, when I hear “Electron app” I think “company that was too lazy/cheap to make a real Mac app.”
- dylan604 8y agoAlso, if Electron apps are just a packaged up webpage, could they even do things like run shell scripts locally? I'm also wanting to allow the user to browse for a file and have the full path intact instead of just the name of the file a browser would return.
- lawnchair_larry 8y agoNot only that, but they have pervasive cross-site scripting vulnerabilities that are now exposing the user to remote code execution! Also, they tend to have out of date dependencies, and are vulnerable to traditional code execution exploits that were fixed in upstream chrome long prior.
- fouc 8y agoExcept how big is the Electron app going to be?
- ourcat 8y agoWell, there's that ;) Between 50Mb and 80Mb for the installer. Over 100Mb installed, depending on what is used.
- pantalaimon 8y agoI wonder if it was possible to port the App to Linux using GnuStep or the Cocotron.
- ksherlock 8y agoGNUStep also exists in Linux. Maybe the Linux version is just a compile away.