Live data from Hacker News

Phoenix: A modern X server written from scratch in Zig

git.dec05eba.com

321–330 of 462 posts

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

#321

The name Phoenix is overused. There is an Elixir framework called Phoenix. I think I also heard of other projects with that same name before. It's a bit like the name 'Apollo'; besides the moon landing project, I know like 2 dev projects called that and also there is a sales SaaS platform with that name. Surely people should run a search first before choosing a name...

Firefox tried to use it and was sued for trademark infringement. wxPython also has a Phoenix project. It's definitely a catchy, but overused, name.

Firefox was Firebird, not Phoenix.

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

#322

Earlier quoted context omitted.

Firefox tried to use it and was sued for trademark infringement. wxPython also has a Phoenix project. It's definitely a catchy, but overused, name.

I don’t think the problem was with “phoenix”. It was Project Phoenix (resurrection of the Netscape browser). This resulted in the Firebird browser (Firebird and Thunderbird). But Firebird was an existing database that objected to the name. So, we got Firefox instead. At least that is how I remember it.

Yeah, me too. https://website-archive.mozilla.org/www.mozilla.org/firefox_...

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

#323

Earlier quoted context omitted.

Well, isn't this compositor related? I've never had any window placement issues running Sway (i3 for Wayland). I never used night light on that machine, so I can't comment on that particular point, but the thing seems to work just as well as i3. The only problem I have is with JetBrains IDEs, which seem to have shaky support. They're usable (meaning you can code), but the experience is so wonky that I basically consi…

Wayland intellij ide support is in the works, IDEs support X11 out of the box, but you can enable Wayland support explicitly (just search for it). As per Windows placement, Firefox won't restore windows on original positions supposedly because of Wayland, somebody please correct me if I'm wrong.

You are not wrong. But there is a new extension protocol on the way (dunno if done, very probably not rolled out if it is) that let programs solve this problem.

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

#324

Earlier quoted context omitted.

I know how to get the audio stream names, the problem is the window titles. With X it's easy, just call xdotool. I'm sure it's probably easy enough on Windows and MacOS too. Wayland is the weird one for making focused window titles privileged information. Anyway, I do think I've created what should be considered basic desktop functionality here, a simple hotkey that mutes or otherwise changes the volume only of the f…

Wayland is approximately correct in this case and Windows and Mac are behind the security curve for bincompat reasons; window titles certainly leak PII. There should be a way to do it, but it is sensitive information.

Is there any documented attack on macOS or Windows that utilized window title information?

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

#325

Earlier quoted context omitted.

I think the problem is that people wanting to build that and being in position to (being paid for by their employer), are fed up with X11. It learned no lessons from X11. It made most things harder to write and pushed more things that really every WM needs and doesn't care much to implement differently to WMs making them harder. For example, stuff like "WM need to manage raw inputs, so they can have more power over t…

https://news.ycombinator.com/item?id=46382947 Read this including my response. A lot of X features are actually Xorg features and they only work because there is a single implementation that everyone tried to integrate with. Turns out the moment there are two implementations, which is hard on X and easy on Wayland, you can no longer rely on targeting a single implementation for direct integration anymore. This means…

Are you saying that you can't get the title of the active window in X11 without using some features specific to the X.Org implementation?

It looks like the core X11 protocol spec [1] defines all that's needed, specifically the GetInputFocus, QueryTree and GetProperty messages. You might also want some things from the EWMH spec [2] (e.g. _NET_WM_NAME for UTF-8 or _NET_WM_WINDOW_TYPE to identify top-level application windows) but none of this seems like an implementation-specific X.Org feature.

[1] https://x.org/releases/X11R7.7/doc/xproto/x11protocol.html

[2] https://specifications.freedesktop.org/wm/latest/

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

#326
post #313

Earlier quoted context omitted.

Depends why you need it. XWayland is worthless for a11y.

Arguably, there is no sane a11y on GNU/Linux anywhere. iOS/Mac/Android is on completely other level.

It's not a single thing. Trying to get a screen reader on GNU/Linux is awful. Getting dwell click is easy on X11 and... some Wayland implementations. Or if you like: It was bad on X, and is worse on Wayland.

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

#327
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.

Funny, the other day I started writing an X server of my own. While I appreciate and welcome this work, I still use and write software that makes use of old X draw calls, which I intended to incorporate into my server, unlike the author of this work. So I'm glad to see my efforts have not been made largely redundant!

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

#328

Earlier quoted context omitted.

Firefox tried to use it and was sued for trademark infringement. wxPython also has a Phoenix project. It's definitely a catchy, but overused, name.

I don’t think the problem was with “phoenix”. It was Project Phoenix (resurrection of the Netscape browser). This resulted in the Firebird browser (Firebird and Thunderbird). But Firebird was an existing database that objected to the name. So, we got Firefox instead. At least that is how I remember it.

Mozilla was sued to rename Firefox (like I said) by one Phoenix Technologies. If I remember right, they picked two bad names before picking "Firefox" but I don't remember the other one.

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

#329
post #51

Earlier quoted context omitted.

Python 3 was actively antagonistic to Python 2 code for no reason other than to lecture us about how we were doing things wrong, writing code to support 2 and 3 to help transition was dumb etc etc. For example, in python 2 you could explicitly mark unicode text with u"...". That was actively BLOCKED with python 3.0 which supposedly was about unicode support! The irony was insane, they could of just no-oped the u"". I…

Python is really one of the worst designed languages. It always baffles me that people recommend it to beginners.

15 years ago I tried it and got that path error. 1 year ago I tried again and still got the same error. I'm well aware that it's simple enough to fix. But I was baffled that the same error was still there.

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

#330
post #321

Earlier quoted context omitted.

Firefox tried to use it and was sued for trademark infringement. wxPython also has a Phoenix project. It's definitely a catchy, but overused, name.

Firefox was Firebird, not Phoenix.

I think Firebird was the second name they tried to use that was already taken. They were definitely sued by Phoenix Technologies for one incident. Bryan Lunduke has a podcast explaining the history of this but I saw the one about Phoenix on the Wikipedia page before posting.

Edit: Here you go: https://www.zdnet.com/article/mozilla-holds-fire-in-naming-f...

Post reply on HN