News for hackers. Stuff that matters.
Re:KDE Connect Now Available on iOS by pabs3 on Saturday May 14, 2022 @07:31PM (#31383746)
Why are Apple using Linux instead of macOS?
Re:KDE Connect Now Available on iOS by stormbrew on Saturday May 14, 2022 @08:15PM (#31384031)
Darwin is incredibly poorly optimized for server workloads, and it would require a lot of developer resources in the wrong part of Apple. OS dev is all on the 'product' side, under Craig, the part that ships hardware -- Services, under Eddie, are where the server workloads are needed and the two orgs' reporting chains meet at Tim. This is also why Swift on Linux is kind of a (well-intentioned) afterthought that no one is really using on the server side even at Apple, since devtools is also under product.

Server workloads are almost universally run on RHEL of some variety, presumably because (as sibling post mentions) of long term support contracts.

Re:KDE Connect Now Available on iOS by pabs3 on Saturday May 14, 2022 @11:46PM (#31385103)
So nothing on Apple servers is written in Swift, interesting. I guess that is because Swift is aimed at replacing ObjC in the app programming space.
Re:KDE Connect Now Available on iOS by stormbrew on Saturday May 14, 2022 @11:59PM (#31385153)
I should clarify: I didn't mean to say nothing[1], but it's certainly not common. The vast majority of server stuff at Apple is written in Java (which goes way back), with Go becoming more and more common and some Rust popping in around the lower level stuff. I'm sure there's some Swift in there somewhere but it wasn't anywhere I could see while I worked there.

Ironically, I was involved in the effort to port swift to linux so you'd think I'd know. The team I was on eventually moved most of our work to Rust (it was, also unusual for apple, written in C before).

[1] And anyone who would ever come into HN and tell you anything about what goes on inside apple could never tell you anything with that level of certainty because even in Services where things are generally more open, stuff is still very siloed and fragmented and no one has a complete picture of what's out there.

Re:KDE Connect Now Available on iOS by barefeg on Sunday May 15, 2022 @06:11AM (#31386551)
> even in Services where things are generally more open, stuff is still very siloed and fragmented and no one has a complete picture of what's out there

Not even Eddie?

Re:KDE Connect Now Available on iOS by stormbrew on Sunday May 15, 2022 @01:07PM (#31388967)
Aside from what the sibling reply said (which is definitely true), he also can’t really come post on HN about it.

But i suppose if he made a top down order to enumerate things he might get a good idea. But Apple is just.. kinda weird. Things can be a secret even to the reporting chain above the people working on them. Certainly the specific tech being used can be closely guarded.

And then there are just several different infrastructure systems things are on, with varying degrees of openness, and most of them designed to resist tampering or unplanned inspection.

Re:KDE Connect Now Available on iOS by WastingMyTime89 on Sunday May 15, 2022 @07:16AM (#31386836)
He probably has a very good macro-view of things but unless it’s strategically relevant to what his part of the org is doing I don’t think he cares about what languages are used and what runs on the servers.
Re:KDE Connect Now Available on iOS by gh02t on Saturday May 14, 2022 @08:16PM (#31384036)
Apple gave up on the serious server market ages ago, especially the enterprise market. What else other than Linux are they gonna use? Windows?

Maybe BSD would fit better with their lineage, but Linux has far better enterprise vendor support.

Re:KDE Connect Now Available on iOS by KerrAvon on Saturday May 14, 2022 @10:06PM (#31384622)
It’s not unreasonable from the outside to think a custom server-tuned version of Darwin would make sense for Apple’s in-house server needs.
Re:KDE Connect Now Available on iOS by metadat on Saturday May 14, 2022 @10:13PM (#31384661)
The reality of Apple internal systems: Things are mostly stuck together with duct tape. There is no Temple of Purity.

It's a beautiful fantasy, though.

Re:KDE Connect Now Available on iOS by pjerem on Sunday May 15, 2022 @06:39AM (#31386674)
To be honest, I have yet to see a company where internal things are not mostly stuck together with duct tape.
Re:KDE Connect Now Available on iOS by mghfreud on Sunday May 15, 2022 @06:56AM (#31386735)
Probably Google?
Re:KDE Connect Now Available on iOS by WastingMyTime89 on Sunday May 15, 2022 @07:18AM (#31386846)
Doubtful. Even their customer products used different OS. It’s probably a controlled mess.
Re:KDE Connect Now Available on iOS by ece on Sunday May 15, 2022 @08:44AM (#31387222)
There is that meme about trying to get something into production at Google. And I thought nothing's worse than Facebook.
Re:KDE Connect Now Available on iOS by ThePowerOfFuet on Sunday May 15, 2022 @03:49AM (#31385991)
It shows.
Re:KDE Connect Now Available on iOS by barefeg on Sunday May 15, 2022 @06:13AM (#31386560)
But why would they spend any energy on developing and maintaining Darwin for that purpose when Linux is already there and free?
Re:KDE Connect Now Available on iOS by gh02t on Sunday May 15, 2022 @08:35PM (#31392599)
Yeah, maybe in some parallel reality Apple poured a ton of effort into Darwin as a standalone platform and made it a great server OS. It's hard to imagine nowadays, but there was a time when it seemed like it might not be such a fantasy. It's probably still technically possible, but I have a hard time seeing how it makes sense for them.
Re:KDE Connect Now Available on iOS by flatiron on Saturday May 14, 2022 @07:35PM (#31383771)
So they can use servers? And those people who write that software for those servers can test.

You think iCloud is off Mac minis?

Re:KDE Connect Now Available on iOS by pabs3 on Saturday May 14, 2022 @08:46PM (#31384208)
I figured they would have an internal build of macOS for servers, seems like the logical thing to do.
Re:KDE Connect Now Available on iOS by WastingMyTime89 on Sunday May 15, 2022 @07:21AM (#31386865)
It seems cheaper to just sign a large service contract with a company for which building a server OS is the core competency. Apple is very much not an engineering-first company. They make very logical decisions from a business-first point of view.
Re:KDE Connect Now Available on iOS by flatiron on Sunday May 15, 2022 @08:00AM (#31387037)
They don’t want to port all that software to a secret OS that isn’t supported upstream. Also much of apple, like I was, were contractors. So your there for a bit to do a thing. People know Linux so that’s what they use. Honestly much of what I did was on Amazon Linux 2 because it was just their own custom AMI on EC2
Re:KDE Connect Now Available on iOS by ravi-delia on Saturday May 14, 2022 @10:04PM (#31384614)
I feel almost disappointed they don't at least run FreeBSD, but I guess it makes sense. They make a desktop OS, and most of the talent on the market has used Linux.
Re:KDE Connect Now Available on iOS by oefrha on Saturday May 14, 2022 @08:11PM (#31383994)
Well, in the old days Apple did use some Xserves.
Re:KDE Connect Now Available on iOS by heavyset_go on Saturday May 14, 2022 @09:48PM (#31384534)
Lack of native Linux-like containers would be a big one, in the age of container orchestration and clusters.
Re:KDE Connect Now Available on iOS by yjftsjthsd-h on Sunday May 15, 2022 @12:00AM (#31385158)
Okay, but they're Apple. They could add jails. They could even hack it in by dropping in FreeBSD code, again. (Yes, XNU isn't really BSD, but they're kind of BSD when facing towards userspace so it should work.)
Re:KDE Connect Now Available on iOS by gglitch on Sunday May 15, 2022 @08:52AM (#31387257)
Man it would be so awesome if MacOS had jails. I’m off Mac, and that wouldn’t get me back on it, but it would be amazing.
Re:KDE Connect Now Available on iOS by flatiron on Sunday May 15, 2022 @08:01AM (#31387050)
They could. Then what software would run on it. What sort of tech talent would operate it.
Re:KDE Connect Now Available on iOS by yjftsjthsd-h on Sunday May 15, 2022 @11:22AM (#31388095)
If it only made Darwin jails, then it could still run any native software, and would likely end up running a lot of homebrew/macports. (This started by discussing Apple internal servers, so just running their own stuff plus nginx et al. would be fine.) Or, they could take another cue from FreeBSD and illumos and add a Linux personality, or do like illumos and NT and bake in a VM that was seamlessly integrated and use an actual Linux kernel to run stuff.