Live data from Hacker News

Phoenix: A modern X server written from scratch in Zig

git.dec05eba.com

21–30 of 462 posts

Re: Phoenix: A modern X server written from scratch in Zig

#21
post #11

Pretty interesting approach to make an X server that is essentially "Wayland-like" (merging display server/compositor by default, isolated apps by default, no remoting of GLX, dropping legacy protocol features to the point of breaking compat with the core protocol, etc.). Not sure who this is for, but by itself it looks like a fairly reasonable set of choices.

For people who absolutely have to have X11 this looks like a better plan than XLibre.

Re: Phoenix: A modern X server written from scratch in Zig

#22
post #12

First my mind went to Phoenix (elixir framework), then to X (twitter) before it clicked what this was actually about. Some very overloaded names

The meaning of 'X server' has been well-established for 30+ years.

(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

#23
post #21
post #11

Pretty interesting approach to make an X server that is essentially "Wayland-like" (merging display server/compositor by default, isolated apps by default, no remoting of GLX, dropping legacy protocol features to the point of breaking compat with the core protocol, etc.). Not sure who this is for, but by itself it looks like a fairly reasonable set of choices.

For people who absolutely have to have X11 this looks like a better plan than XLibre.

It depends on whether their reasons for "absolutely having to have X11" hinge on actual compatibility with e.g. old binaries or wanting full remoting without streaming pixels.

This project would satisfy people who really actually want Wayland, but were upset by transitional pains or interactions they had around it and want to stick with X11 just-cause while getting some similar benefits. This arguably does describe some people but not sure it's a whole lot in the long run.

But who knows, maybe this could also make an easier to maintain XWayland some day, or a nice basis for implementing more esoteric X11 bits down the road vs. the older Xorg codebase.

Re: Phoenix: A modern X server written from scratch in Zig

#25
post #21
post #11

Pretty interesting approach to make an X server that is essentially "Wayland-like" (merging display server/compositor by default, isolated apps by default, no remoting of GLX, dropping legacy protocol features to the point of breaking compat with the core protocol, etc.). Not sure who this is for, but by itself it looks like a fairly reasonable set of choices.

For people who absolutely have to have X11 this looks like a better plan than XLibre.

The people who absolutely have to have X11 like myself usually have reasons. It sounds like currently a lot of those reasons for using X11 would prevent using this X server. Like reliable non-fragmented and widely supported screenreader protocol. Or the ability to do keyboard and mouse sharing.

>Applications will be isolated from each other by default and can only interact with other applications either through a GUI prompt asking for permission, such as with screen recorders, where it will only be allowed to record the window specified or by explicitly giving the application permission before launched (such as a window manager or external compositor).

Re: Phoenix: A modern X server written from scratch in Zig

#26
post #24

Multiple screens support is listed as non-goal. Would that prevent its usage with window managers which support virtiaul desktops? I am i3 user and it is a critical feature for me.

In short: No.

In X11 "screen" has a particular meaning, and only supporting a single screen doesn't preclude multi-monitor support or virtual desktops.

Re: Phoenix: A modern X server written from scratch in Zig

#27
post #22
post #12

Earlier quoted context omitted.

The meaning of 'X server' has been well-established for 30+ years.

(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.

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

#28
post #21
post #11

Pretty interesting approach to make an X server that is essentially "Wayland-like" (merging display server/compositor by default, isolated apps by default, no remoting of GLX, dropping legacy protocol features to the point of breaking compat with the core protocol, etc.). Not sure who this is for, but by itself it looks like a fairly reasonable set of choices.

For people who absolutely have to have X11 this looks like a better plan than XLibre.

My rpi dashboards are gonna love it

Re: Phoenix: A modern X server written from scratch in Zig

#29
post #22
post #12

Earlier quoted context omitted.

The meaning of 'X server' has been well-established for 30+ years.

(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.

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

#30
post #15
post #13

This is a great project! I like and use Wayland but the portal protocols and extension mechanism does leave a lot to be desired. Wayland is still quite a way behind Windows and macOS in terms of what productivity users need An X11 rewrite with some security baked in is an awesome approach. Will be watching!

I thought for a long time that rather than move to Wayland, we could come up with a tidied-up version of X. Sounds like a good and useful project, I hope it progresses.

I thought this too and originally thought that’s what Wayland was going to do but it went off and did its own thing.

I’m all for an X12.

Post reply on HN