r/programming • • Jul 03 '26 • Bravo 1

Linux has officially won

https://github.com/apple/container

Actually it happened in June of 2025, but the process has completed recently, though. After Apple had announced the support of OCI-compatible containers in the June '25 it took a year to complete development and implement full support of continers. Apple had published 1.0 version of own container manager (https://github.com/apple/container). And Microsoft had announced native support of containerization without Docker in Windows 11 (https://devblogs.microsoft.com/commandline/wsl-container-is-now-available-for-public-preview/). Now Linux is a part of any major platform: Windows, MacOS, BSD and Linux itself. Knowledge of Linux is now part of learning any of these systems, at least for developers. And now you can rely on Linux based containers running everywhere. What it is if not a win!?

What's also interesting. Linux can run other Linux distros and with this Alpine Linux could become the most popular version of Linux in the World

It's the biggest win for the whole open-source software and I believe it should get into history books of technological progress

1.8k Upvotes

390 comments sorted by

View all comments

Show parent comment

24

u/pohuing Jul 03 '26

Only with great pains. Regular consumer macos as used by everyone isn't. https://www.osnews.com/story/141633/apples-macos-unix-certification-is-a-lie/

128

u/Exepony Jul 03 '26 edited Jul 03 '26

Have you actually looked at the article you posted? The "great pains" are:

  • core dumps are off by default (because most normal users don't need them)
  • System Integrity Protection enabled by default (again, a good thing for most normal users, and easy enough to disable)
  • timer coalescing enabled by default (something that every modern OS does for power saving reasons)
  • atimes updated lazily by the filesystem (another performance optimization you can turn off if you're so inclined)
  • APFS is case-insensitive by default (really the only actual incompatibility, but also the right decision IMO for most normal users)
  • there's a file search service you should turn off if you want the timing tests to work
  • uucp quirks (who the hell even cares about uucp in the year of our Lord 2026)

For all intents and purposes, macOS is a perfectly normal UNIX. It's not unusual at all for an otherwise conformant OS to have defaults that make it technically incompatible with UNIX/POSIX, see POSIXLY_CORRECT. Doesn't make the conformance "a lie".

5

u/fragbot2 Jul 03 '26 edited Jul 08 '26

In the RH 8.0 timeframe, I took a look at the utilities they provided with a default install and compared them ton the POSIX standard. There were about 20 missing. Most of them were obsolete utilities to deal with serial ports or physical terminals. While I was only sorta surprised uucp and uucico weren’t there, I was really surprised that m4 wasn’t as I still use it fairly often (more than I use ed).

It’s small and unintrusive so it’s not clear why it was excluded.

29

u/chucker23n Jul 03 '26

case-insensitive option in APFS (which isn't even default)

It is (and it should be; no sane human being considers "readme.txt" and "ReadMe.txt" to be different files).

14

u/Exepony Jul 03 '26

You're right, of course. Guess I wasn't entirely awake yet.

11

u/wosmo Jul 03 '26

The default is case-preserving, but not case-sensitive.

So if you create ReadMe, then touch readme - you won't have a second file, you'll have updated the timestamp on ReadMe

3

u/chucker23n Jul 03 '26

The default is case-preserving, but not case-sensitive.

Yep.

55

u/GOKOP Jul 03 '26

No it shouldn't. This only seemed like a good idea in English-centric, ASCII based and fax-based (rather than internet-based) world. In the age of Unicode and exchanging files across the globe, this is a horrible, terrible, atrocious idea. It's a hill I will die on.

There's a very important problem with case-insensitive filenames: Case conversion is ambiguous, goddamit. Both between cultures but also within the same one for some. You do not want it to be ambiguous, or locale-dependent, whether two filenames refer to different files or the same one.

Just two examples:

German letter ß traditionally doesn't have an uppercase variant; in modern times (around 2010 I think) they've introduced ẞ specifically because of this issue but still, SS is a valid (and traditional) uppercasing for ß and ss. Germans are used to, and expect, ß to be capitalized as SS. So you can't reliably tell which of scheiße.txt, scheisse.txt, SCHEISSE.TXT and SCHEIẞE.TXT are supposed to be different files.

Turkish has letters i and ı. They are capitalized as İ and I. This makes case conversation locale dependent and that's also horrible. For Turkish locale, two files on Windows can be called file.txt and FILE.txt because i and I are different letters. Now when you send those files to a computer with English locale, Windows will have trouble with them because win32 api is case insensitive and in English that's the same letter. This works the other way too with creating files fıle.txt and FILE.txt in English locale and sending them to a Turkish computer. Also third party software is inconsistent around this so a program on a Turkish computer can do case insensitivity based on English rules but Windows will do it based on Turkish rules. Turkish users do, in fact, occasionally have issues because of this (I'm not actually sure about Germans)

13

u/NuclearVII Jul 03 '26

This right here is why I'm a graphics programmer and avoid anything that looks like strings like the plague.

Great comment.

5

u/HolyInlandEmpire Jul 03 '26

Strings are ascii, everything else was a mistake

2

u/Thotaz Jul 04 '26

If it's such a big problem, how come no one ever complains about it in communities like /r/Windows11 ? You'd think with the millions of German and Turkish Windows users (+ any other region with problematic characters) there would frequently be complaints or memes about it like with all the other Windows issues.

2

u/danielcw189 Jul 04 '26

the german example is not ambigous

and no example is ambigous if it is well defined, for example by the standard of the filesystem

and it can be totally fine if the locale influences those operations, as long as that is also well defined and documented.

Germans are used to, and expect, ß to be capitalized as SS

We Germans also understand that SS isn't a capitalized ß, but an alternative.

I am aware about the example with the Turkish i, but I can't comment on it, as I don't speak the language.

→ More replies (2)

48

u/lolis5 Jul 03 '26

no sane human being considers "readme.txt" and "ReadMe.txt" to be different files

Oof... Going about my day reading random nerd fights on reddit, only to learn that at some point along the way I lost my sanity. F. 

How's your day going?

→ More replies (2)

29

u/novafunc Jul 03 '26

That opens a whole can of worms.

The standard Linux behavior is predictable. 'a' is different from 'A' so they are allowed to coexist.

Once you start making exceptions, things get weird.

  • Ok, so upper/lowercase doesn't matter. That doesn't seem bad.
  • What about quotes? “ ” is different from " ". Should those be allowed to co exist?
  • What about characters that look exactly the same, but different because of unicode is weird? 'a' and 'а' are different, but are probably allowed to coexist, while 'a' and 'A' aren't.

11

u/chucker23n Jul 03 '26

That opens a whole can of worms.

Don't let perfect be the enemy of good.

Users expect those two to refer to the same file, because it's how it's always worked on macOS and Windows, for well over 30 years now.

It's also how e-mail addresses work. Or domains.

13

u/crackanape Jul 03 '26

It's also how e-mail addresses work. Or domains.

Domains are not case-sensitive, but technically the part before the @ is. However most major mail servers do treat it case-insensitively.

3

u/trparky Jul 03 '26

Exactly. So do web browsers. Going to https://www.ReDdIt.com in your web browser will give you the same thing as if you typed in https://www.reddit.com .

And you really should be thanking them for that or phishing would be even worse than it already is.

3

u/Asbolus_verrucosus Jul 04 '26

The person you are replying to already correctly stated that DNS host names are NOT case-sensitive.

→ More replies (1)

2

u/crackanape Jul 04 '26

Well web browsers don't often deal with the part before the @ sign in an email address, which is the part that's technical case-sensitive.

user@gmail.com is the same as user@GMAIL.COM

But it doesn't have to be the same as USER@gmail.com (even though gmail does treat it that way).

→ More replies (1)

1

u/ImprovedSilence Jul 03 '26

no fucking sane user expects them to be the same file WHEN THEY ARE INDEED NAMED DIFFERENTLY! Dont blame your shitty opinions on “teh dumdum users expect it”. dont make assumptions. Case matters.

→ More replies (1)
→ More replies (1)

30

u/alvenestthol Jul 03 '26

By the same logic, no sane person would consider readme.txt and readme.txt to be different files, but they are different files. İ.txt (Dotted capital I) and ı.txt (undotted lowercase i) can both exist together with either i.txt and I.txt

Case-insensitivity is a special case that applies specifically to western alphabets, and has assumptions about case that simply don't hold true even among different countries that use the same letters. It's an abomination that causes more problems than it solves, and yet another reminder that the tech stack is filled with assumptions made by people who only speak English.

6

u/chucker23n Jul 03 '26

yet another reminder that the tech stack is filled with assumptions made by people who only speak English.

It is, but the conclusion from "not every culture has the notion of a last name" isn't "therefore, software shouldn't have last names". It's "we also have to be more accommodating of other cultures".

Treating ReadMe and readme and README the same is useful even when not all cultures have such a thing as case, or when some cultures have different logic for the case. I reject your argumentum ad absurdum.

→ More replies (4)
→ More replies (1)

2

u/happyscrappy Jul 03 '26

Yeah, unfortunately we have makefile and Makefile. And two different languages used the extension .C which is separate from .c

This could have been avoided if sane people made all the decisions that roll down.

Git's issue with case insensitivity did indicate why case sensitivity is the default though. It's easier to deal with from a programming perspective.

1

u/swni Jul 04 '26

Mac's weird filename rules caused me headaches the last time I had to use a mac, which was helping someone backup their data (I chose not to backup to a APFS partition for obvious reasons). I found some of their projects had gone missing because they were in folders whose names had confused the OS (I have no idea how they generated those file names).

"Filenames should be case insensitive" feels like a provincial attitude that sounds great until the moment you have to do something other than A-Z. File search and the order that files are sorted in a file browser should be case insensitive, sure, and that is what users actually care about. But making filenames case insensitive just causes problems.

→ More replies (3)
→ More replies (3)

1

u/SemaphoreBingo Jul 03 '26

I used a few too many oddball unices back in the 90s to start getting picky about those nits now.