10 ms·
X Window System Basics (2014)
- trashburger 4y agoMake sure to read the chapters after it by clicking the right arrow too, it gets better.
- MonkeyClub 4y agoIndeed the site is a little treasure trove! You can get to all the contents here: https://magcius.github.io/xplain/article/index.html https://magcius.github.io/xplain/article/index.html Summary of the contents: i. Introduction & Table of Contents ii. X Window System Basics iii. Advanced Window Techniques iv. Adding Transparency v. Regional Geometry vi. Basic 2D Rasterization
- tabtab 4y agoDoes anyone know of a project that puts an XML wrapper (markup) or command line interface around X Window? That way one can use or interface with an X Window "browser" without writing C.
- throwawaybutwhy 4y agoMaybe xdotool [0] is what you're looking for. [0] https://github.com/jordansissel/xdotool/ https://github.com/jordansissel/xdotool/
- deleted 4y ago[deleted]
- LtWorf 4y agoYou might want to check dbus… most desktop applications have a dbus interface. I normally use qdbus from command line.
- ktpsns 4y agoXML interfaces are common in toolkits, look at Guile for GTK or Qt Quick/QML. One of the ancient X window toolkits was the Athena widget set (baked in most X servers, https://www.x.org/releases/X11R7.7/doc/libXaw/libXaw.html https://www.x.org/releases/X11R7.7/doc/libXaw/libXaw.html). I don't know from XML interface to design Athena GUIs.
- buescher 4y agodtksh did that, more or less. not with xml. https://www.brendangregg.com/dtkshdemos.html https://www.brendangregg.com/dtkshdemos.html
- commandlinefan 4y agoI continue to be amazed that X is still around. I can sort of understand why it was done the way it was done back when it was first created (although even then, the concept of running the actual code remotely but the X server locally seems strange). There must be more efficient ways to organize a graphics library now; it seems like X continues to be the Linux standard from inertia.
- lproven 4y ago> X continues to be the Linux standard Part of it is, of course, that it is not just the Linux standard. It's also the FreeBSD, OpenBSD, NetBSD, DragonflyBSD, GNU HURD, Minix 3, Solaris, OpenSolaris/Illumos, AIX, HP/UX, z/OS, and OpenVMS standard. I am sure I missed some currently-maintained OSes in there. X is a core part of the interoperable, cross-platform, open systems world, as it has been for decades. Since most of those will never undertake large new development now, it will probably never be replaced in this, but some of those systems will keep running the world for decades to come, until the collapse of technological civilisation. Personally, since nobody can kill off or totally replace X, my suggestion is that we collectively decide what bits we don't need any more, and cut it down to the core stuff that we need to keep. Byte-swapped clients just were banished. Why not get ruthless and strip out all the ancient stuff that nobody uses in the 21st century, keep just the essentials, and call the result X12? I am no expert in this area but I gather that most of the font server stuff is obsolete now. It is probably safe to assume only 24-bit colour now. In the mid-1990s I ran X11 over DECnet on VAX/VMS. I am sure everything but TCP/IP can go now. I am willing to bet there is lots of other stuff that could be removed, leaving a smaller, more maintainable core that someone somewhere is going to need for years to come.
- 59nadir 4y agoI'll be honest, it's embarrassing the amount of issues my friends who use Wayland have with basic things like sharing screens, global hotkeys for applications (push-to-talk in Discord is somehow an issue) and other things. I chose Xorg for a new install I did coming back to Linux and I'm super happy I did. Everything just works; even the stuff that I was worried wouldn't (differing resolutions on my monitors was something I expected to have to "deal with" somehow and I just never had to). I think Wayland is an admirable project in a lot of ways, but it's practically speaking a bit of a disappointment. In 5-10 years they're likely to have sorted stuff out and it's probably going to be worth switching to by then.
- simplicio 4y agoFeel like HN should start a collection to pay the author to finish the series, since it shows up here every few months, but the writer has (understandably) not had the time/inclination to complete it.
- Jasper_ 4y agoAuthor here. I left the Linux world 6 years ago, though my passion for making this kind of educational content has not faded. These days, I work in the games industry, and make videos explaining game graphics concepts. https://www.youtube.com/watch?v=By7qcgaqGI4 https://www.youtube.com/watch?v=By7qcgaqGI4 I left a small retrospective the last time this got posted here. I believe what I’m doing now is far more interesting. https://news.ycombinator.com/item?id=21041340 https://news.ycombinator.com/item?id=21041340
- deleted 4y ago[deleted]
- JustSomeNobody 4y agoCurious and slightly off topic, but does anyone know of a good tutorial on writing a basic GUI library (windows, widgets, composition, etc)? I have no intention of writing one in any usable sense, but it would be cool to write up a toy one.
- tredre3 4y agoThere are two good books I can recommend regarding the design of X11 and how windowing, widget primitive, and compositing work: - X Toolkit Intrinsics Programming Manual - X Toolkit Intrinsics Reference Manual However they have very little to do with how modern operating systems (Windows, MacOS) deal with that stuff. As for toys, I'd recommend reading about Dear ImGui [1]. It handles everything you mentioned while being self-contained so you can see how everything works from top to bottom. Many talks and articles have been written about it though I can't vouch for any of them. 1. https://github.com/ocornut/imgui/wiki https://github.com/ocornut/imgui/wiki
- nesarkvechnep 4y agoOnly slightly off topic?
- dang 4y agoRelated: Xplain – Explaining X11 for the rest of us (2017) - https://news.ycombinator.com/item?id=24197528 https://news.ycombinator.com/item?id=24197528 - Aug 2020 (89 comments) X Window System Basics (2014) - https://news.ycombinator.com/item?id=21118633 https://news.ycombinator.com/item?id=21118633 - Sept 2019 (20 comments) Xplain – Explaining X11 for the rest of us - https://news.ycombinator.com/item?id=12042548 https://news.ycombinator.com/item?id=12042548 - July 2016 (44 comments) XPlain – Explaining X11 for the rest of us - https://news.ycombinator.com/item?id=8019346 https://news.ycombinator.com/item?id=8019346 - July 2014 (65 comments) Xplain: Explaining X11 for the rest of us - https://news.ycombinator.com/item?id=6978274 https://news.ycombinator.com/item?id=6978274 - Dec 2013 (19 comments)