Hacker News new | ask | show | jobs
by ChocolateGod 357 days ago
> X11 had problems, but instead of fixing them

You can't fix a protocol that simply isn't designed for how modern graphics hardware works. Both macOS and Windows have upgraded their display stacks over the decades, but it was seamless because unlike Linux, nearly all applications dynamically link the system library which they can upgrade. Linux is late to the party here because everyone wants to make their own toolkit.

X was designed for multiple remote terminals receiving drawing commands over a network, not locally hardware accelerated graphical interfaces and functions that rely on close coordination between the hardware and display server (e.g. hardware planes, vrr, hdr).

Fixing X would require a new protocol to the point that it isn't X anymore, aka Wayland. There are arguments that not having a reference display server has led to problems though.

2 comments

Wayland also doesn't even remotely resemble anything that would be fit to talk to modern graphics hardware. DMA buffers and DRM (direct rendering manager, not the digital restrictions management) are an afterthought, a separate protocol that is not even all in stable yet. Vulkan usually doesn't work. Latency with Wayland got worse and won't get better because "frames have to be perfect". Tons of unnecessary blitting and latency be damned. All while actually tearing in Wayland is as bad as in X11 here.

Fixing X would require a protocol that is mostly X, but of course incompatible because you have to rip out some protocol bugs. But Wayland isn't X minus the bugs. Wayland started as a little bit of broken bitmap-pushing and a whole lot of hot air. And even with tons of extension and auxilliary protocol development, multiplied by tons of unnecessary reimplementations in tons of compositors, it isn't even where X11 was when Wayland started. Wayland fixed nothing yet, broke a lot, fragmented the community, brought pain and misery.

> Wayland also doesn't even remotely resemble anything that would be fit to talk to modern graphics hardware. DMA buffers and DRM (direct rendering manager, not the digital restrictions management) are an afterthought

You don't use Wayland to talk to graphics hardware, you use Wayland to communicate with the display server.

The Wayland protocol lets apps negotiate an area to write it output to and how it gets written there is completely up to the application, whether it involves the GPU or not, OpenGL, Vulkan etc.

This is in contrast to X where the app use X APIs to draw textures, which are then pulled by the compositor (copy, rip latency/performance), and then sent back to the X server to display.

That is complete BS. The application doesn't talk to the graphics hardware alone and then just copy a bitmap into a Wayland buffer. You don't just magically talk to the GPU. There is this little problem called 'security', 'multiprocessing' and 'multiuser' in between.
> That is complete BS. The application doesn't talk to the graphics hardware alone and then just copy a bitmap into a Wayland buffer. You don't just magically talk to the GPU. There is this little problem called 'security', 'multiprocessing' and 'multiuser' in between.

This is literally what DRM/DRI is for... which is not Wayland.

If you think the display server should handle applications using the GPU, then even Xorg dropped this approach.

DRM is literally the 3D acceleration driver framework for Linux. It has been around for decades and is same set of drivers that are used for any sort of accelerated graphics in X.

If you want to get rid of DRM you have to start over and rewrite all graphical drivers for Linux from scratch.

DMA is part of the basic architecture of modern computers. It is how you can do things like have fast USB devices or network devices because it allows device hardware to by-pass the CPU and write things directly to memory.

> DRM is literally the 3D acceleration driver framework for Linux. It has been around for decades and is same set of drivers that are used for any sort of accelerated graphics in X.

Yes, exactly. And Wayland ignored it for years, from the start, and only later slowly adopted it as an extension.

> DMA is part of the basic architecture of modern computers.

Yes, I know.

DMA is even older and not limited to Linux or Graphics. Back in the old VESA, SGI and Windows 3.0 times, DMA was a cool new feature (but actually old even then). When Wayland was conceived, it was boring and old. Yet Wayland didn't originally include DMA buffers, just later added it as an extension when it became obvious that they had just gotten rid of a 40 year old feature that was really really necessary for modern graphics...

> Yes, exactly. And Wayland ignored it for years, from the start, and only later slowly adopted it as an extension.

DRM is not part of Wayland, and Wayland does not use DRM. Wayland is the protocol between the display server and application, DRM is a functionality provided by the kernel to allow user space applications to use and share graphics hardware.

The display server can use DRM, as will applications wanting to use OpenGL/Vulkan, but these are not "wayland".

Did you even read the use case for this? or just Googled 'Wayland DRM' and post the first link?

When VR headsets are exposed to user space, they appear as displays and subsequently the display server will control them (which isn't useful), this is just a protocol that allows clients (like games, SteamVR) to have control transferred so they can drive the VR headset instead. This is because multiple applications are not allowed to control the same display on the Linux kernel at the same time.

It does not make DRM/DRI part of Wayland. Again, it goes back to my original comment of "you use Wayland to communicate with the display server"

IIRC GNOME originally wanted to do this over Dbus, but there was opposition.

The protocol is trivially extensible, and have had plenty of extensions that has significant altered how it behaves. Fixing X in a step wise manner wod have been perfectly doable. The problem is that the Wayland proponents didn't just want to fix the things there was agreement was broken, but also wanted to actively break things that would cause an uproar.
But we did do exactly that with X for literal decades. Then the developers of Xorg said "fuck this". I mean, where does the bus stop?
For literal decades they proved how malleable the protocol is, yes. Then they decided to ignore how malleable the protocol is instead of even trying to e.g. start by deprecating obsolete functionality and disabling it in future versions.

When XRender was introduced, for example, was the perfect time to deprecate server-side font-rendering. It's trivial to shim on the client side if anyone cared about the legacy functionality, and it takes a trivial amount of code to switch to using XRender instead for it instead (been there, done that, written a font renderer).

There's been plenty of opportunities to gut the legacy parts of the protocol that way, and reduce the complexity.

Grouping the main set of extensions and declaring that if the server reports a certain version number or above they

This didn't happen because redhat/ibm/microsoft took control of the project and decided they wanted to kill it. They have said this directly on social media that this is their explicit goal so it's not as if this is a conspiracy of some sort, it's just their publicly stated goal. They then deliberately stopped merging changes and left it to rot until the contributors got frustrated enough to fork it.

Now a massive gamergate-esque coordinated character assassination campaign against the creator of xlibre is ongoing even from publications that have many previous articles praising the same contributor at length. Corporate control of open source is very dangerous to the ecosystem as they also fund the "journalists" writing these articles who are willing to defend every decision they make.

Why would Microsoft want to kill X? It kept back the Linux desktop.

> Now a massive gamergate-esque coordinated character assassination campaign against the creator of xlibre is ongoing even from publications that have many previous articles praising the same contributor at length

Half the drama is the Xlibre guy involving politics

> Why would Microsoft want to kill X? It kept back the Linux desktop.

Well, we'll see what "progress" Wayland will bring. Maybe in another 15 years, when it might be halfway "done"...

the xlibre guy said "no dei" in a fork that is separating from a company embroiled in racist discrimination lawsuits for using DEI to hurt real people.

Is that really involving politics? In a way it is, sure, but again, unlike red hat, IBM and friends, he has pledged not to discriminate against contributors on the basis of politics. Red hat and IBM openly continue to discriminate against contributors and employees on not only the basis of politics but skin color as well. They wield their CoC like a cudgel to get rid of anyone they don't like with no semblance of fair enforcement. It's a series of struggle sessions, man.

So, if you're accusing him of being political, but you're not accusing red hat of being political, you're probably not really accusing him of being political, you're probably just either woefully misinformed or outright racist.

Can you explain why you think someone who pledges not to discriminate against people for politics (while forking from a corp that does, it's not just a random comment, it's part of the reason a fork is needed) is more political than a company that actively discriminates against people for politics and also their skin color?

> if you're accusing him of being political, but you're not accusing red hat of being political

I equally think being political the other way is also begging for toxicity and division.

e.g. See Godot.

He invoked controversial right-wing populist slogans in the project README. Yes, that is involving politics, and doing so in a way that is guaranteed to put a lot of people off.

He can be political even in ways people finds offensive, and still have people prepared to still engage with his projects, but he can't do that within the project and expect people to ignore it. It's his choice. He appears to have chosen to double down on being controversial and driving people away from the project.

> why you think someone who pledges not to discriminate against people for politics

The "no DEI" bit is a common "slogan" from people who by many are seen to want to ignore discrimination and pretend it isn't a problem, often because they are seen as quite happy for discrimination to continue. As such, to a lot of people when someone makes a claim like that adjacent to claiming not to want to discriminate, it rings hollow, and in fact often signals to them that the person using that language is likely to either be a racist or is fine with racists.

You don't need to agree with those views. You're free to find that interpretation ridiculous or offensive. But when you try to defend this project, you ought to at least understand that this is how it gets interpreted by a lot of people, and this is why the project is mired in controversy, and will remain mired in controversy as long as the project presents itself in this way.

If his intent seriously is to genuinely not discriminate, then his choice of working is exceedingly poor and shows a lack of understanding of the politics involved.

He has now had plenty of opportunity to read reactions to it, and has still chosen to leave that language in place. To me, that is strongly negative signal - either he doesn't care about the reaction, or is being stubborn and willing to push people away, or he's fine with people seeing him that way. Either way, it's not going to do anything good for this project.

> Now a massive gamergate-esque coordinated character assassination campaign against the creator of xlibre

Sigh. People repeating absolutely batshit things people say right back to them is not character assassination.

If you want to talk about anti-woke this Make X11 Great Again that then go for it. But you sound crazy. Okay? You sound like there's something wrong with you. So when people are off-put by this super weird and unnecessary politicization that's your problem.

It is not cancel culture. If you don't want to be accountable for the things you've said then I don't know what to tell you. That's not compatible with our current reality, so until inter-dimensional travel is invented, you're gonna be in for a rough ride.

It absolutely is character assassination in the context of what's been happening. News sites that have praised the xlibre author for countless articles are suddenly doing a 180 because the people who pay their bills are the same people running wayland and embroiled in anti discrimination lawsuits for abusing DEI to hurt people.

That you care more about "make x11 great again" more than red hat and IBM perpetrating actual cases of racist discrimination tells me a lot about you. You're either in an echo chamber and do not have all the information or are deliberately choosing to ignore it. Either way you aren't in the morally just position you think you are.

It's not about being morally just, it's about taking accountability for the things you say.

Everyone is allowed to say off-putting things. But it doesn't take a rocket scientist to deduce that making politically-charged statements might make people a bit weary of your project. That's his prerogative - but, it's not character assassination to repeat words back to people. I'm very tired of pretending it is. I find it incredibly immature when people want to play victim for being portrayed how they themselves seemingly want to be portrayed. You want to be politically charged? Bon apetite.

> News sites that have praised the xlibre author for countless articles are suddenly doing a 180

Which news sites praised the xlibre author for posting anti-vaxx stuff the the linux kernel mailing list and now shun him for posting other conspiracy theories in xlibre's README?

> Now a massive gamergate-esque coordinated character assassination campaign against the creator of xlibre is ongoing even from publications

The ranting anti-vaxer racist did it to themselves.

the racist DEI loving IBM/red hat employees and leadership did it to themselves

https://x.com/America1stLegal/status/1937994904132551029

I hope every last one of these people responsible lose their jobs.

Oh, please. As someone who wants a project like Xlibre, even just the project README alone is sufficient to taint the project.