top | item 40792726

(no title)

pompino | 1 year ago

Why are you so upset that people derive a lot of value from Windows? Enough that they want to keep using it, and defend it because they don't agree with the "everything is broken" meme.

discuss

order

MereInterest|1 year ago

Because like industrial waste, Windows exports problems to other systems.

1. Windows has an absurdly short maximum path length of 260 characters.

2. On Windows, moving files to a temporary directory can fail, if the temporary directory has a longer prefix than the original path.

3. When uninstalling, the python utility "pip" first collects files into a temporary directory, then deletes that temporary directory.

4. To avoid running into MAX_PATH limits, pip doesn't use a normal temp directory. Instead, it makes a temporary directory adjacent to the directory it is removing. (https://github.com/pypa/pip/pull/6029)

5. If pip is interrupted while uninstalling, the adjacent temp directory is never deleted.

So, in order to work around a Windows-only problem, pip stopped using standard file locations, creating a new problem that only existed due to the workaround. And then I'm left trying to figure out why I'm running out of disk space.

mike_hearn|1 year ago

The MAX_PATH limit is annoying legacy backwards compatible stuff, but can be avoided by prefixing paths with \\?\ before passing them into the Windows API.

This is something that languages/runtimes with more effort put into portability already handle for you:

https://github.com/openjdk/jdk/blob/master/src/java.base/win...

If Python doesn't do this it's just because the sort of people who write Python don't care about Windows enough to fix it.

tolciho|1 year ago

Because even if you don't touch Windows (or whatever mediocre malware Microsoft presently peddles) those folks come to you and say stuff like "skype won't start" and lo! it does not start, though after much clicking around and rebooting and trying the obvious things you discover that if you right-click and try "open with skype" on the skype icon then skype will start. That problem at some point disappeared as mysteriously as it appeared. Eh, who knows, it's Windows, and there's more science to reading tea leaves or goose entrails.

Then after za'o decades of stories like the above (it is merely the most recent of many) one might wonder how does Microsoft with so many programmers and so much money produce such kusogeware? That continues to waste my time?

pompino|1 year ago

You can have your own view. Nobody is taking it away or forcing you to believe otherwise. My point is why are people so upset when someone has a different view or doesn't agree with your personal view on Microsoft?

programjames|1 year ago

What? You shouldn't defend bad behaviour regardless of if you derive a lot of value from the same source. A good organization wants to be called out on shitty practices so they improve.

pompino|1 year ago

You can make an argument to convince people of your personal point of view, but there is no reason to be all upset if someone has a different viewpoint. Thankfully we are all at liberty to have our own view on this topic.