The real story behind Wayland and X

Linux.conf.au 2013 -- Canberra, Australia4 HN recommenders · 2018–2024
46K views · talk · evergreen · Uploaded 2014-11-23

X.Org developer Daniel Stone explains the history and technical limits of the X Window System and why Wayland was created, debunking myths from forum comments. He covers topics such as network transparency and blocking calls.

HN uses it as the go-to answer to claims that Wayland is unnecessary, from a developer who knew X's codebase well.

Watch on YouTube

15 comments from Hacker News

@emersion2018 · in “On the Road to Pure Go X11 GUIs”

>Ultimately, since I can't go wrong with X and I can go wrong with Wayland, the choice was easy. Keep in mind that Wayland has been designed by people who've been maintaining X11 for years. >it also offers no mode that would work over a network X11 has a huge number of issues when it comes to network transparency. tl;dr is: it's not designed for this, you should use a proper remote desktop protocol instead. More info: [VIDEO] >Of that, EGL even requires Mesa and thus Cgo. That's not true anymore. You can use the DMA-BUF protocol instead of wl_drm. I'm not sure how to export a DMA-BUF without Cgo though… But that's a different issue. If you're going to use the GPU you'll probably need Cgo anyway.

@DyslexicAtheist2019 · in “Xubuntu 19.04: The Exhaustive Update”

last time I used kde was in 2002. I loved especially kmail and konqueror. Though I have eventually been turned off by the dependency hell of big DE's (not unique to kde and probably only an issue if you compile the DE yourself, ... though also annoying if you have 100+ base-packages/dependencies pulled in just because you want 1 tool). after moving to i3 I find it hard to look back. the level of customization I can do with a tiling WM (also dwm, xmonad etc) is just insane. Makes more sense to me since most of the tools I use are lightweight, e.g. suckless (surf), a complete process tree after login now consists of: ?─┬─?───i3-wrapper───i3 ├─sh───xautolock ├─sh───unclutter ├─sh───dunst───2*[{dunst}] ├─sh───i3bar───sh───python───{python} ├─sh───x-terminal-emul─┬─3*[bash] │ ├─bash───pstree │ └─6*[{x-terminal-emul}] └─systemd─┬─at-spi-bus-laun─┬─dbus-daemon │ └─3*[{at-spi-bus-laun}] ├─at-spi2-registr───2*[{at-spi2-registr}] ├─dbus-daemon ├─dconf-service───2*[{dconf-service}] ├─dirmngr ├─gconfd-2 ├─gvfs-udisks2-vo───2*[{gvfs-udisks2-vo}] ├─gvfsd─┬─gvfsd-trash───2*[{gvfsd-trash}] │ └─2*[{gvfsd}] ├─gvfsd-metadata───2*[{gvfsd-metadata}] ├─pulseaudio───2*[{pulseaudio}] └─tracker-store───4*[{tracker-store}]

gt; sudo smem -c pss -t | tail -1 606032 ^^^^ as commenter below pointed out this includes processes from other users. the correct figure is smem -c pss -t | tail -1 220678 Use compton if you need some bells+whistles (transparency). If you want to get rid of X.org and use Wayland[0]

@Zren2019 · in “Red Hat Expecting X.org to “Go into Hard Maintenance Mode Fairly Quickly””

After watching [VIDEO] At 18m30, he mentions that everyone uses SHM and DRI2, which don't work over the network. He mentions X isn't "network transparent" anymore, it's "network capable". I'm not 100% sure what the difference is tbh. At 40m10, he mentions that rendering on the "server" then compressing it to transfer over the network to display locally is basically VNC.

@SXX2020 · in “Xplain – Explaining X11 for the rest of us (2017)”

Really recommend that speech as well since it's give good understanding what's wrong with X11 and why Wayland was created. The real story behind Wayland and X: [VIDEO]

Strongly recommendsView on HN
@sergeykish2020 · in “The X.Org Server Is Abandonware?”

But why? X11 works. I've tried wayland in 2010, second time today. If anything today's story shows that developers do not want to work on X11 and how much we depend on Red Hat. X11 problems explained by Daniel Stone [1]. As I understand there are two parallel architectures, one uses X11 server primitives (xfontsel), another renders on client (fontconfig fc-list etc). It is very confusing. [1] [VIDEO]

@sergeykish2020 · in “The X.Org Server Is Abandonware?”

Protocol limits what is possible. Legacy defines performance. Gnome is X11 first. Wlroots in Wayland first. It should be possible to optimize Gnome. Wayland was created because of horrible X11 performance [1]. It is not Waylands prime time yet but X.Org still works and maintained. Phoronix.com should have checked contributions [2]. [1] [VIDEO] [2] [LINK]

@sergeykish2020 · in “The X.Org Server Is Abandonware?”

This criticism looks like "free as beer and I know better". 1. The old, mostly working thing waits your commit 2. That new thing can have some help too I recommend developers story about this "mostly working thing" (2014) [1]. It is quite fun and eye opening, he clearly knows his subject better than most of the comments. Wayland demo worked almost from day one. I've run it in 2010 [2]. But we need applications, that is migrating toolkits and this took 10 years. It is very toxic development culture, cancel culture, mob. [1] [VIDEO] [2] [LINK]

Strongly recommendsView on HN
@sergeykish2020 · in “The X.Org Server Is Abandonware?”

It would be nice to reproduce phoronix results. Do they run in GNOME shell? What if I run in Sway? What exactly they expect of Selenium? I've heard gedit startup example. Sorry, I can't continue until you've watched presentation [1] > gedit startup: > 130 blocking InternAtom calls > 34 blocking GetProperty calls > 116 property change requests > blocking because Xlib is terrible > usually spends 25ms waiting for requests > sometimes spends 1428ms [1] [VIDEO]

RecommendsView on HN
@sergeykish2020 · in “The X.Org Server Is Abandonware?”

[LINK] I've described context. You've confirmed it. Statement supported not by fact but by inner voice. My morale stems from Christianity, I believe Enlightenment got it right — discovery of nature is discovery of God. I've been to church, I've seen priest who shared joy. I've seen other priests, I would rather not see them. X.Org developer described what's wrong with the project [1]. Not one of the Wayland critiques addressed his points. They have no facts, they just want it to fail. Those who work hard and share for free get anger in return. Sway / wlroots maintainer (ddevault) got off the edge from this misinformation and I do not agree with him but I am not maintainer either. Where is love and God in this story? > That’s not even considering any personal goals, which I have vanishingly little time for. I get zero exercise, and though my diet is mostly reasonable the majority of it is delivery unless I get the odd 2 hours to visit the grocery store. That is, unless I want to spend those 2 hours with my friends, which means it’s back to delivery. My dating life is almost nonexistent. I want to spend more time studying Japanese, but it’s either that or keeping up with my leisure reading. Lofty goals of also studying Chinese or Arabic are but dust in the wind. I’m addicted to caffeine, again. > Less healthy ways have included walking to the corner store to buy unhealthy comfort foods, consuming alcohol or weed too much or too often, getting in stupid internet arguments, being

@sergeykish2020 · in “The X.Org Server Is Abandonware?”

Please address [1] or you don't know what you are talking about. Similar point in next post [2]. [1] [VIDEO] [2] [LINK]

@sergeykish2020 · in “On Abandoning the X Server”

Daniel Stone, The real story behind Wayland and X (Or, 'Why Everything You've Read in LWN and Phoronix Comments is Untrue') [VIDEO] And directly from ajaxnwnk [LINK] > Moreover, X works for me now and does everything I need. Someone makes pig fly all these years.

RecommendsView on HN
@dralley2020 · in “On Abandoning the X Server”

> I have an opposite view. All I can say is that nearly every single one of the former core Xorg developers has said precisely the opposite (sometimes in literal terms [0] [1]), and has switched to developing Wayland. [0] [VIDEO] [1] [LINK] > In Plasma we need Wayland support as we are hitting the limitations of X all the time. Wayland will simplify our architecture and allow us to composite the screen in the way we consider as most useful.

@kaba02021 · in “HW accelerated Xwayland rendering for Nvidia merged”

Well, you can imagine some evil behind everything if you wish.. Or just look at a technical video about it: [VIDEO] I don’t see these conteos regarding linux, especially goddamn desktop with the minuscule user share. It is literally a hobby thing for some graphics enthusiasts without any sort of money. Yeah sure, red hat or whatever..

RecommendsView on HN
@vetinari2023 · in “X12”

> I've seen commentary from people who have worked intimately on both protocols and implementations of both who consider Wayland to have the better architecture. For those interested in details: [VIDEO]

RecommendsView on HN
@ironmagma2024 · in “A peculiarity of the X Window System: Windows all the way down”

'Programming X is like reading one of those French philosophers where afterwards you start wondering whether you really know anything for sure.' [1] [1] Thomas Thurman - [VIDEO] [LINK]