Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by afefers on Friday January 20, 2023 @02:34PM
(#34458520)
This is fantastic but I can't see myself using it simply because it uses Electron.
[ Parent
| on HN ]
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by nateb2022 on Friday January 20, 2023 @02:42PM
(#34458656)
I'm sure there's worse hiding beneath the covers of some apps you use on a regular basis; e.g. Teams, Office, most AA/AAA games, etc. While Electron is far from optimal, just because a great app is built on top of it doesn't make that app any less great.
As an example, although I do have a prejudice against Electron based apps myself, that doesn't prevent me from using VSCode, which itself is based on Electron. VSCode is pretty great, and I'm not going to not use it simply because it uses Electron.
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by cosmotic on Friday January 20, 2023 @03:10PM
(#34459115)
Using electron generally means 10x cpu, energy, and memory usage. I'd say that is less great all on its own.
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by twosdai on Friday January 20, 2023 @05:53PM
(#34461257)
Hey 10x of zero is still zero. :p
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by MrOwnPut on Friday January 20, 2023 @06:40PM
(#34461793)
Yeah but it all adds up. Go look at the top energy, memory, cpu consuming apps in Activity Monitor.
The top offenders are all electron based.
Okay so we need the chat apps and the coding apps to be electron, those are always running.
Okay now VPN apps need electron for some reason, okay now this scripting app needs it, okay those have to run all the time.
Shit where'd my battery life and memory go? Oh the 6 electron apps running nonstop.
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by franga2000 on Saturday January 21, 2023 @04:12AM
(#34465062)
Definitely, but those are large and complex applications. This is a fancy dropdown.
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by sigmonsays on Friday January 20, 2023 @02:43PM
(#34458660)
I agree.
web browsers need to become a service in the OS that can securely be shared. Electron apps are crap until that happens.
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by tomComb on Friday January 20, 2023 @03:19PM
(#34459240)
They already are on android, iOS, and windows.
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by dceddia on Friday January 20, 2023 @07:46PM
(#34462471)
They already are – there's a system webview on Windows and macOS. There are a few "Electron alternatives" that use the system webview instead of bundling a copy of Chromium. Tauri [0] is one of them, built around Rust, and it's pretty great. I built a video editor with it.
The usual complaint against this is that you have to support multiple browsers (Edge/Chromium on Windows, Safari on Mac).
Re:Script Kit: cross-platform, scriptable, automatic shortcu...
by franga2000 on Saturday January 21, 2023 @04:16AM
(#34465085)
Are those services or just shared libraries? I would imagine, although I'm not sure this is the case, that 50 tabs in a browser consume fewer resources than 50 individual WebViews.