soc

joined 2 years ago
[–] soc@programming.dev 0 points 1 week ago (1 children)

I hope you get the help you need.

[–] soc@programming.dev 0 points 1 week ago (3 children)
[–] soc@programming.dev 0 points 1 week ago (5 children)
[–] soc@programming.dev 1 points 1 week ago* (last edited 1 week 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@programming.dev 0 points 1 week 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@programming.dev 1 points 1 week ago* (last edited 1 week ago)

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

[–] soc@programming.dev 1 points 1 week 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@programming.dev 3 points 1 week 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@programming.dev -1 points 1 week ago* (last edited 1 week 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@programming.dev 2 points 1 week ago* (last edited 1 week 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@programming.dev 0 points 1 week 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@programming.dev 0 points 1 week 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.

view more: next ›