TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Write a Wayland Compositor [video]

114 pointsby pantalaimonover 2 years ago

10 comments

esjeonover 2 years ago
Not really a relevant thing to talk about here, but I find there&#x27;s this trend in Linux ecosystem that people are explicitly implementing more and more policies on the code level instead of making flexible abstractions and data-fying user decisions. I&#x27;m not talking about exposing user-friendly configuration options, but is about mechanism-over-policy. The presenter mentioned &quot;use-case over mechanism&#x2F;policy&quot;, but, given a good mechanism, use-cases are just policies.<p>Although I do understand the value of the current approach in the industry (i.e. MVP), I think it does come with a cost - you get a large corpus of low density code that gives a lot of surprises in many different corners. Redhat-funded projects are really leading this trend (I&#x27;m looking at you systemd, the project). If you read their code, you&#x27;ll instantly notice that they are becoming more and more labor-intensive, and less and less hacker-friendly. We are losing smartness for the sake of grunting.<p>Some might think Wayland is a smart approach, but it&#x27;s actually not. It&#x27;s mostly just pure grunting - a showcase of large engineering horsepower. It&#x27;s a large-scale refactoring &amp; optimization of the modern day X11 desktop ecosystem. Everything works in the exact same way, but things happen in <i>slightly</i> different places, and some features are banned by policy (arbitrarily outlined by wayland devs). These missing <i>special</i> features now need to be implemented explicitly as &quot;protocols&quot;.<p>Now, I really want to ask - where are we heading here? Are we really stepping forward? I don&#x27;t think so. We&#x27;re just going side ways.
sylwareover 2 years ago
Waiting for the steam client to have wayland-&gt;x11 fallback runtime tables of functions. xwayland is there for software which has no more technical maintenance (not the steam client, yet).<p>But I plan to write my own wayland compositor, probably based on linux dma-buf, like the one running on the steam deck (basically an improved fork of valve one).<p>And in assembly, x86_64 at first, but I am lurking on risc-v.
guerrillaover 2 years ago
from scratch or with wlroots?
评论 #34186514 未加载
评论 #34186372 未加载
bullenover 2 years ago
I&#x27;m still using TWM.<p>Next I&#x27;ll just install xserver. A menu is clutter.
pengaruover 2 years ago
This talk hurts to watch.<p>All the block diagrams prominently putting systemd-logind between X11&#x2F;Wayland-compositor are <i>very</i> misleading, and seems likely to create more misinformed ire for systemd.<p>systemd-logind is basically just an arbiter of the seats for reasons like you can only have one drm-master on a given drm device at a time. It&#x27;s <i>not</i> involved in all X11&#x2F;Wayland-compositor&lt;-&gt;kernel interactions. Once the seat has been acquired it gets out of the way. That should not be some huge box right in the middle of the two.<p>You can trivially confirm this by stracing systemd-logind on your system while interacting with your desktop. It&#x27;s just sitting idle in epoll_wait().
评论 #34194426 未加载
wing-_-nutsover 2 years ago
I really wanted to like wayland as the &#x27;next big thing&#x27;, but for the life of me I can&#x27;t.<p>* I&#x27;ve yet to see any actual, honest to god benefits for the <i>end user</i>. Literally everything I&#x27;ve seen is the fact that it makes development easier for the wayland devs and harder for literally everyone else.<p>* Trying to use a wayland window manager outside of gnome or kde leaves you reliant on a bunch of hackish utilities (redshift, taskbar, screen recording &#x2F; sharing, etc) which are available on AUR and basically no where else<p>* Scaling and perf for xwayland apps (i.e. most apps) is pretty bad.<p>Is wayland the future? Maybe, but I&#x27;ll happily use xorg for the next decade if needed until the user experience is rock solid over on wayland.
评论 #34187227 未加载
评论 #34190565 未加载
评论 #34190693 未加载
评论 #34187536 未加载
评论 #34187525 未加载
评论 #34189732 未加载
评论 #34190408 未加载
评论 #34193455 未加载
评论 #34194306 未加载
评论 #34187226 未加载
评论 #34192608 未加载
评论 #34192749 未加载
评论 #34187231 未加载
yxhuvudover 2 years ago
I&#x27;d rather not. More people should write wayland clients though, and complain to the makers of existing compositors where they fall short. Which is in a lot of places, and they are definitely not sufficiently robust.
评论 #34190609 未加载
评论 #34189548 未加载
fhackenbergerover 2 years ago
Bit off-topic: My major pain point a while ago was that Gnome-shell crashes take down all running applications. Is that still the case?
评论 #34190663 未加载
评论 #34189555 未加载
LAC-Techover 2 years ago
Is it worth switching to Wayland? Can&#x27;t tell if we&#x27;re at the point where the momentum has shifted or not.
评论 #34190869 未加载
评论 #34190716 未加载
评论 #34191397 未加载
评论 #34189796 未加载
selfhifiveover 2 years ago
Does screen sharing work on wayland now?
评论 #34188381 未加载
评论 #34190729 未加载
评论 #34188447 未加载
评论 #34188536 未加载
评论 #34205429 未加载
评论 #34188800 未加载