News for hackers. Stuff that matters.
Re:Apple M5 chip by rollcat on Thursday October 16, 2025 @05:18AM (#45603162)
How else do you get the message across? Do not use the private APIs.

Electron is most likely using a whole ton more. Apple is sending a message. "Fix your crap or expect more."

Re:Apple M5 chip by biohazard2 on Thursday October 16, 2025 @05:39AM (#45603326)
I can think of multiple ways to pass the message to Electron developers:

- Open a GitHub issue explaining those private APIs shouldn't be used.

- Even better, open a PR fixing their use.

- Make those API calls a no-op if they come from an Electron app.

- Fix those API calls not to grind the OS to a halt for a seemingly simple visual effect.

- Create a public API allowing the same visual effect on a tested and documented API.

Choosing to (apparently violently) downgrade the user experience of all Electron app users, without a possibility to update at the launch day, if a deliberate decision and not an overlooked bug, is a rather shitty and user-hostile move, don't you think?

Re:Apple M5 chip by ricw on Thursday October 16, 2025 @09:17AM (#45604977)
The beta has been accessible to the public including the electron devs for 2+ months.
Re:Apple M5 chip by neoromantique on Thursday October 16, 2025 @10:17AM (#45605652)
How nice of Apple to take a huge UX/PR/User Satisfaction hit just to send a message.
Re:Apple M5 chip by thewebguyd on Thursday October 16, 2025 @11:05AM (#45606295)
Apple is consistent in their warnings to not use private APIs, and especially don't override them for custom implementations which is what Electron does here.

The _cornerMask override was a hack that shouldn't ever have existed in the first place, and it's not the only use of private APIs in the electron code base.

Apple is very clear about how they want you to make software for their OSes. It's 100% on electron that they choose to do it this way regardless.

I'd go as far as to say Electron itself is a hack that shouldn't exist, but sadly everyone has decided it's the only way they are going to make desktop software now.

Re:Apple M5 chip by sunshowers on Thursday October 16, 2025 @01:47PM (#45608464)
This mindset is not conducive to loving your customers.
Re:Apple M5 chip by mocenigo on Thursday October 16, 2025 @11:01AM (#45606251)
But I also blame users for using crappy electron apps ;-)
Re:Apple M5 chip by derefr on Thursday October 16, 2025 @12:46PM (#45607663)
To be clear, Electron themselves fixed the bug quite quickly; but many Electron apps haven't pushed a version that vendors in the fixed version of the Electron runtime.

(And shit like this is exactly why runtimes like the JVM or the .NET CLR are designed to install separately from any particular software that uses them. Each of their minor [client-facing-ABI compatible] versions can then be independently updated to their latest OS-facing-bugfix version without waiting for the software itself to ship that update.)

Re:Apple M5 chip by rollcat on Friday October 17, 2025 @08:50AM (#45616157)
> - Make those API calls a no-op if they come from an Electron app.

Long-term, this is a maintenance nightmare. These hacks can stick around for decades, because there's no backpressure on downstream to actually fix things. It's not about "team velocity", it's about keeping yourself sane.

> - Open a GitHub issue explaining those private APIs shouldn't be used.

> - Even better, open a PR fixing their use.

Apple has a history/culture of secrecy. Whenever they provide public source code, it's a dump thrown over the fence. There is most likely some team inside that actually cares, but they can't "just" open an issue. My guess is that this is their message.

> [...] is a rather shitty and user-hostile move, don't you think?

Yes, I agree, the general direction they've been taking has been increasingly user-hostile for a very long time; let alone the developer story.

But sometimes there's also a perfectly reasonable excuse, from both "technical" and "organizational" POV. That's just my take, a skunkworks effort to get Electron to fix their crap. I would do the same.

Re:Apple M5 chip by nicoburns on Thursday October 16, 2025 @07:47AM (#45604223)
> How else do you get the message across? Do not use the private APIs.

The most effective way would be for Apple to actually seek feedback on requirements and then actually implement public APIs for functionality that people need.

Re:Apple M5 chip by strawhatguy on Thursday October 16, 2025 @11:28AM (#45606597)
That's confusing "consensus building" with "effective". Killing a private api is pretty effective. And consensus building doesn't always build the best software.
Re:Apple M5 chip by tycho-newman on Friday October 17, 2025 @05:11PM (#45622134)
I think the consensus sought here is narrow enough.
Re:Apple M5 chip by freetanga on Thursday October 16, 2025 @05:37AM (#45603310)
... and in the process we will deteriorate the performance of millions of users and hurt our brand as a top class experience company?

Don't really care who is to blame, but they should have identified this, and either warn developers, or warn users. Or provide a tool for identifying guilty apps in your machine, and let users decide how to proceed.

Re:Apple M5 chip by m-s-y on Thursday October 16, 2025 @08:24AM (#45604487)
And they did both, so…?
Re:Apple M5 chip by rollcat on Friday October 17, 2025 @08:57AM (#45616228)
> [...] they should have identified this, and either warn developers, or warn users.

Like I said, *this* is their warning.