soc

joined 2 years ago
[–] soc 0 points 1 day ago (1 children)

I hope you get the help you need.

[–] soc 0 points 1 day ago (3 children)
[–] soc 0 points 1 day ago (5 children)
[–] soc 0 points 1 day ago* (last edited 1 day ago) (1 children)

That –at best– gives you the same performance.

EDIT: Ok, I misunderstood – you meant the performance of "case insensitive in kernel" vs. "case insensitive in userspace". I get your point now.

[–] soc 0 points 1 day ago (7 children)

No, I'm not going to waste further time on trying to make you understand things you are not capable or interested in understanding.

[–] soc 1 points 1 day ago* (last edited 1 day ago)

The author of that paper hung around in the lang design forum were I originally presented this.

[–] soc 2 points 1 day ago (9 children)

Case insensitive FSs aren’t a new thing.

More precisely, they came up in a time where Unicode was not a thing.

Yes, you need to attach the locale to the filename. No, I have no idea off the top of my head of how different file systems encode or store that.

They don't. None of them.

Or, if it is, then let’s go back to eight characters from the English alphabet in all caps. 8.3 filenames. Why not? [...] Why are spaces, cyrillic, special characters and long names worth doing but case insensitivity isn’t?

Because you cannot have both.

It is either "spaces, cyrillic, special characters and long names" or case insensitivity.

[–] soc 3 points 1 day ago (11 children)

What blog?

To spell it out for you, very slowly: Casing is locale-sensitive.

You cannot determine whether file A and file B have the same case without taking the language the filename was written in into account.

Which means you need to somehow attach the locale to every file (name). Your browser could implement something to add that (semi-)automatically, but if grandma is creating a file from scratch, there is only so much you can do.

I hope this helps you understand why the thing you propose is stupid.

[–] soc -1 points 1 day ago* (last edited 1 day ago) (13 children)

Why do have such a strong opinion on things you –rather obviously– understand very poorly?

Why would grandma need to specifiy the locale?

Yeah, maybe figure this one out for yourself to get you on track for learning something.

someone spontaneously brings up non-latin alphabets as if they are equivalent to case sensitivity for no good reason

That sentence makes no sense. You don't have to agree on things, but at least be coherent in your objection.

[–] soc 2 points 2 days ago* (last edited 1 day ago)

Good catch, that should have been if person in the first line.

It's been a left-over from when syntax looked like this:

  is Person("Alice", _)$person then "{$person.age}"
  is Person("Bob", $age)       then "$age"
[–] soc 0 points 2 days ago (15 children)

So every time grandma picks a file name she needs to specify the locale?

What a stupid hill to die on.

[–] soc 0 points 2 days ago (3 children)

How would that happen?

 

A design that subsumes the various syntactic forms of

  • if statements/expressions
  • switch on values
  • match on patterns and pattern guards
  • if-let constructs

and scales from simple one-liners to complex pattern matches.

36
submitted 2 years ago by soc to c/programming
view more: next ›