News for hackers. Stuff that matters.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by dietr1ch on Thursday May 02, 2024 @05:02PM (#40241335)
Sharing code? I like my apps bundling a whole browser to render a couple buttons
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by hedora on Thursday May 02, 2024 @10:00PM (#40243251)
The march toward systemd-electron continues.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by qwerty456127 on Thursday May 02, 2024 @10:07PM (#40243300)
This can actually make sense - why not make Electron a shared part of the OS instead of so many apps bundling it. As I understand Apple once built its entire GUI system around a flavour of PostScript which was designed for documents typesetting. Now the world just is doing a similar thing with HTML.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by com2kid on Thursday May 02, 2024 @11:01PM (#40243590)
> This can actually make sense - why not make Electron a shared part of the OS instead of so many apps bundling it.

Microsoft did this ages ago, they lost a big anti-trust trial over it.

Aside from that, people ship electron because it works the same across different OSs, if you just want to target one OS, you are better off using that OSs native dev toolkit. Although good luck finding anyone who knows how to write native apps for desktops anymore, and if you are on Windows, good luck figuring out what toolkit you are supposed to use now days!

And Linux has had the decades long problem of QT vs GTK.

So really the only platform with a native toolkit is MacOS, although when it first came out there were actually multiple toolkits to choose from there as well, and now days I think there is some argument over using Swift of not still (not sure, don't keep up).

Or you can just use Electron and skip the above mess entirely.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by qwerty456127 on Thursday May 02, 2024 @11:40PM (#40243798)
> people ship electron because it works the same across different OSs

Why does Microsoft build the very VisualStudio installer with Electron then?

To me it seems companies ship electron because it's easy to hire a JavaScript developer.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by com2kid on Friday May 03, 2024 @12:58AM (#40244203)
> Why does Microsoft build the very VisualStudio installer with Electron then?

> To me it seems companies ship electron because it's easy to hire a JavaScript developer.

When I worked at Microsoft, one team I was on, very ironically, had a really hard time finding Windows developers.

We actually resorted to drawing straws to see who on the team would have to learn native Windows development!

IMHO a large part of the problem is that native Windows development is a career dead end, unless you work at Microsoft, there are relatively few well paying jobs for what is now a niche skillset.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by pjmlp on Friday May 03, 2024 @01:58AM (#40244572)
Unless one works for the games industry, does IT at big corp, embedded devices programming.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by saagarjha on Friday May 03, 2024 @03:03AM (#40244975)
None of which are particularly sexy, unfortunately.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by pjmlp on Friday May 03, 2024 @05:17AM (#40245700)
Given the hoards of candidates for game development and IoT jobs, putting up with the pay and hours, at least two of those are quite sexy.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by saagarjha on Sunday May 05, 2024 @07:07AM (#40263932)
Game development, maybe. The IoT people just want something to pay their bills.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by com2kid on Friday May 03, 2024 @12:02PM (#40249202)
Games pays badly, big corp IT pays badly, and unfortunately despite the difficulty, embedded tends to pays poorly unless you are at one of the big tech companies.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by pjmlp on Friday May 03, 2024 @12:48PM (#40249690)
And yet the reason why they pay badly is the endless queue of people trying to get one of those jobs.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by pjmlp on Friday May 03, 2024 @01:57AM (#40244562)
Visual Studio installer uses WPF.

They did indeed try to use Electron, and the backslash was big enough they went back to WPF.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by lelanthran on Friday May 03, 2024 @01:36AM (#40244434)
> Although good luck finding anyone who knows how to write native apps for desktops anymore

Hi :-)

TBH, in a room full of HN regulars, to find a developer to write a native GUI app, you can throw a brick and hire whoever says "Ow!"

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by dajtxx on Thursday May 02, 2024 @10:15PM (#40243352)
Because I'm old and I'm sick to death of everything being a web app. Because I hate web app programming so it limits my employment options :-)
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by qwerty456127 on Thursday May 02, 2024 @10:19PM (#40243367)
I feel the same.
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by josephg on Friday May 03, 2024 @05:52AM (#40245887)
I'd be more mad about this if building native applications wasn't super shitty these days. Xcode crashes all the time. SwiftUI is terribly documented and buggy. And lots of standard things you see apple do in their apps are basically impossible to do from 3rd party code. And its impossible to debug anything because its all closed source. And windows has about 8 different native UI libraries that all look and feel different, and they're constantly making new ones instead of making one UI be good and well supported.

I hate electron with a burning passion. But at least the web has open standards, good debugging tools and modern, performant, well documented and pleasant to use UI libraries like React, SolidJS and so on.

Just don't ask about rich text editing on the web. Oh god. Its been decades and its still so shit.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by squarefoot on Thursday May 02, 2024 @11:43PM (#40243808)
> why not make Electron a shared part of the OS instead of so many apps bundling it.

Because it's a wrong approach to a problem that was solved decades ago by much smaller and faster system libraries for UI development.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by qwerty456127 on Friday May 03, 2024 @12:15AM (#40243973)
Apparently these libraries and the languages they are designed to be used with failed to offer sufficiently easy way to implement the UX people want.

I myself strongly prefer classic desktop GUIs adhering to the 90s Microsoft and Apple design guidelines, also well-designed (rather than chaotically evolved like JavaScript) programming languages too yet the objective reality seems like that's not what the demand is for - real-life companies and people prefer fast-entry non-proprietary languages like JavaScript and virtually-unlimited expression like what CSS gives. The only libraries I know can technically be good alternatives to Electron are Qt Quick, WPF (and its spinoffs) and JavaFX but they all have downsides which limit their adoption.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by pjmlp on Friday May 03, 2024 @01:56AM (#40244553)
Microsoft already did that with Windows 98, it was called Active Desktop.

And you're mixing Apple with NeXT (NeXTSTEP) and Sun (NeWS).

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by idle_zealot on Friday May 03, 2024 @03:43AM (#40245212)
> why not make Electron a shared part of the OS instead of so many apps bundling it

You're describing a system webview, which is a thing on Android, Windows, iOS, and macOS.

Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by jokab on Friday May 03, 2024 @04:07PM (#40251806)
Isn't Chrome OS a better fit for his description?
Re:Got an old Raspberry Pi spare? Try RISC OS. It is, someth... by mixmastamyk on Saturday May 04, 2024 @06:19PM (#40260753)
One attempt, XULRunner didn't work out.