93 points · by jckahn · 4y ago · 126 comments
https://opensource.apple.com/source/Security/Security-59754.... https://github.com/apple-oss-distributions/Security/blob/Sec...
Access to such source code is not nothing, and certainly seems more than just a marketing gimmick.
They clearly never helped to make it a usable standalone oss product, at all.
Just look at what the author said about breaking backwards compatibility upstream, with no regards to non Mac Darwin.
It’s melodramatic to call what Apple did a “marketing stunt”, but that code on its own is pretty useless.
Lots of things were under-supported or under-documented, and every release would break things in unexpected ways.
I don’t know if it was intentional, or a lack of priority, but I got tired of having to work so hard just to get my programs to compile.
I've been experimenting with ONVIF to create an IP camera that can be integrated with windows without the user having to install any additional software. I almost never touch windows and I must say that the experience has been very frustrating because things do not behave according to spec and I can't look at the source code to see what's actually happening.
Access to source code makes a world of difference. Otherwise, you're left guessing and the quality of your product will suffer because you end up doing "whatever works" under your circumstances. Under different circumstances that can break.
When Apple was trying to escape from its near death experience (imac era) they were super enthusiastic about open standards (JPEG, MP3, iCal, et al.). When I say "super enthusiastic" I mean to the point of Jobs touting that on stage.
Of course they also paid adobe and Microsoft for access to some of their very popular formats. They paid for USB and made one of the first, and as is usual for them, most strict and compliant, implementations. They were probably the first consumer 802.11 companies. As much as possible they wanted to talk to as many things as possible.
As they clawed their way back those standards were still OK (and still are -- Apple is actually pretty good at supporting open standards, better than most in my experience) but they didn't care as much about going off in their own direction again, and making those their defaults.
I’d be surprised if, in a perfect universe of their imagining, Apple wouldn’t fully embrace open source… because they don’t see much value in software other than integration. Their resistance to standards and openness now is almost entirely about protecting trade secrets. Which definitely has flaws! But it’s a substantial difference from Apple in the early 2000s where they couldn’t coherently tell a story about what was public or why.
You won't find any of it on the Mac OS System predecessors, nor on the Copland roadmap and early developer betas.
There are major OSS projects that were started by Apple, and plenty that weren't started by, but definitely get the bulk of their engineering from Apple, in public repositories.
Let’s not forget that Jobs promised iChat would be opened for third parties to interoperate with, and never did.
https://en.wikipedia.org/wiki/OSCAR_protocol
Later it added XMPP and Yahoo IM support.
https://en.wikipedia.org/wiki/Messages_(Apple)#macOS_version
I am not some Apple-booster here. I use Franz, myself. But it was open. I don't have anything newer than 10.14 here so I can't talk about later versions.
D:
As far as hardware goes, Apple could reasonably charge a premium for a lot of Mac hardware: They were known for high end LCD, Speakers, they were ahead on USB, DVD, Firewire (...). But people don't care about the architecture of the CPU, they care about the speed it can do something, and PPC CPUs cost more than Intel or AMD by a vary large margin (I've always assumed whole-number factor?), and towards the end of the era PPC was also slower than the competitor. I'm not a business person, and obviously know nothing about Apple's financial or business plans, but I can't imagine that having to pay a huge premium for the most expensive part of a Mac (and having that also be both slower and hotter than the competition) was probably chewing out a huge amount of any profit margin than was manageable.
Paying licensing fees for popular formats is an obvious thing for a personal computer company to do - that Ubuntu, or some of the other "end user" distro, never did just seems petulant.
Why do you need to reminisce about this, these exact posts show up on every Apple hardware release to this day lol
I’ll see if I can find some actual figures
https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/
Back then, it was not really much about Apple, but about Microsoft and Sun. But you get the picture.
The "imac era" https://en.wikipedia.org/wiki/IMac_G3#History
Steve Jobs reduced the company's large product lines immediately upon becoming Apple's interim CEO in 1997 ... The company announced the iMac on May 6, 1998
[[citation needed]]
To push a bit further, a bunch of us switched to OSX not from windows but FreeBSD or linux. Hardware support for open source OSes was abysmal and getting commercial software to run on even linux was death by thousand cuts at best.
On the work side, anything "not windows" was also just not an option, and we'd code on windows and remote to unix servers as needed.
Introduction of Darwin really created a space where Unix could live in personal and corporate environments.
100% this. I am a huge Linux lover but also really appreciate having the option at work to use MacOS due to the Unix userspace it provides.
That being said, I would pretty much hate MacOS without the open source tooling (Nix, Homebrew, Yabai, SKHD, iTerm, etc.) I can bootstrap onto it.
Nothing like coming in on a Monday and having to debug 10 coworker's machines cuz suddenly python and postgres were silently upgraded (or some random shared lib was upgraded).
"Just use Docker" is also a PITA cuz of the abysmal file system performance stuff... I just want to run software! Or rather, I want my coworkers who might not be as well versed in system software to be able to have working systems.
All that being said, it's undeniable that I can daily drive Linux thanks to Mac stuff existing.
I’ve seen this complaint quite a bit on HN, and I don’t really understand it. Apple helped Docker port over to arm64 on the Mac (which was one of the first pieces of software to use the new fancy hypervisor APIs), and it’s been working for over a year now. If your docker images can’t build on arm64, I don’t really understand how Apple or Docker can make that any easier. Most of the popular images have arm64 builds now, the only holdout I know of is MySQL due to Oracle being Oracle. If you’re building your own images, GitHub Actions and many other CI providers have had ARM64 agents for a long time (and you can build arm Docker images in QEMU super easy on GHA if you need hosted agents).
There’s not much of an excuse anymore, and since arm instances are cheaper on some public clouds, you should be making sure your stuff runs on arm64 now. Especially if it’s a typical Node/.NET/Java/Ruby/Python app, they’ve been arm native for years.
I am (partially) responsible at the MySQL team for Docker images. I however don't use Mac myself. The only thing I am aware of is that for 8.0.28 we were a little late with ARM images due to technical issues, but that should be resolved.
But mind there are different sets of container images: `mysql` is maintained by Docker, Inc. where we only have limited influence and `mysql/mysql-server` which is maintained by us.
I see for instance
https://hub.docker.com/layers/mysql-server/mysql/mysql-serve...
Any specific issue with that? I'd then work with the involved teams to get it resolved. (Preferebly issues via bugs.mysql.com, but I'll check responses here as well)
Yeah, you nailed it: it's fairly trivial to create cross architecture images -- my preferred tool is Docker's buildx plugin[1].
I have an M1 Mac, Raspberry Pi 4 running 64 bit Ubuntu Server and multiple x86_64 bit machines. I try to exclusively use Docker images that are cross-architecture. When they are not cross-architecture I usually just build the project's Dockerfile using the Docker Buildx Github Action[2]. The majority of the time most projects' stock Dockerfile works on all architectures. The few times they don't work are usually when a Dockerfile grabs an x86_64 binary and downloads it. I feel like that is bad practice so I usually just write my own Dockerfile when I encounter that.
A recent image I did this with was Gitleaks[3] (link goes to my Github Action).
I will say I have found that while most projects usually compile well on all platforms, if I ever do run into issues it is usually on 32 bit ARM.
[1] https://docs.docker.com/buildx/working-with-buildx/
[2] https://github.com/docker/setup-buildx-action
[3] https://github.com/heywoodlh/actions/blob/master/.github/wor...
One of the advantages of docker is that you can have systems lock their versions. So our project using say, Neo4J, uses a particular version of it. Not necessarily one with an arm build. This creates predictable and repeatable builds.
So now either we upgrade dependencies out of our expected cycle, or we abandon macs as our development machines. A decent number of us wanted Linux anyway. This is a cost that Apple foisted on us.
> since arm instances are cheaper on some public clouds, you should be making sure your stuff runs on arm64 now.
Some instances might be cheaper, therefore we have to adopt it now? I think the cost/benefit analysis you're performing here is ignoring development costs. Are you a project manager of some kind?
> they’ve been arm native for years.
The native libraries and tools that make them worthwhile are not. Really it only takes a single component to ruin everything.
With Apple's current market share, it sometimes feels like the unix core is more of an historical artifact, or one of the bullet point in commercial presentations. I don't see them put much efforts in pushing Darwin forward when they could use the same resources for Bridge OS or other parts they see as a differentiating factor.
On the bright side, Mac OX coming to enterprise settings also opened the door for linux laptops, and they became a truly viable alternative. Perhaps linux getting better representation and commercial foothold could help keep Darwin competitive and properly evolving, one could hope.
Or use Nix instead. I've been having a good time with Nix on macOS.
And it is worth remembering what happened with copylefted code in general. Any copylefted content that Apple published caused a bunch of mean spirited and detail oriented critics to insist on proof that all relevant source diffs had been shared. This turned out to be an ongoing support problem that could not be solved despite considerable resources being applied. The intense ongoing hostile attacks from free software advocates caused Apple to rigorously remove as must copylefted content as possible in order to stop the bleeding. Far from this being a weak marketing effort it was a engineering effort that was not strong enough to succeed and got huge amounts of negative attention from the open source community. Interesting that some of the people who put their energy into killing this effort now confidently claim it was never anything but marketing. Never underestimate the capacity of the free open source community to generate rude and mean spirited criticism based on near zero understanding of corporate operations and constraints.
I think this is more a function that Apple created the best lightweight Unix laptop at that time. Windows laptops at that time had horrible command line experience and did not play well with Unix/Linux which is what most web servers were running on. Linux laptops had horrible hardware support.
In 2006, the main reason for Linux was to fix things Microsoft broke, which upon discovery Microsoft would break again, and Linux devs would again restore functionality to Windows networks. So your first point here is somewhat true, Microsoft did not play well with Linux which was moderately successful at playing well with Microsoft.
In 2006, however, most webservers did not run Linux, hardly any did, in fact. Linux took over the data center about 5 years later. In 2006, most webservers were either IIS on Windows Server or, believe it or not, NetBSD. In fact, the vast majority of webservers globally, like 90% or more, ran NetBSD w/ Apache, and if not for fanaticism, this would still be true today, because there was and is absolutely nothing wrong with NetBSD that Linux fixes.
Do you have any sources to back this claim? I've always thought that (perhaps mistakenly) by 2005-ish Linux was already fairly dominant as a web server OS/platform.
Not asking because I think you are wrong -- I just would love to read more about this and couldn't find anything more than a web server survey from 2006[1]. The survey doesn't really mention specifics about any of the Unix-like platforms other than "Linux" or "Apache" (which I assume by Linux or Apache they are grouping all non-Windows OS-es together).
My interest: I'm a regular Linux user with some FreeBSD experience who finds the BSDs super interesting and their approach very admirable.
[1] https://news.netcraft.com/archives/2006/04/06/april_2006_web...
Yet, even CERN in early 2000's while migrating from Solaris to Linux (my office had a pile of pizza boxes to be thrown out), most researchers were using Windows 2000 with Framemaker/Word for writing their papers, with remote tooling to access the devenvs.
Enterprise IT was another thing entirely. At the time I was working at an Enterprise Linux vendor and we were very focused on these “Unix to Linux” campaigns. There was so much to do, and a lot of convincing needed to happen to get these business critical workloads over (accounting, payroll, ERPs, etc.).
Ironically, VMware ended up being more instrumental in getting Linux adopted by IT depts everywhere than we ever were. As well as Oracle with Unbreakable Linux, which was released that year.
I lived through it, and I don't have any citation, but this is incorrect. Linux did not take over the datacenter until 2011/12. In 2006, the main reason for Linux's existence was to fix the things Microsoft kept breaking, also, it was nice to revive older hardware that wouldn't perform with or run current OS versions. IBM actually tried to switch everything to Linux right around 2006, but en mass grey beard AIX system admins revolted, and IBM postponed the "migration." In 2006, Linux was just not mature or stable enough for big iron nor servers for popular websites, and Linux certainly wasn't dominant in any space in 2006, except maybe the dev hobbiest space.
I definitely remember there being platform horse race info from netcraft around that time as well, so i wonder what happened to it.
God this brings back some… fun… memories: https://httpd.apache.org/docs/2.4/platform/windows.html
Linux was rapidly becoming a successful free platform for web servers by 1998 - that's when the term LAMP was coined [0]. By 2002 "BSD is dying" was already a meme [1] on Slashdot - it was always a joke, exaggerated, but one with a grain of truth. Unlike the claim that NetBSD dominated the market! And while Netcraft never did claim BSD was dying, they did note in 2001 that far from having a near monopoly, "[BSD] has not achieved significant mindshare widely, as Linux has. This limits BSD’s successes largely to a few particular areas." [2]
[0] https://en.wikipedia.org/wiki/LAMP_(software_bundle)
[1] https://everything2.com/title/BSD+is+dying
[2] https://news.netcraft.com/archives/2001/04/01/april_2001_net...
Linux fanaticism is compelling, but it can not rewrite history. Linux took over far later than you think. Linux started gaining webserver marketshare only by 2008 as a minority, quickly ramped up in a few years, but only by 2011/12 were most webservers running on Linux.
In 2006 I was running about two dozen web servers, and only one of those was NetBSD - the rest were all Debian.
The NetBSD one was my personal server, that lived in the water tank cupboard of my flat hooked up to my thumping great 10Mbps cable modem.
WebKit[0] would be a counter-example.
Maybe Darwin didn't have value beyond what Apple was doing with it.
WebKit itself is hugely successful because of its use in proprietary projects basically. It's "open source" only by accident, and it seems pretty clear Apple would prefer it not be.
[1] Not that Chromium is a particularly great example of an open source project, but lots of people outside Google build it, ship it, and contribute.
Was that not true? Certainly today WebKit and Blink are significantly different engines with very different performance profiles.
If I had to guess, coordination between WebKit and Blink is far less centralized than it was before, but I’d be shocked if it isn’t a going concern in places they don’t have different goals. It’d be a terrible waste of energy to have subject matter experts duplicating efforts like that.
Chromium/Blink will fundamentally never make any engine changes that support user privacy if that change will in anyway hurt their ad business. So the "standard open source HTML engine" now means the engine that supports the ad industry over users.
More marketing stunts? Perhaps. But I'm all for marketing stunts to promote public open source collaboration. Now we'll just continue to hold them to it.
Chromium isn’t an open source project at all. It’s a company project that releases open source code, but all the decisions are made by the company, not by any community.
You have a few engineers with hurt feelings and Apple lost the potential for some contributors to fix issues (at the expense of security by obscurity).
Did the world really need another open source OS?
Darwin is a big deal in that it’s backed by one of the 5 largest tech companies. But when you look at it, it’s essentially just Mach with FreeBSD (NetBSD core utils in PowerPC days) bolted on top.
width: 50%;
margin: auto;
margin-top: 5ex;
line-height: 3ex;
This should make the lines about the right length to read comfortably with adequate line spacing.Most folk will find it more comfortable, and particularly if you're a bit dyslexic. Feel free to fiddle with those numbers to make it fit your eyes better.
PureDarwin is quite simply impossible because Apple doesn't understand or care about OSS.
In an alternate reality it would be so cool if you could run MacOS apps on an open source OS. Maybe Darling[1] will one day get us past the point where you could run any MacOS app on Linux (not just simple GUI or CLI apps). That being said there aren't really any apps that I use that aren't available on Linux. But the option to would be nice!
http://webcache.googleusercontent.com/search?q=cache:QWRpEuC...
> The problem was Darwin was a marketing ploy, and nothing more.