News for hackers. Stuff that matters.
Re:Gobolinux : Redefining Linux filesystem hierarchy by forty on Tuesday December 28, 2021 @02:31PM (#29717030)
Case insensitivity is a mess as soon as you start looking outside of ASCII.
Re:Gobolinux : Redefining Linux filesystem hierarchy by codedokode on Tuesday December 28, 2021 @02:38PM (#29717108)
But I don't think that it is an unsolvable task. If you simply use Unicode-aware version of "to lowercase" function, it will be better than what we have today. But of course there is a place for improvement (dealing with accented letters in European languages, dealing with combining characters, different alphabets like Hiragana/Katakana etc).
Re:Gobolinux : Redefining Linux filesystem hierarchy by forty on Tuesday December 28, 2021 @02:45PM (#29717174)
Hum... I think simpler is better, and having each letter be what they are only seems much simpler than having to guess if the file system is going to decide my new file name is equivalent to another existing file name and overide it rather than creating a new one (for example).
Re:Gobolinux : Redefining Linux filesystem hierarchy by codedokode on Tuesday December 28, 2021 @03:24PM (#29717649)
It is "simple" for a programmer who doesn't want to learn Unicode and prefers working with bytes instead of letters, but inconvenient for a user. More keypresses, easier to make a mistake when typing.

I cannot imagine a situation where you need two files whose names differ only in case.

Re:Gobolinux : Redefining Linux filesystem hierarchy by forty on Tuesday December 28, 2021 @05:39PM (#29719164)
Since it's relevant and funny, I'll quote the famous rant of Linus Torvalds on the topic (it was because of issues it caused with Git, but I assume it still means it's unlikely Linux will ever follow this path ^^)

"The true horrors of HFS+ are not in how it’s not a great filesystem, but in how it’s actively designed to be a bad filesystem by people who thought they had good ideas.

    The case insensitivity is just a horribly bad idea, and Apple could have pushed fixing it. They didn’t. Instead, they doubled down on a bad idea, and actively extended it – very very badly – to unicode. And it’s not even UTF-8, it’s UCS2 I think.

    Ok, so NTFS did some of the same. But apple really took it to the next level with HFS+.

    There’s some excuse for case insensitivity in a legacy model (“We didn’t know better”). But people who think unicode equivalency comparisons are a good idea in a filesystem shouldn’t be allowed to play in that space. Give them some paste, and let them sit in a corner eating it. They’ll be happy, and they won’t be messing up your system.

    And then picking NFD normalization – and making it visible, and actively converting correct unicode into that absolutely horrible format, that’s just inexcusable. Even the people who think normalization is a good thing admit that NFD is a bad format, and certainly not for data exchange. It’s not even “paste-eater” quality thinking. It’s actually actively corrupting user data. By design. Christ.

    And Apple let these monkeys work on their filesystem? Seriously?"
Re:Gobolinux : Redefining Linux filesystem hierarchy by galaxyLogic on Tuesday December 28, 2021 @09:20PM (#29720989)
I can think of one. When we write (say "ES6") modules it makes sense that the name of the module-file without extension should be the same as the value exported by that module.

Inside the module you'd prefer to follow conventions like name classes title-case and name functions camel-case.

Thus you might have one module exporting a class named "Camel", and another module exporting a function named "camel". You could then have two files, Camel.js, and camel.js in the same directory, containing two separate programs.

Re:Gobolinux : Redefining Linux filesystem hierarchy by kps on Tuesday December 28, 2021 @10:27PM (#29721465)
> If you simply use Unicode-aware version of "to lowercase" function […]

There's no such thing. What's the lowercase of ‘I’ — ‘i’ or ‘ı’?

Re:Gobolinux : Redefining Linux filesystem hierarchy by Dylan16807 on Wednesday December 29, 2021 @12:51AM (#29722308)
That's the "place for improvement" you shoved into the "[...]".

Pick something.

Re:Gobolinux : Redefining Linux filesystem hierarchy by kps on Wednesday December 29, 2021 @11:20AM (#29726219)
Pick something? Whatever you pick is wrong for some users.
Re:Gobolinux : Redefining Linux filesystem hierarchy by Dylan16807 on Wednesday December 29, 2021 @03:59PM (#29729956)
And busted unicode support is more wrong.

Also you don't need to have an opinion on how to lowercase, you can just say that İIiı are equivalent and it shouldn't make people that upset.

Re:Gobolinux : Redefining Linux filesystem hierarchy by akho on Tuesday December 28, 2021 @03:45PM (#29717920)
Case-insensitive ASCII filenames are best filenames.

Also, please, no whitespace in filenames. Allowing linebreaks is just insane.

Re:Gobolinux : Redefining Linux filesystem hierarchy by galaxyLogic on Tuesday December 28, 2021 @09:12PM (#29720938)
I think one criterion could be that you should be able to identify a name by its pronunciation. The same utterance should always refer to the same thing on the computer. When you speak you don't speak line-breaks. By the same logic commas should not be allowed in names. And when you speak we don't typically hear whitespaces either.

By the same logic the whitespace sensitivity of Python is a bad idea. :-)

Re:Gobolinux : Redefining Linux filesystem hierarchy by akho on Wednesday December 29, 2021 @06:07AM (#29723792)
My criterion is that paths should not be painful to type, parse, or copy-paste. So no keyboard layout switching, and escaping should not be necessary. Lower-case Latin letters, digits, periods, and dashes (of the unique variety that's available on keyboards, and not in the initial position) are simple and enough.
Re:Gobolinux : Redefining Linux filesystem hierarchy by forty on Tuesday December 28, 2021 @05:44PM (#29719210)
I wouldn't mind but there are a bunch of people in this world who have no idea what those ASCII symbols even mean, and who might prefer using symbols they understand ^^
Re:Gobolinux : Redefining Linux filesystem hierarchy by akho on Wednesday December 29, 2021 @06:02AM (#29723763)
Those people do not use filesystems.

Also, my native language does not use the Latin alphabet. Attempts by American companies to be more inclusive and internationalized are often misguided. MS is especially nasty with its translated formula functions in Excel, but having differently named filesystem paths in different alphabets depending on the phase of the Moon or something is also very inconvenient.

Re:Gobolinux : Redefining Linux filesystem hierarchy by forty on Wednesday December 29, 2021 @10:37AM (#29725742)
Oh yeah Excel (or libreoffice) is really awful to use in another language, I often have to force it to English because of the formula mess. But I guess that's a developer-who-can-speak English point of view.
Re:Gobolinux : Redefining Linux filesystem hierarchy by akho on Wednesday December 29, 2021 @04:36PM (#29730347)
Nah, the names of Excel functions are nonsensical in any language, and you still need to know the English ones.
Re:Gobolinux : Redefining Linux filesystem hierarchy by akho on Wednesday December 29, 2021 @06:18AM (#29723858)
Though I do have to admit that I do not know what, e.g., ASCII code 8 would mean in a filename. Or 27. I’d very much prefer using symbols I understand.

Filenames with terminal control escape sequences are lots of fun.

Limiting possibilities to just lowercase Latin, numbers, periods and dashes (in non-initial positions) decreases chances people see symbols they do not understand by a lot.