News for hackers. Stuff that matters.
Re:Psst: Fast Spotify client with native GUI, without Electr... by tiew9Vii on Monday August 16, 2021 @09:33PM (#28205079)
This is good to see.

It shows you can write native cross-platform apps that are fast and have low system resource usage instead of the now default, packaging your app in a standalone resource-intensive web browser, aka Electron.

It's a shame we have a handful of people who can do this as a hobby project yet multi billion dollar companies with the money and manpower to do this don't, they chose Electron.

Re:Psst: Fast Spotify client with native GUI, without Electr... by dropofwill on Monday August 16, 2021 @11:20PM (#28205827)
Druid is still not ready for prime time though (https://www.areweguiyet.com/). Played with psst for a bit: no keyboard shortcuts, no screenreader support, scrollbar feels 'off', stuff that just works if you use a native toolkit or a browser.

I get that this is early days for this project, but the issues are general for all of these non-browser, non-native UI toolkits. Hopefully we get there though.

Re:Psst: Fast Spotify client with native GUI, without Electr... by jpochyla on Tuesday August 17, 2021 @05:02AM (#28207696)
Hi, the author here. Keyboard navigation is definitely something I'd like to focus on soon, the app should be 100% usable without a mouse. And accessibility is definitely on the Druid roadmap! <3
Re:Psst: Fast Spotify client with native GUI, without Electr... by raphlinus on Tuesday August 17, 2021 @12:01AM (#28206103)
Keyboard shortcuts should be doable, I don't think this is a limitation of the toolkit.

Obviously screen readers are an important step, but we hope to be working with AccessKit.

In any case, though I'm not trying to represent Druid as ready for production use, I love seeing stuff like this. I think it's a good sign of what's possible and where things are headed.

Re:Psst: Fast Spotify client with native GUI, without Electr... by mkj on Monday August 16, 2021 @11:45PM (#28205993)
Trying psst here on Linux I came away with the opposite impression - Druid's further along than I expected, it Just Worked at high DPI on Wayland better than most electron apps. I guess it'd feel worse on MacOS which already has a more consistent system UI.
Re:Psst: Fast Spotify client with native GUI, without Electr... by artursapek on Tuesday August 17, 2021 @01:44AM (#28206587)
We are (I hope) helping solve this problem at Kraken. We sponsor development of the iced library, which we're using to build https://cryptowat.ch/desktop. It's supported on Windows, Mac, and Linux and has received a ton of positive feedback about how fast and light it is. I have hope for the future, and don't expect Electron to stay dominant forever. Native GUI apps are slowly coming back.

https://github.com/hecrj/iced

Re:Psst: Fast Spotify client with native GUI, without Electr... by rewtraw on Tuesday August 17, 2021 @12:13PM (#28211489)
love cryptowatch desktop! :) very performant.
Re:Psst: Fast Spotify client with native GUI, without Electr... by artursapek on Tuesday August 17, 2021 @01:22PM (#28212393)
Thanks!
Re:Psst: Fast Spotify client with native GUI, without Electr... by globular-toast on Tuesday August 17, 2021 @06:47AM (#28208421)
Why do people keep forgetting this? You can use Qt to easily build a "fast" GUI that works on all platforms. And you can do it with Python via PyQt. No complicated C++ or Rust, unless you actually need it (which this almost certainly does not).

Picard is a good example of a PyQt app: https://picard.musicbrainz.org/

I suspect the real reason is that web developers are seen as a dime a dozen and GUI programmers more specialist and hard to find. This was the main reason my team chose to do an Electron app. We were already doing React on the website and nobody had any experience with Qt.

Re:Psst: Fast Spotify client with native GUI, without Electr... by ramesh31 on Monday August 16, 2021 @09:40PM (#28205118)
>It's a shame we have a handful of people who can do this as a hobby project yet multi billion dollar companies with the money and manpower to do this don't, they chose Electron

This is a purposeful decision though. How else could they track a thousand different metrics about you without 20mb of Javascript?

Re:Psst: Fast Spotify client with native GUI, without Electr... by brundolf on Monday August 16, 2021 @10:47PM (#28205611)
Why would an Electron frame allow them to track you more easily than a native desktop app that has access to your whole (userspace) system?
Re:Psst: Fast Spotify client with native GUI, without Electr... by pritambaral on Tuesday August 17, 2021 @01:40AM (#28206572)
Not your parent. Just clarifying.

1. Electron apps also have access to "your whole (userspace) system".

2. Electron has npm, which makes it ridiculously easy to add analytics code to your app. See, for example: https://www.npmjs.com/package/electron-analytics

Re:Psst: Fast Spotify client with native GUI, without Electr... by zingplex on Monday August 16, 2021 @10:22PM (#28205409)
If it's just for tracking, why not ship a JS runtime and run the tracking in a separate thread. No electron needed.
Re:Psst: Fast Spotify client with native GUI, without Electr... by pritambaral on Tuesday August 17, 2021 @01:42AM (#28206582)
Too much work. With Electron, one can just `npm i electron-analytics` and done. Without Electron, libraries like that will have to be patched (at least) to be usable with the custom runtime.
Re:Psst: Fast Spotify client with native GUI, without Electr... by stjohnswarts on Tuesday August 17, 2021 @01:33AM (#28206522)
but electron does have a JS runtime included?
Re:Psst: Fast Spotify client with native GUI, without Electr... by tomc1985 on Monday August 16, 2021 @10:08PM (#28205311)
Oh, don't forget the legions of cheap javascript newbs fresh out of boot camp that they can hire!