144 comments

[ 3.6 ms ] story [ 189 ms ] thread
Always a good read, but it needs an update with modern cultural references. Even I, nearly middle aged, have very little idea what it means to compare X.org to Iran-Contra and Regan's spending habits.
Well, and maybe some talk about Wayland.
What’s the right modern analogy for that transition?

Fukushima?

The F-35 fighter jet program maybe.
At least they have VR working right!

Adding insult to irony, the new F-35 retrofit is reported to run a UNIX-like OS, too :p

Ironic that one of the arguments that the Unix Haters gripe about is "X is just a protocol". Sound familiar?
>X Windows is the Israel-Palestine of graphical user interfaces: a tragedy of political compromises, entangled alliances, marketing hype, and just plain greed. X Windows is to memory as Donald Trump was to money.

FTFY

>X has had its share of $5,000 toilet seats—like Sun’s Open Look clock tool, which gobbles up 1.4 megabytes of real memory! If you sacrificed all the RAM from 22 Commodore 64s to clock tool, it still wouldn’t have enough to tell you the time. Even the vanilla X11R4 “xclock” utility consumes 656K to run. And X’s memory usage is increasing.

The Clock Tool : C64 memory usage numbers were accurate, but I'll admit that the $5,000 toilet seat reference was a slightly gratuitous (but ultimately prescient) 781.25% exaggeration about the time when US Government under the Reagan Administration spent $37 per screw, $7,622 per coffee maker, and $640 per toilet seat (and it wasn't even made of enough gold to support Trump's vainglorious ass and ego, or even certified for the theft, storage, sale, or disposal of classified documents!), but in 2018 the Air Force paid $10,000 each for three toilet covers.

But the comparison of the level of government waste of money to the level of X-Windows waste of memory has survived the test of time and is still apt.

https://www.latimes.com/archives/la-xpm-1986-07-30-vw-18804-...

$37 screws, a $7,622 coffee maker, $640 toilet seats; : suppliers to our military just won’t be oversold

[...] Remember when we found out that the government paid $640 each for plastic toilet seats for military airplanes? Now that was something I could feel that I personally paid for. I pay a good deal more than $640 in taxes every year, and I probably paid for several of those toilet seats. That is a concrete contribution that I can be proud of. [...]

https://www.nytimes.com/1986/02/18/us/dept-of-hundred-dollar...

Dept. of Hundred-Dollar Toilet Seats. Special to the New York Times, Feb. 18, 1986.

Disclosures about the Defense Department paying hundreds of dollars for a hammer and hundreds more for a toilet seat have infuriated President Reagan, who has called the reports a ''constant drumbeat of propaganda'' and not typical of the way the Government operates.

But that ''propaganda,'' the President apparently forgot or did not know, originated with a commission on governmental efficiency for which he has been full of praise, the Grace Commission.

Gregg N. Lightbody, a spokesman for the commission, officially known as the President's Private Sector Survey on Cost Control, said the group's educational arm, Citizens Against Government Waste, would continue to use the example of the costly hammer in its messages identifying faults in Government spending and procurement, even though the example might be ''an isolated instance.''

Mr. Reagan has denied the accuracy of the accounts twice in the last week and placed his faith in another panel, the President's Commission on Defense Management, to help clear up what he considers to be misconceptions about the Government. The defense management commission is expected to issue a report Feb. 28 that ''will help us in trying to make the people understand,'' Mr. Reagan said.

But Herb Hetu, a spokesman for that commission, says its report will not address the hammers or the toilet seats, at least not directly. Instead, Mr. Hetu said, the statement on procurement will look at the broader issues of Defense Department organization and will recommend ways to streamline purchasing.

The hammers and the toilet seats, along with coffee makers alleged to have cost thousands of dollars, Mr. Hetu said, ''are just symptoms of problems in the system.''

''The commission didn't look at the symptoms so much as it did the larger problems,'' he said.

The larger problems, he ...

Wouldn’t it be XFree86, back in 1994?
The X this book complains about would have mostly been the code/protocol overseen by the open group.
(comment deleted)
The Unix-Haters Handbook was published in 1994, two years before the Open Group was founded in 1996, three years before they took over the X-Window system in 1997, five years before the formation of X.org, and ten years after X-Windows was released in 1984. XFree86 was not very widely used in 1994, most people were running the original X server on non-x86 and RISC workstations at the time (Sun SPARC, SGI MIPS, DEC Microvax and Alpha, HP PA-RISC, NCD X-Terminal, etc). The Open Group had absolutely nothing to do with the design of the X11 protocol, the server implementation, or XLib.

I've quite frequently written about X11, NeWS, Wayland, window management, HyperCard, web browsers, and user interface toolkits on Hacker News:

https://news.ycombinator.com/item?id=29097030

marcodiego on Nov 3, 2021 | parent | context | favorite | on: How X Window Managers Work, and How to Write One (...

Hi DonHopkins!

Would you mind to share your opinion on Wayland with us?

DonHopkins on Nov 4, 2021 [–]

Thanks for asking! Hold my bong. ;)

[...lots more at the link: https://news.ycombinator.com/item?id=29097030 ]

https://news.ycombinator.com/item?id=22502320

DonHopkins on March 6, 2020 | root | parent | next [–]

(An excerpt from another longer reply I just posted):

    From: npg@East (Neil Groundwater - Sun Consulting)
    Date: Wed, Jun 27, 1990
    Subject: Humor from Dennis Ritchie (at USENIX)

    (Actually Dennis's latter remark was attributed by him to Rob Pike)

    from Unix Today 6/25 page 5.

    "..., Richie reminded the audience that Steve Jobs stood at the same podium
    a few years back and announced that X was brain-dead and would soon die.  "He
    was half-right," Ritchie said.  "Sometimes when you fill a vacuum, it still
    sucks."
http://www.anvari.org/fortune/Miscellaneous_Collections/1332...

https://news.ycombinator.com/item?id=22502385

DonHopkins on March 6, 2020 | parent | context | favorite | on: The X-Windows Disaster (1994)

The window system needs to be displayed somehow too. What works for the window system works for the browser too. There's no need for an additional layer of widow system once you have a browser that can draw on the screen itself. A web browser can make a much better scriptable window manager / desktop environment all by itself, than anything that's possible with X-Windows.

code_duck on March 6, 2020 [–]

The comment I replied to said that X and Wayland were being overrun by web apps, which doesn't make any sense at all.

NB as this article reminds us, there is no system called X- Windows.

DonHopkins on March 6, 2020 | parent [–]

If you want to be pedantic, I didn't call it "X- Windows". I called it "X-Windows". Nobody ever puts a space between the "X-" and the "Windows". The title of the article we're discussing that I wrote and named uses the term "X-Windows" because I specifically told the editors of the book to spell the name that way on purpose, to annoy X fanatics. That fact was stated in the last sentence of the article.

So what is there about drawing on the screen and handling input events and handling network requests that a window system can do, but a web browser can't? Why does there need to be a w...

I believe the allegory (I was a kid at the time ), is that, just as Iran-Contra involved alliances of convenience between enemies and spending a lot of money, X.org (or the MIT X11 group) & all the Unix Vendors & DEC VMS, were trying to find a way to sort of standardize a Unix GUI, while also trying to siphon their competitors customers and lock them into their own proprietary systems.

Maybe FAAANG, they want to eat each others users, but also not have the government interfere, especially in avoiding taxes.

Here's American Dad giving a brief, basically factual < 2min, musical overview of Iran-Contra.

[0] https://www.youtube.com/watch?v=lFV1uT-ihDo

That sounds like a reference / joke that Dennis Miller would make.
x.org is a pale succesor of X or Xfree86. It seems that the goal of freedesktop.org is to discreditate X in order to push for wayland and systemd.
The first time I leraned about this book I giggled about the title. But in the modern world of the conformity and a learned helplessness it's a quiet reminder what you can't do better if nobody says you unpleasant things.
> But in the modern world of the conformity and a learned helplessness it's a quiet reminder what you can't do better if nobody says you unpleasant things.

I fight a lot against learned helplessness, trying to get people to actually report bugs, to complain about papercuts they encounter in tools that I can change. But because people are used to having their complaints fall on deaf ears, they don't, so I seek them out in places like here and some time back, Twitter. But that also brings up a dredge of non-constructive unactionable complaints that end up doing nothing more than make me shake my head and close the tab. There are ways of complaining without being nasty to the people doing the work. Being a dick is not a personality type.

> But in the modern world of the conformity and a learned helplessness it's a quiet reminder what you can't do better if nobody says you unpleasant things.

But UNIX continues to dominate and have problems, so I don't see Unix-Haters Handbook being very good example of saying unpleasant things making anything better; its more of a counter-example, demonstrating how annoying rants get easily ignored

Nothing about unix got better as a response to this book.
Huh.

When I first saw it (in about 1996?), I flipped through it and decided they were trolling. I put it down and have never read more than the X section.

I remember borrowing this from a friend a couple of years after that Finnish chap created a *nix that I could run on my lowly 386 machine.

If you are a unix lover (as I am), then it's worth it at the very least for the anti-foreword by Dennis Ritchie.

Ritchie tip-toed right up to the line between staying tongue-in-cheek and ripping them to shreds. It was quite impressive IMO.
Felt like the hate was mutual.

    From: npg@East (Neil Groundwater - Sun Consulting)
    Date: Wed, Jun 27, 1990
    Subject: Humor from Dennis Ritchie (at USENIX)

    (Actually Dennis's latter remark was attributed by him to Rob Pike)

    from Unix Today 6/25 page 5.

    "..., Richie reminded the audience that Steve Jobs stood at the same podium
    a few years back and announced that X was brain-dead and would soon die.  "He
    was half-right," Ritchie said.  "Sometimes when you fill a vacuum, it still
    sucks."
http://www.anvari.org/fortune/Miscellaneous_Collections/1332...
There's an odd dig at the FSF in there that I wish had more context. What must have it been like to watch GNU clone unix, having worked on it?
This item has a fairly even periodicity of previous submissions here at HN. I'm not quibbling about resubmissions, just wondering what is the motivation re: this particular piece? EDIT: Replies and not downvotes would be appreciated.
(comment deleted)
Does it need one? There's a longish list of perennials. Mostly what they have in common is that they're interesting to first-timers and pithy enough to be worth a re-read for the rest of us. Someone comes across it for the first time, or are reminded of it, and bob's your uncle it pops up again as a submission.
A lot of people here put Unix on a pedestal, so finding a published book that so explicitly hates Unix is quite novel. Furthermore, the criticism doesn't come from the typical demographic, Microsoft Windows users.
It's novel and amusing, much like 4chan is novel and amusing.
To what extent have the problems in the book been addressed since 1994?
Could you be more specific?
To what extent have the problems in The Unix-Haters Handbook been addressed since 1994?
Maybe they wanted to know which month you were taking about.
The "plethora of incomplete, incompatible shells" has narrowed down a fair amount if you only include ones in wide use.

And "The push for a unified Unix" sort of happened, we're down to 2 or 3 that get any broad attention.

2 or 3? Linux, and what are the other 1 or 2?
MacOS, and various might argue Minix (prevalence via Intel Management Engine), or FreeBSD (still very important for a few big companies), etc.
OSX I guess qualifies
Well, if we're talking about the problem of it still existing, that one has almost been solved.
I was thinking the same thing; so many of their original complaints have been addressed.

However, one has not: unix still uses the NJ-style (vs the MIT style), which is, if you can't figure out how to handle an error -- then don't. Also, put the burden on the programmer. Lovely stuff like that, which is core to the "unix philosophy".

To be fair, the web as a whole is like that these days, in that HTTP explicitly includes the user as part of the error handling (404, 500, 503). How many times have you hit "Reload" today?
That was much less true by the end of the 1990s. Partly due to things like BSD’s improved signal handling. And partly due to the userland code quality improvements from the BSD and GNU rewrites.

Shell scripting is still a nightmare for error handling, but by the end of the 1990s there were better scripting languages available to use when that matters.

There are no longer good operating systems to compare Unix-clones against, so those of us who’ve grown up in this millennium don’t even see the problems.
X11 continues to be A Thing, although the transition to Wayland is somewhat underway
> Even if you can get an X program to compile, there’s no guarantee it’ll work with your server. If an application requires an X extension that your server doesn’t provide, then it fails.

Thankfully Wayland fixed this by locking down the protocol and banning extensions.

(comment deleted)
Which is why Wayland was a failure from the start, and still hasn't displaced X-Windows after all these years.

The fact that it didn't occur to the Wayland designers to make it extensible with an embedded scripting language like PostScript in NeWS or Lisp in Emacs or Python in Blender or Lua in Redis or JavaScript in web browsers means that it was obsolete from the start.

And that's why billions of more people use web browsers every day than Wayland.

Some critics argue that The Unix-Haters Handbook indulges in historical revisionism and presents non-constructive unactionable complaints, without suggesting improvements or alternatives. However, I stand by the accuracy and validity of the insights and suggestions in the X-Windows chapter, as evidenced by the development of web browsers and the ascendancy of JavaScript.

https://www.theregister.com/2023/11/29/rhel_10_dropping_x11/

>[...] The transition from the now 30+ year old X Window System to the newer Wayland-based stack has been happening for the past 15 or so years.

>We found this statement amusing for two reasons. Firstly, the X window system is much closer to 40 than 30 – we celebrated its 38th birthday in the middle of last year. X tore through its first ten major releases in just a few years. The first version was in 1984, and the 11th – which is why it's called X11 for short – was in 1987.

>Secondly, as we noted when a GNOME developer proposed that Gtk5 drop X11 support, Wayland itself is getting old now. Work on it started in 2008; if RHEL 10 does ship in 2025, Wayland will be 17. So at the time when the biggest enterprise Linux goes Wayland-only, that protocol will in the same general ballpark age-wise that X11 was when Kristian Høgsberg started work on its replacement. At that time, X11 had been around for 21 years.

>The Reg FOSS desk remains somewhat skeptical about Wayland, but the critical mass is getting there. KDE 6 will be Wayland-only. As it happens, personally, this vulture isn't a big fan of either GNOME or KDE, so it reassures us that two of the most popular Wayland holdouts are both adjusting their attitudes. Mint is experimenting with support in Cinnamon, and so is the Xfce team. [...]

>This would be an epic task, and without a commercial backer, it doesn't seem likely to happen. Perhaps it really is time to just let X die. If that seems drastic, we advise reading chapter 7 of The Unix Hater's Handbook.

>Perhaps the more independent-minded Unixes could do an end run around Wayland and switch to Arcan instead. Or even start over. Don Hopkins, the author of that chapter, suggested to us that a better plan would be to reimplement something akin to NeWS using JavaScript instead of PostScript. That sounds fun. ®

See the "Hold my bong" essay I wrote in response to somebody asking for my opinion of Wayland and ideas about using extension languages like JavaScript:

https://news.ycombinator.com/item?id=29097030

>Hi DonHopkins! Would you mind to share your opinion on Wayland with us?

Thanks for asking! Hold my bong. ;)

I've never had any reason to use Wayland or desire to learn much about it, so I can't tell you anything technical or from first hand experience.

But I think we have X-Windows to thank for the fact that most Unix programmers use Macs now.

And it's way too late for Wayland to change that fact. Especially with the release of the M1 Max. That ship has sailed.

It didn't matter how much better NeWS was than X-Windows -- it still lost despite all its merits.

And I don't see Wayland as being any more better than X-Windows, than NeWS was better, decades ago.

So simply "being better than X" is not sufficient to displace it, and Wayland isn't e...

>Why have X-Windows or Wayland at all, when you could just run the web browser itself directly on the hardware, as efficiently and flexibly as possible

That's been tried by ChromeOS, and ChromeOS is retreating from that design decision and adding Wayland (as part of a many-years-long rearchitecting called LaCros).

Rather, Wayland was still a hobby project during ChromeOS' development and X11 always has been ridiculous security-wise. Also the decision allowed them to tightly tie Chrome into the graphics stack (compressed textures, color-space handling, hw plane accelerated compositing etc.), this has become viable on Wayland only recently.
I have no side in this fight, but I do love that my comment immediately led to a prime example of what I had in mind when I called X11 "A Thing" :)

Lovely writeup, thanks for the details this is very informative

Pretty much all of them, insofar they were even valid concerns to begin with because many are not, or are at least hugely simplified, and a number of others have nothing to do with "Unix" in the first place.

The entire book is basically "let's compare the worst of 10 Unix systems to the best of 10 other systems, and then come to the conclusion all of Unix sucks and all the others are brilliant". Well, anything "sucks" in that way. And that is assuming that "best of 10 other systems" is accurate and not hugely biased and viewed with rose-coloured glasses.

I think this sentence probably sums up the book quite nicely:

> Will journaling become prevalent in the Unix world at large? Probably not. After all, it’s non-standard.

Which probably tells you all you need to know about the mentality of the authors. Nothing in any standard prevented anyone from journaling. It's just FUD.

The first journaling filesystem was introduced in 1990, in AIX, and then in 1991 in HP-UX. Both are Unix. Windows followed in 1993, Apple in 1998. This book is from 1994. This was more or less cutting-edge(-ish) stuff back then.

"Storing files" reliably has always been hard, on any system. "Unix can lose files" – well, yeah, just like any other system mate. Unix lead the way on improving that with journaling, and the book even acknowledges that in the paragraph before the one I quoted, and it's still whinging and whining and spreading bullshit FUD.

I'm not saying Unix is perfect today and I'm sure as hell not saying Unix anno 1994 was perfect. but a careful thoughtful criticism this book is not. The best part is Dennis Ritchie's "anti-foreword".

A book refuting all the bullshit in this book, even from a 1994 perspective, would probably be longer than this book. It's a classic case of bullshit asymmetry where flinging some nonsense in to the world takes almost no effort at all, but refuting it takes a lot more effort.

> whinging and whining and spreading bullshit FUD

I’m pretty sure that if Freud were present, he’d point out the rage you’re feeling right now isn’t really about the thirty year old nerd satire book you’re commenting on, it’s about your relationship with your father.

The problem is that it's historical revisionism. It keeps getting posted on HN and taken serious (it was never intended as satire in the first place) and people think it somehow represents an accurate view of ... anything. It doesn't.

But the less said about my father the better, so maybe shrug.

I took it to be a satirical mishmash of end-user complaints and generalized bitching and moaning, pulled largely from a mailing list archive. Regarding the question of whether it was intended as satire, I'd observe that the copy I read so many years ago had a Unix barf bag pasted inside the back cover and I'm pretty sure the front cover featured the guy from Edvard Munch's The Scream.

If it represents an accurate view of something, it represents the fact that Unix at the time had some really eminent end users who found the operating system to be a major pain in the ass. I mean, you can say "those guys should have loved it, they just didn't know what they were talking about," but I don't see the point of it. I guess what I'm saying is that nothing about the book demands to be taken too seriously, and if you see someone doing that, you aren't exactly obligated to also take it seriously (or take them seriously).

Unix has gotten better while everything else got worse.

We no longer have dinosaurs like LISP-M or TOPS-10 for the Unix-haters to get rose-colored nostalgia for.

And Windows NT proved how terrible the alternative could be. The NT api and Powershell is basically the "Monkey's-Paw" version of what the authors wanted. Be careful what you wish for.

> Unix has gotten better

Well, Linux has.

Unix is the same old: when you log in to any of it (BSD, Solaris, AIX, ...), it's like a time machine back to 1990.

OSX is a Unix. I don't like it compared to Linux personally but I'm obviously in a minority there.
The Darwin environment can be described as stagnant waters, where you need to bring in third-party FOSS package management in order not to be stuck with twenty-year-old forks of GNU utilities.

It's no longer positioned as a server OS, which on the surface just looks like a business move, but I suspect it's because the kernel and surrounding environment aren't very good. The writing was on the wall for years.

I think this is Torvalds’ true genius: creating an OS as different as possible from UNIX while being compatible with it.
> Well, Linux has.

Linux is getting worse. The freedesktop.org cancer is eating it from the inside (systemd, wayland).

Plus bloat in general.

Well, the Unix Haters complained about it! Let's see, what did they write:

• “Being small and simple is more important than being complete and correct.” • “You only have to solve 90% of the problem.” • “Everything is a stream of bytes.”

Well, everything is still a stream of bytes. The problems are maybe 95% solved, and things are no longer small or simple.

E.g. could no longer have your kernel on one floppy disc, and a rescue image with glibc + utilities on another.

My recollection of the book is that many of the authors were fond of VMS, so they might appreciate NT.
Not at all: we all despise VMS, but are quite fond of ITS -- in fact ITS-LOVERS@AI was an alias for UNIX-HATERS@AI mailing list. Where AI is MIT-AI, a PDP-10 running ITS, whose 8 bit ARPANET address was 134.

https://news.ycombinator.com/item?id=13518273

https://news.ycombinator.com/item?id=15080221

I stand corrected, then!

It's been a while since I last ready the book, but ironically, it helped me learn some UNIX concepts that had eluded me before.

NT is to VMS, whas C++ is to C (i let you find the reference in the Unix haters handbook). /s
NT is a pale rendering of VMS.
> Windows NT proved how terrible the alternative could be

Strong disagree. NT and the 'Windows way' is IMO superior to the UNIX model where everything is a bag of bytes.

Actually try programming against the NT kernel, the Windows API, and try to use PowerShell seriously (without complaining about 'long commands'.

Taking a quick glance through the sections:

* Chapter 2: This is mostly still a problem, although many tools have gotten better about error messages, and there are a few footguns that have been removed. (A lot of this chapter, I presume, is basically about how something like VMS generally has a saner terminal interface than Unix does. But I've not used VMS enough to know for sure.)

* Chapter 3: The internet exists and is easily accessible. There is still often a lot of issues with documentation in, say, man pages or the tool's command line option (see how often I complain about git's help!), but if you search for your problem on the internet, you'll probably find a more coherent answer anyways, so it's not as relevant anymore.

* Chapter 4: Sendmail is no longer the dominant tool to send email on Unix systems, and for that matter, few sites run their own email servers anymore. Not really relevant anymore.

* Chapter 5: Usenet is even less relevant.

* Chapter 6: I've had some issues with terminal stuff in the past, but in general, most terminals just implement half of what xterm does, so it's often the case that programs emit the terminal escape codes directly.

* Chapter 7: X is still moderately painful. Windowing is usually done via a higher-level toolkit like GTK or QT (and Motif isn't big anymore), or else often rolled on top of GL (or Vulkan) buffers. Xauth doesn't come up in practice anymore, and a lot of the other issues mentioned here aren't as relevant. But I still like the dig at X getting server and client confused.

* Chapter 8: Shell proliferation has mostly gone away, largely down to either bash or POSIX-with-no-extensions sh. However, a lot of the criticism about shell as a programming language rings true.

* Chapter 9: Several of the tools mentioned here are just less relevant these days, especially because something like makefiles tends to be autogenerated rather than written directly.

* Chapter 10: C++11 is a pretty radical change to the language. And half of this chapter on C++ is somehow a rant on the C preprocessor, which is generally minimally tolerated by most C++ programmers, especially those on the committee.

* Chapter 11: Another chapter of mostly irrelevant tools.

* Chapter 12: This chapter is largely relevant, although nowadays, there are also ways you can set limits to avoid some of these problems.

* Chapter 13: A lot of kvetching about filesystems no one uses anymore. Although some of the complaints about how POSIX views files is still appropriate, but do note that all major OSes these days end up sharing the same deficiencies in their file semantics.

* Chapter 14: NFS is still around, although I think it's gotten a lot better in the past 30 years.

Overall, the high-level criticism of Unix as a worse-is-better approach still rings true, but this is largely a book that prefers to take cheap potshots over any serious analysis, and those potshots have often not aged well.

Beating a dead horse here...

"But I still like the dig at X getting server and client confused."

A "server" is something that accepts requests and multiplexes some resource; a "client" makes requests. The X server is a server in that it multiplexes access to the UI hardware. Don't be fooled by the way a client gets event notifications from the server. (That's mostly just the tip of the iceberg of problems with the "client/server" idea.)

The book remains wrong.

https://news.ycombinator.com/item?id=25736735

mcguire on Jan 11, 2021 | parent | context | favorite | on: XTerm: It's Better Than You Thought

Don, did you ever figure out the difference between a "client" and a "server"?

DonHopkins on Jan 12, 2021 [–]

Sure: xterm a client of your display and keyboard and mouse, remote input and output services that the X11 server provides over the network.

And at the same time, a web browser is the client of computing and data servers in the cloud, provided over the network.

In reality, there can be many different client/server relationships existing in different directions over the same full duplex network connection. It's really a bi-directional multiplexed messaging channel, not a pure strict hierarchical relationship, and many client/server dependencies can go both ways over the same connection, at the same time. You can even run an ssh that opens tunnels in both directions, then tunnel X and http connections over that.

Once a connection is established, it really don't matter which end initiated the connection (or how many links and proxies and tunnels there are along the way) -- you're just sending messages both ways.

"Client/Server" is an over-simplified way of describing what's possible.

ddingus on Jan 12, 2021 | parent [–]

Only the server, actually serves the graphics to the user. Within the context of the X Window System, the server is the body of code responsible for delivering the display to the user viewing it.

bitwize on Jan 12, 2021 | root | parent | next [–]

> Only the server, actually serves the graphics to the user. The server actually serves the user to the remote client.

It's like "you are not the customer, you are the product". The remote program needs to communicate graphically with you, and connects to the X server to do this; therefore, you are not the requester of a resource, you are the resource being served. :)

ddingus on Jan 12, 2021 | root | parent | next [–]

I like it. Clever, and current context relevant. Cheers.

DonHopkins on Jan 12, 2021 | root | parent | prev | next [–]

Great analogy. Think of it like Amazon Mechanical Turk.

mcguire on Jan 13, 2021 | root | parent | prev [–]

Think of it in terms of a print server. It's a long-running process that other processes connect to, in order to request a service. It handles the "impedance mismatch" between the clients and the hardware it controls---in the case of a print server, it demultiplexes requests and translates them into something the printer can deal with; in the case of X, it displays the information as requested by the client and provides notifications of events as requested by the client.

Sendmail was installed by default on FreeBSD until last week, though. So it's true that it's no longer relevant if you're on FreeBSD 14 (which replaces it with the Dragonfly Mail Agent), but it's quite a recent change.
It's so strange that as far back as the 80s a lot of the criticism of unix is that it wasn't "graphical". Meanwhile in the year 2023 AD I've moved more and more of my workflow to the terminal to escape the rapidly changing, distracting, and visually bloated GUI landscape.
If it is in the terminal (command line to be specific since GUI is possible inside a terminal too) then it is already ready for automation, containerisation, running on a server.
As someone that was alive during those UNIX days, I really don't get the appeal to live in the past.
I just gave you multiple reasons.
Which is why I started as making the point I lived through it, when fancy graphics weren't even an option.
I don’t believe it is "the past" which is appealing.

We live in a very graphical society, with (moving) pictures everywhere, all the time. But to "think", you need words. As Neal Stephenson put it in "In the beginning was the command line", Words are the only technology available to encode thoughts. While images and sounds convey more emotions. It’s not a coincidence that we are here exchanging words.

Command-line, is a way to exchange words with a computer. It is way more precise, more efficient. But it takes learning and thinking. It’s harder the same way it is harder to read a book than to watch a movie. Especially if you never learned to read in the first place which, for the command-line, is approximately everyone but a few geeks.

If your goal is to "think" precisely and convey this thinking into something tangible on a computer, then you probably want the command line. But, as it needs a lot of learning, you don’t want it for temporary job. You don’t learn to read because you want to read Harry Potter. You learn to read because you want to spend your life reading books.

In "UNIX As Litterature", Scoville argued that UNIX is done by literary people for literary people. People which have a strong "book" culture. People who probably enjoy books more than the movies because "there’s a lot more, it’s more subtle, I can imagine it like I want".

Those people, (disclaimer: I count myself in those) may even have too much "graphics" in their daily lives. Too many pictures. Billboards, movies, ads, colored and graphical t-shirts everywhere, branding.

Retreating to the command-line feels good, calm, zen. (see Stephenson book again).

But, I admit, those people are a minority. Graphical interfaces have the advantage of being intuitive. Intuitive literally means "you don’t need to think" (that’s what intuition is). You click randomly and, by trial and error, you learn some arbitrary rules that the designers decided to use. (when I was teaching basic Windows XP computer use to elders, I once got a very simple question: "how do I know if I need to click once or double click?". I never could answer that. There are no real rule. You learn it and never think about it afterward).

So the GUI is really about removing the thinking from the process. Which is good when you don’t care about the process or when you are not really sure what you want. Or when you want something to be quickly done once and for all.

Command-line forces you to clarify your thoughts all the time. It is hard. It is energy consuming. But this forces you to take real decisions.

Also, TUI and hybrid UI's. MC it's both a shell, file manager, editor, viewer, VFS explorer and remote FS manager. mcedit -b or mc -b, much better. No colors, no distractions, just raw info. That's how I read lots of fortune files, books, novels and documentation back in the day.
Ah just like my first experiences in MS-DOS 3.3 and Xenix....
Scripting languages and a REPL give exactly the same experience, if not better, without pretending to be stuck in emulating a 1970's text terminal.

Another thing that looks like books is paper, maybe for the ultimate experience we could write programs on paper and have the computer scan them somehow.

Unix CLI makes automation easy. The least you 'use' the computers for repetitive tasks, the better.

If you want fun, get Scheme or Common Lisp+Emacs and start hacking something cool.

A REPL and scripting languages make automation easy without having to live in a TTY emulation world.
Even with GTK/Lucid Emacs+Geiser/SLIME is not that easy.

Also, on speed... GNU's looks glacially frozen compared to slrn. Heck, GNUs runs fast if it's being bound to slrnpull's spool.

GNU's on Email and IMAP it's the same. If you use mbsync+msmtp, again, the speed it's literally 1000x better. by pooling a maildir. From hours parsing a remote folder, yes, hours, to seconds.

Also, compare elfeed vs sfeed. By the time elfeed renders a huge caché of news, I could write an elisp parser for the sfeed output and then display everything under Eww.

Emacs without Unix tools doing the hard job would be much slower even on fast machines. Yes, I know, the new JIT against libgccjit, blah... blah... still slow.

Emacs is hardly the example I would think of, it didn't got its nickname accidentally.
(comment deleted)
Unix was graphical. It even had a graphical control panel long before Windows in /usr/bin/vi.
I haven't worked in a GUI in 5 years
You have your causal arrows flipped around. It is because unix is not graphical that the graphical interfaces bolted onto it are poor and the only good way to interact with it is via the command line. If a system were designed to be graphical—and to be good at it—then there would be no problem.
I don't find qt or gtk to be much different to whatever the windows one is called now. And the unix window managers are far superior.

But still, the commandline is forever.

macOS is a unix, is graphical and was it from the beginning. I still spend most of my working time in iTerm with fish+neovim. Because the alternatives are slower, bloated and uglier.

But, of course, technically I am still using a GUI, it is just that for some of my workflows GUI applications does not add much value. They also compose in a worse way.

As someone who picked up C++ in the late 90s, the discussion on the language resonates with me:

"Other books can tell you how using any of dozens of object-oriented languages can make programmers more productive, make code more robust, and reduce maintenance costs. Don’t expect to see any of these advantages in C++..."

"That’s because C++ misses the point of what being object-oriented was all about. Instead of simplifying things, C++ sets a new world record for complexity. Like Unix, C++ was never designed, it mutated as one goofy mistake after another became obvious. It’s just one big mess of afterthoughts. There is no grammar specifying the language (something practically all other languages have), so you can’t even tell when a given line of code is legitimate or not."

C++ was born into UNIX, on the same corridor as UNIX and C folks were, hence why its adoption grew alongside UNIX and C.

I suggest reading Design and Evolution of C++.

no.

c++'s growth was large projects building largescale apps on MSWindows (Microsoft Office et al), and that started just before "the internet/web".

unix grew in somewhat coincidentally the same timeframe, and the timeframe that the internet did because tcp/ip/servers/linux/everything's a stream; client-server was "the thing" and that gave http a place to stand.

unix and C are inextricably bound, and that gives C++ some free apron strings to tug, but C++ has never really associated itself with *nix per se. (MS window handles providing a cute place to put a link to the C++ class really cemented it as a "natural" way to interface to C++ OOP for handling UI events)

This. Unix/Linux are bound to C. Unix's API it's just libc. NT Objects and C++ was the natural binding as you say. Even ReactOS has an NT object viewer in their explorer.exe/shel32.dll reimplementation.
That is the urban myth that keeps saying Microsoft did it, forgetting how C++ was used everywhere else.

On UNIX powering CORBA and Motif projects, on Apple taking over Object Pascal, on OS/2 alongside Smalltalk, on BeOS, on Epoch (later Symbian), on IBM replacing PL.8, PL/S usage.

No, a lot of C++ and Motif as developed under Unix, but the giant for C++ software by a HUGE margin it's Windows and Win32 since forever.

Similar on how the web was born in a NeXTStep and then GNU/Linux servers (and lots of clients, libre sourced Mozilla and Konqueror's KHTML) ate nearly all the cake.

The original Windows NT kernel was written in C. Dave Cutler liked C and did not like C++. I believe the graphics (not GUI) portion of Windows NT may have been partially written in C++. Also, a lot of the Windows management code (message processing, RegisterWindowClassEx, CreateWindow, SendMessgae, PostMessage, GetMessage, etc.) probably came from Windows 3.x . This code was also written in C.
OK, now have a look on MFC and the tons of software for Windows written in C++ from VisualC/C++ days.
That is a urban myth, as many never looked elsewhere besides Windows.
I use C++ and Python every day. There are ways to make C++ pretty tidy but it is always some tidy stuff in a few files with the rest being a working, but, steaming pile of crap. I always laugh when people seem to jump on a code base and use a few new features.

That said, if, say my 15 year old crappy car has a hand built twin turbo, hand built multiple times, v8, that revs to 8500 with a custom built diff and suspension. Given a choice of one of those fancy new, clean lined, reliable cars and mine, I know which one I would take to out if I wanted to have fun and go fast.

Now relate this to go, rust and C++.

Say what you will, but I started my professional career with computers back in 1998 doing professional services for HP and its variant of UNIX, HP-UX, and I haven't looked back. As I kid I had played around with a number of personal computers that ran either MS-DOS, Windows or proprietary OS'es (such as the AmigaDOS).

To this day, I consider UNIX-Like systems to be a delight. Even Apple had to move to UNIX.

Big Tech would not exist without Linux (aka UNIX).

Related. Others?

The Unix-Haters Handbook (1994) [pdf] - https://news.ycombinator.com/item?id=31417690 - May 2022 (86 comments)

The Unix-Haters Handbook (1994) [pdf] - https://news.ycombinator.com/item?id=19416485 - March 2019 (157 comments)

The Unix-Haters Handbook (1994) - https://news.ycombinator.com/item?id=17614992 - July 2018 (1 comment)

The Unix-HATERS Handbook [pdf] - https://news.ycombinator.com/item?id=15403642 - Oct 2017 (2 comments)

The Unix-Haters Handbook (1994) [pdf] - https://news.ycombinator.com/item?id=13781815 - March 2017 (307 comments)

The Unix-Haters Handbook (1994) [pdf] - https://news.ycombinator.com/item?id=9976694 - July 2015 (5 comments)

The Unix Haters Handbook (1994) [pdf] - https://news.ycombinator.com/item?id=7726115 - May 2014 (50 comments)

Anti-foreword to the Unix haters handbook by dmr - https://news.ycombinator.com/item?id=3106271 - Oct 2011 (31 comments)

The Unix Haters Handbook - https://news.ycombinator.com/item?id=1272975 - April 2010 (28 comments)

The Unix Hater’s Handbook, Reconsidered - https://news.ycombinator.com/item?id=319773 - Sept 2008 (5 comments)

I can't wait for an AI/OS to simply ask it what I need to do.
Fairly early, Bell Labs executives decided to mandate that Bell Labs organizations developing software for the Bell System use Unix, which was from the research organization.

This led to many inventive rationales as to why a non-DEC computer and a non-Unix OS where really essential for specific applications. Resistance lasted for some time, but was eventually futile.

I knew of Don Norman from reading The Design of Everyday Things a few years ago; funny to see his name pop up here!

Searching around to make sure it's the same Norman, I came to find out that he wrote an article, The truth about Unix: The user interface is horrid, 7 years before DoET came out (which is confirmed in the Forward)! Had no idea he was on this scene.

The "Illustrations" credit on the cover is covered up by the "Programmers Press" but it looks like it is John Klossner. The hand-drawn illustrations are great, definitely one of my favorite aspects of the book.
You can click-drag-copy it in at least some pdf renderers.

"Illustrations by John Klossner"

It's ironic that this 30-year-old book, that was produced at a time when UNIX was not the colossus that it and related OSs are today, has been superseded by the course of events.

(Same as BYTE Magazine's 1995 cover story "Is UNIX Dead?" presaged its own death by only a few years.)

Today, most computers (and phones, TVs, and household appliances also) run on UNIX or a related OS, while the Vaxes of 1994 have disappeared and the Windows Desktop is declining rapidly away.

Author's Note: I have never used Windows as my 'daily driver'. I have used a UNIX Desktop throughout the 1990s, and a Linux Desktop since 2001.

Worse is better.
I'm not sure about that. The Unixes that the book complains about have been completely out to pasture for a couple of decades. NeXT existed at the time and was specifically excluded.
There's a snotty remark about Mach somewhere in there--does that count?
You know, your PDF reader probably has a search function, and the book itself has an index, which has numerous references to NeXT and NeXTSTEP.

NeXT: 11, 14, 230, 296

NEXTSTEP: 11, 14, 54, 141

OpenStep: 14, 141

Page xxxi of The Unix-Haters Handbook mentions: "In fact, it was typeset using FrameMaker on a Macintosh, a Windows box, and a NeXTstation." (Affectionately called "PainMaker" by its victims.)

I wrote three long paragraphs about NeXTSTEP (however you choose to spell and capitalize it), comparing it to NeWS and Display PostScript, in the X-Windows chapter. I even gave Steve Jobs a NeWS demo and a "NeRD" button at EduCOM, the month NeXTSTEP was finally released in November of 1988 (until then it was considered vaporware, and derisively called "NeVRSTEP" -- the critics even made t-shirts):

>I gave a NeWS/Pie Menus/HyperTies/Emacs demo to Steve Jobs once, on the trade show floor at the Educom conference, right after he finally released the NeXT Machine, in November of 1988.

>Sun was letting me demo NeWS and the stuff we were developing at the UMD Human Computer Interaction Lab on a workstation at their booth, and NeXT's booth was right across the aisle, so Ben Shneiderman rope-a-doped him and dragged him over for a demo. He jumped up and down and yelled "That sucks! That sucks! Wow, that's neat. That sucks!"

>I figure a 3:1 sucks:neat ratio was pretty good for him comparing something different than his newborn baby NeXT Step, which critics had taken to calling NeVR Step, since it had been vaporware for so long until then.

>When I tried to explain to him how flexible NeWS was, he told me "I don't need flexibility -- I got my window system right the first time!"

And one of the editors, Simson Garfinkel <simsong@nextworld.com>, wrote a popular book about NeXTSTEP and was a senior editor at NeXTWORLD magazine.

p. 11:

    Date: Wed, 20 Nov 91 09:37:23 PST
    From: simsong@nextworld.com
    To: UNIX-HATERS
    Subject: Unix names

    Perhaps keeping track of the different names for various versions
    of Unix is not a problem for most people, but today the copy
    editor here Standardizing Unconformity 11 at NeXTWORLD asked me
    what the difference was between AIX and A/UX.

    “AIX is Unix from IBM. A/UX is Unix from Apple.”

    “What’s the difference?” he asked.

    “I’m not sure. They’re both AT&T System V with gratuitous
    changes. Then there’s HP-UX which is HP’s version of System V
    with gratuitous changes. DEC calls its system ULTRIX. DGUX is
    Data General’s. And don’t forget Xenix—that’s from SCO.”

    NeXT, meanwhile, calls their version of Unix (which is really Mach
    with brain-dead Unix wrapped around it) NEXTSTEP. But it’s
    impossible to get a definition of NEXTSTEP: is it the window
    system? Objective-C? The environment? Mach? What?
p. 13 (although the index says 14: blame PainMaker, which is riddled with features!):

Sun Microsystems recently announced that it was joining with NeXT to promulgate OpenStep, a new standard for object-oriented user interfaces. To achieve this openness, Sun would will wrap C++ and DOE around Objective-C and NEXTSTEP. Can’t decide which standard you want to follow? No problem: now you can follow them all.

p. 53 (although the index says 54, thanks PainMaker):

Hmm… Excuse us for one second:

    % ls /lib
    cpp* gcrt0.o libsys_s.a
    cpp-precomp* i386/ m68k/
    crt0.o libsys_p.a posixcrt0.o
    next% strings /lib/cpp-precomp | grep /
    /*%s*/
    //%s
    /usr/local/include
    /NextDeveloper/Headers
    /NextDeveloper/Headers/ansi
    /NextDeveloper/Headers/bsd
    /LocalDeveloper/Headers
    /LocalDeveloper/Headers/ansi
    /LocalDeveloper/Headers/bsd
    /NextDeveloper/2.0Co...
> The PostScript imaging model, used by NeWS and Display PostScript, solves all these horrible problems in a high-level, standard, device independent manner.

We have evolved. Now we draw "surfaces" (to draw a cursor). /s

"Author's Note: I have never used Windows as my 'daily driver'."

What about Apple MacIntosh.

Depending on employer, it's not easy to have never used Windows or Mac. Must be one of the lucky ones. Even at university, I recall rooms of computers and printers set up for students' word processing use had DOS/Windows loaded on them. Labs had Macs. Above all the rest, I always preferred the room with the VAX and later the UNIX accounts we got.

To me, it's not that UNIX is objectively good, it's that the alternatives have all been inferior. To someone else, that might not be true. I am not fond of GUIs. Other people might love them.

Regardless of peoples' varied personal opinions, UNIX is still around and I'm using it every day by choice. No GUI.

Depending on employer, it's not easy to have never used Windows or Mac

True, but all I needed to use Windows at work was one dedicated app. (And actually that app was purely UCSD Pascal under the hood, but running as a guest under Windows.)

At home, I thankfully used my AT&T UNIX, then my Novell Unixware, and finally my Solaris I and II, before I switched to Linux in 2001.

In the mid-90s I thought I would look at this 'new-fangled, best thing since sliced bread' thing called Windows 3.1. I was disgusted at how primitive and useless it was compared to my normal Unixware desktop of the time.

I actually bought my wife a PowerBook in 2005. But I was horrified to discover that Apple is really no different to Microsoft.

>What about Apple MacIntosh.

Apple is too expensive and lacks the programs needed for development. No CAD programs.

This is pretty awesome (page 75):

  % rm meese-ethics
  rm: meese-ethics nonexistent

  % ar m God
  ar: God does not exist

  % "How would you rate Dan Quayle's incompetence?
  Unmatched ".

  % ^How did the sex change^ operation go?
  Modifier failed.

  % If I had a ( for every $ the Congress spent,
  what would I have?
  Too many ('s.

  % make love
  Make: Don't know how to make love. Stop.

  % sleep with me
  bad character

  % got a light?
  No match.

  % man: why did you get a divorce?
  man:: Too many arguments.

  % ^What is saccharine?
  Bad substitute.

  %blow
  %blow: No such job.
We have a tongue-in-cheek one in Portuguese:

% man teiga # butter No manual entry for teiga

I founded the original unix-haters list that the book is based off of.

What I say these days: Unix went from the worst operating system around, to the best, without getting appreciably better.

Not entirely true. But the Unix model of computation has obviously won. The Lisp Machine model, well, nobody even understands what that means any more.

Just because it's the least bad doesn't mean anyone won.
(comment deleted)
Well, if we want to, we can use Open Genera to emulate a Symbolics workstation -- on Unix.
The Lisp Machine model is represented by Emacs these days (which still has a thriving community). It makes interacting with the Unix model bearable since it can subsume it.

If that wasn't possible and I had to make do with just Unix, I would have switched professions. There's only so much bullshit one can take.

The list was great. I have the two partial archives that were once posted. Are there any real archives around? I know one of the concerns was redacting names (even with just initials and no mail paths it is obvious who most people are)
That's a very good quip. Is it yours? Do I credit you for it?
I love this. I still keep a copy on my iPhone/iPad for when I want to remember those days.
Where is the Windows-Haters Handbook.
> Where is the Windows-Haters Handbook.

On help.microsoft.com.

Oh for a time when haters had self-awareness and humor.