News for hackers. Stuff that matters.
Re:Phoenix: A modern X server written from scratch in Zig by quesera on Wednesday December 24, 2025 @06:38PM (#46380509)
(tangent)

This is true, although entertainingly, the "server" part has always been easily confused.

In X11, the "server" runs on your local machine, and the "client" frequently runs on a remote system.

Re:Phoenix: A modern X server written from scratch in Zig by hitex on Wednesday December 24, 2025 @06:47PM (#46380586)
The server runs on the machine that allows clients to connect to it. What is the confusing part about this?
Re:Phoenix: A modern X server written from scratch in Zig by cloudfudge on Wednesday December 24, 2025 @08:00PM (#46381092)
The part that is counterintuitive to most people when it comes to the "server" terminology is that, with X, your end-user workstation (which may be an incredibly dumb X terminal) is the "display server", which means you remote into a server (in the traditional sense) elsewhere, which then acts as an X client by making requests to your local machine to display windows.

The way most people think about it, "client" is your local machine and "server" is the remote machine that has lots of applications and is potentially multi-user, but X turns that backwards. The big iron is the client and the relatively dumb terminal is the server.

Re:Phoenix: A modern X server written from scratch in Zig by jeroenhd on Wednesday December 24, 2025 @07:51PM (#46381038)
X has the terminology the other way around compared to all other consumer facing software.

This is because of its mainframe style history and technically it does make sense, it's just that everybody else does things the other way around.

For the people who weren't around in the ancient mainframe times who end up messing with Linux for the first time, this is confusing for a while.

Re:Phoenix: A modern X server written from scratch in Zig by jbverschoor on Thursday December 25, 2025 @05:24AM (#46383506)
Xhost and xapps
Re:Phoenix: A modern X server written from scratch in Zig by quesera on Wednesday December 24, 2025 @07:20PM (#46380841)
I think the confusion is obvious, given a little empathy for the range of people who use computers.

The server is usually a remote machine, especially back in the time when "client-server" architecture was emerging in mainstream (business) vernacular.

Re:Phoenix: A modern X server written from scratch in Zig by bdhcuidbebe on Wednesday December 24, 2025 @07:32PM (#46380922)
The server is not usually a remote machine. The server is the app accepting remote connections.

This has been true for decades.

https://en.wikipedia.org/wiki/Server_(computing)

Re:Phoenix: A modern X server written from scratch in Zig by quesera on Wednesday December 24, 2025 @07:42PM (#46380977)
Please don't imagine that I don't fully understand this.

Nevertheless, it has confused very smart and highly technical people. I have had the entertainment of explaining it dozens of times, though rarely recently.

However, still, a server is usually a remote machine in all common usage. When "the server's down", it is usually not a problem on your local machine.

Re:Phoenix: A modern X server written from scratch in Zig by drdec on Wednesday December 24, 2025 @10:04PM (#46381704)
I think most of the confusion arises because when you are tunneling X via ssh, the X client/server is the reverse of the shh client/server.

Add to that that the user manages the ssh connection while the X connection is managed for them...

Re:Phoenix: A modern X server written from scratch in Zig by mananaysiempre on Wednesday December 24, 2025 @06:44PM (#46380556)
Yes, it’s simultaneously logical if you look at how it works and immensely strange if you don’t understand the architecture. (As has been noted all the way back to the UNIX-HATERS Handbook[1], although, pace 'DonHopkins, the NeWS Book uses the same terminology—possibly because it was written late enough to contain promises of X11/NeWS.)

[1] https://www.donhopkins.com/home/catalog/unix-haters/x-window...

Re:Phoenix: A modern X server written from scratch in Zig by the_why_of_y on Thursday December 25, 2025 @05:19AM (#46383481)
There is nothing at all strange about the terminology. Go run ps on macOS and marvel at the "WindowServer" process. The generic architectural term is "display server".

https://en.wikipedia.org/wiki/Windowing_system#Display_serve...