←back to thread

Against /Tmp

(dotat.at)
140 points todsacerdoti | 6 comments | | HN request time: 0.001s | source | bottom
1. pjmlp ◴[] No.41914057[source]
So here we have again how "Worse is better" works in practice, and how we got here regarding /tmp in 2024.
replies(1): >>41914337 #
2. anthk ◴[] No.41914337[source]
As if C:\TEMP or %tmpdir% were any better.

Or using letters as drivers.

Worse is better? A lot of tech in Win32 is built as if it were for DOS 1.0 or CP/M. See AUX, PRN, COM and so.

replies(3): >>41914828 #>>41915035 #>>41915497 #
3. pjc50 ◴[] No.41914828[source]
Backward compatibility, innit.

Microsoft have tried to get people to use the newer, more heavily sandboxed APIs like UWP, but only very weakly, and they haven't committed to transitioning their own apps over as dogfood. Nearest they've got is actually migrating a lot of office to the cloud as Office365.

Sunsetting Win32, or even having significant backwards-compatibility breaks, would upset so many corporate customers who would then refuse to upgrade.

4. tredre3 ◴[] No.41915035[source]
> As if C:\TEMP or %tmpdir% were any better.

I mean, yes? %tmp% is in the user's directory, not accessible by the world.

replies(1): >>41916486 #
5. pjmlp ◴[] No.41915497[source]
Yeah, nice jab attempt, except no one sells MS-DOS decisions as some grandiose OS architecture design.

Its origins are quite clear, QDOS, Quick and Dirty Operating System.

https://en.m.wikipedia.org/wiki/86-DOS

6. anthk ◴[] No.41916486{3}[source]
TMPDIR can be trivially set at $HOME/tmp too with just a file at /etc/profile