News for hackers. Stuff that matters.
Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @12:25PM (#22495712)
X is kind of amazing.

Once, just for fun, I had an SGI do window management, another one serve up fonts, a linux box serving apps via NFS, and yet another headless SGI running a shared app displayed on yet another Linux machines X window server session.

It was surreal. Launch that app, and all those machines contributed to the interaction of it.

Plus, it made that instance of RH Linux look like an SGI. 4dwm has a distinct look and feel.

For the most part, running over a 100T network, one could not tell all that was happening. (Was a high end CAD app.)

Later, I did run that same app remotely, using its Windows NT build and the Exceed X server for Win NT. Cool.

Re:The X-Windows Disaster (1994) by technofiend on Thursday March 05, 2020 @01:06PM (#22496201)
DEC or HP (I no longer remember which) wrote a cool demo that had a fish swim across as many displays as you gave it. It properly rendered the fish split across display edges. With walls of displays being so common now it doesn't sound like much but at the time it was a pretty slick demo of X window and its network capability.
Re:The X-Windows Disaster (1994) by LargoLasskhyfv on Friday March 06, 2020 @04:21AM (#22502146)
Sounds like http://dmx.sourceforge.net/ which is part of X.Org since release https://www.x.org/wiki/Releases/6.8/ from 2004.
Re:The X-Windows Disaster (1994) by technofiend on Friday March 06, 2020 @11:39AM (#22504947)
No this predated all that. I saw the demo in 1991 or 1992; you had a simple flat file with a list of displays to use or could supply it on the command line. The program itself had to do all the heavy lifting to determine how much of each fish to put on each display.
Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @01:09PM (#22496232)
That's cool
Re:The X-Windows Disaster (1994) by donio on Thursday March 05, 2020 @01:43PM (#22496624)
That chapter was dumb even when it came out. X is awesome and it's amazing how well it has stood the test of time. I am not looking forward to the day when I won't be able to do half the things I do today with my EXWM setup because we needed to have "every frame perfect".
Re:The X-Windows Disaster (1994) by catblast on Friday March 06, 2020 @12:24AM (#22501188)
Agree to disagree then. X is shit. I remember first reading that chapter in 1998, and it resonated then just as well as it does now. X is shit. It is the weirdest abstraction of network "transparency" which inevitably manages to require state on both ends of the network connection -- it isn't robust. How well does your X session do when there is a network hiccup?

The protocol is round-trip heavy. Even with xcb, X clients need to make a tremendous number of round-trips, especially early on. There have been mitigations for X for low bandwidth links, but X networking has never been usable on high latency links. Ever forward X on an airplane? I pity you.

The drawing model of X is an antiquated relic. Server side rendering is pretty much useless, such that X has basically become a sort of bastardized inefficient VNC.

There's a reason no widely used screen remoting or thin-client system uses the X design. It was a poor idea then, and it is still deficient today.

Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @02:05PM (#22496870)
It is like UNIX.

The people who created X thought multi user graphical computing all the way through.

We may decide that should not be a thing.

I think we will struggle, some time will pass, and then it will be a thing, meaning X will just get reinvented.

Re:The X-Windows Disaster (1994) by netsharc on Thursday March 05, 2020 @05:34PM (#22499074)
Probably using a node.js background, websocket, and DOM-manipulating JavaScript.. or WebGL for performance..
Re:The X-Windows Disaster (1994) by bitwize on Thursday March 05, 2020 @08:24PM (#22500255)
It will only take up a couple of GiB of RAM to display hello, world.
Re:The X-Windows Disaster (1994) by unlinked_dll on Friday March 06, 2020 @12:46AM (#22501261)
More like 200MB but who cares? RAM is cheap(er than CPU cycles and developer salaries)
Re:The X-Windows Disaster (1994) by bitwize on Friday March 06, 2020 @02:33AM (#22501666)
Well, I projected forward a few years and imagined how it would be when software "evolves" and becomes more "modern".
Re:The X-Windows Disaster (1994) by pjmlp on Friday March 06, 2020 @03:09AM (#22501808)
That is NeWS being reinvented, with JavaScript taking the place of Postscript, not X.
Re:The X-Windows Disaster (1994) by catblast on Friday March 06, 2020 @12:27AM (#22501204)
That reinvention happened years ago, and it is in the likes of things such as Citrix -- which has existed for years now. It is used widely in industries outside of software development.
Re:The X-Windows Disaster (1994) by ddingus on Friday March 06, 2020 @03:09AM (#22501809)
Those work great, honestly.

What I really mean by "reinvent" is the multi-user graphical computing model itself.

We've done a stellar job pushing a desktop out to someone. I've used a variety of these things, from the basic VNC on up, and they are pretty great. The better ones are damn tough to differentiate from local UX. People are running CAD on stuff like Citrix and it works. Better than one might expect too.

That's more like plucking out the killer use case and optimizing it. Great move, worth it, not bad, etc...

There are a lot of ways to use computers, and applications though.

X, warts and all, did offer up pretty fantastic flexibility and usability (when apps were well realized).

A few things:

Today we've got cloud computing, local computing, mobile computing, wearables. Lots of displays, more coming.

Thinking about it from the X POV, sort of how they thought about it back then, that looks an awful lot like:

Application server, desktop computer, other computer. They envisioned more than one person using a single computer. Multiple people using multiple computers, multiple people using modest computers to do UX with one or more powerful ones.

And on that point, I used to use multiple powerful computers with a single modest one all the time.

Maybe rethinking it again, like they did with X back in the day, would push the boundaries some. Who knows what people would do?

Someone walks into a room, has presentation on their wearable, and pushes it's display to a nearby machine, or both display and UX. They keep their data where it lives, on their device, but can benefit from the more robust UX.

Mobile computing devices are getting really powerful. Run an app on one from a laptop, easily, again, perhaps keeping data local to the mobile, for whatever reasons.

Just spitballing here, but the general thought I was trying to convey, without realizing it earlier, is maybe rethinking things from the basics forward, allowing for a lot of options, possible options, just might shake out other ways to do things, use all these crazy devices.

Or not, just musing.

Re:The X-Windows Disaster (1994) by astrodust on Thursday March 05, 2020 @07:29PM (#22499959)
X in all of its ugly glory was and is still better than RDP.
Re:The X-Windows Disaster (1994) by dagenix on Thursday March 05, 2020 @10:38PM (#22500805)
I'm thinking you may not have actually used RDP over a medium-to-low bandwidth or medium-to-high latency connection. Because RDP is still usable and X is a laggy mess.
Re:The X-Windows Disaster (1994) by wnoise on Thursday March 05, 2020 @11:30PM (#22501008)
Xlib, the original C binding to the protocol is not great in that situation, because it makes many asynchronous requests look synchronous. Most toolkits are pretty terrible in that situation. libxcb instead of Xlib can be a great improvement as it exposes what can be asynchronous (though it often isn't used well).
Re:The X-Windows Disaster (1994) by kjs3 on Thursday March 05, 2020 @11:20PM (#22500962)
I regularly ran X over ISDN back when that was a thing. Framemaker wasn't exactly snappy, but it was usable. Lighter stuff was fine. Watching contemporary RDP keep up over 64k was painful.
Re:The X-Windows Disaster (1994) by catblast on Friday March 06, 2020 @12:17AM (#22501166)
With server side font rendering all but forgotten among other things, any modern app will struggle over a low bandwidth link well. And X has always been crap for latency, even with xcb, it ends up being very round-trip heavy. Modern technology has addressed the bandwidth problem, but has a much bigger challenge with the second.
Re:The X-Windows Disaster (1994) by throwaway2048 on Friday March 06, 2020 @12:59AM (#22501302)
Modern RDP can do seemless remote audio and full 60fps video and 3d graphics, on windows servers. Linux server stuff like libvirtd just uses it as a glorified VNC.

It blows away x11 forwarding.

https://xpra.org/ is a vastly superior solution for linux servers.

Re:The X-Windows Disaster (1994) by pjmlp on Friday March 06, 2020 @01:40AM (#22501442)
I use RDP regularly since 2011.

Don't miss remote X a single minute.

Re:The X-Windows Disaster (1994) by kevin_thibedeau on Thursday March 05, 2020 @12:50PM (#22496022)
I like being able to run a Linux desktop in a VM on windows and "extend" to another monitor with VM X apps rendering to a Cygwin Xorg instance. Wayland can't do that.
Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @12:55PM (#22496077)
Yup. In my humble opinion, the people who built X really did think through what multi user graphical computing meant.

I like X. Took me a while to understand it, but once I did, I used it hard and appreciated what it allowed me to do.

Doing stuff like dual or multi head computers. Multi users each with their own keyboard and mouse can happen with X. And if one needs another user, doing it via network just works.

X is a powerful thing.

Re:The X-Windows Disaster (1994) by Gnurou on Friday March 06, 2020 @12:55AM (#22501290)
> I like being able to run a Linux desktop in a VM on windows and "extend" to another monitor with VM X apps rendering to a Cygwin Xorg instance. Wayland can't do that.

This should be possible with virtio-wayland:

https://alyssa.is/using-virtio-wl/

It's pretty new and not used outside of Chrome OS (to run Linux apps) at the moment though.

Re:The X-Windows Disaster (1994) by cycloptic on Thursday March 05, 2020 @01:10PM (#22496246)
There is no reason wayland couldn't do that, other than that your compositor doesn't support the concept of virtual screens. I can't say that this is a very high-priority feature for any compositors at the moment.
Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @01:31PM (#22496470)
And that is why X is kind of amazing. They thought it all through.

Today, it is a game of which pieces make the most sense, and whether multi user graphical computing should be a thing.

We know it can. X did all that.

Should it?

Re:The X-Windows Disaster (1994) by cycloptic on Thursday March 05, 2020 @01:58PM (#22496791)
As far as Wayland goes, that is up to the developers and users of those compositors. The protocol itself supports the concept of multiple seats.

I can't speak for all the original X developers but TFA seems to suggest that they didn't think it all through.

Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @02:09PM (#22496916)
When X is matched, then we can discuss whether that is true.

Currently, it's not. That does not make current efforts bad. I think they are quite nice.

They just do not yet actualize the vision X did and does today.

Whether that is wanted / needed is also an open discussion at this time.

Re:The X-Windows Disaster (1994) by cycloptic on Thursday March 05, 2020 @02:19PM (#22497051)
It won't be matched unless someone sees enough of a need to make it happen. Wayland the protocol doesn't have an explicit goal of doing everything that X did. The design is different.

As far as I can tell, the original vision of X was to unify all the proprietary Unix vendors with a standard windowing protocol. The network capabilities happened because they wanted to support dumb terminals connected to mainframes. Most of those proprietary Unix vendors are now gone. Currently it's not clear to me what role X is supposed to have, if any.

Re:The X-Windows Disaster (1994) by ddingus on Thursday March 05, 2020 @02:34PM (#22497216)
The role is multi user graphical computing. I made comments elsewhere in thread about that.

We may find or choose for that to not be a thing.

Ok, fine.

The X window people did make that a thing and the end result is powerful and flexible.

None of that makes efforts like Wayland bad. They aren't.

But they, by your own definition, are a subset of what X is too. They aren't thinking it through, by design. That is OK.

Re:The X-Windows Disaster (1994) by cycloptic on Thursday March 05, 2020 @03:58PM (#22498158)
Wayland (the protocol) supports the necessary bits and it's up to the compositors if they want to go the extra mile to support everything.

My own personal take is that most compositors won't because X does not represent multi user graphical computing in the way that most people use it today. That role is fulfilled by web applications.

Re:The X-Windows Disaster (1994) by pjmlp on Friday March 06, 2020 @06:12AM (#22502695)
Commercial UNIX vendors, Xerox, TI, Genera, were already doing that before X was created.
Re:The X-Windows Disaster (1994) by the8472 on Friday March 06, 2020 @12:10AM (#22501142)
The compositor would have to talk to the virtual GPU driver to allocate additional surfaces on the host and make them available to the guest.

The next best alternative currently is looking glass[0]. Linux host with GPU1, Windows guest with GPU2 via pass-through and then copy the framebuffer from the guest to the host.

[0] https://looking-glass.hostfission.com/

Re:The X-Windows Disaster (1994) by glangdale on Thursday March 05, 2020 @10:16PM (#22500715)
Agreed. And I may be showing my age, but I learned C and C++ on singles MIPS boxes (R3000 processors) shared between 20 users, all on X terminals. The thought of sharing 1 32-bit processor running at 25Mhz between 20 people running any kind of graphical environment it pretty wild by today's standards.
Re:The X-Windows Disaster (1994) by ddingus on Friday March 06, 2020 @01:47AM (#22501470)
I am just gonna ramble for a minute. Plz either indulge or ignore. I miss this stuff! Thanks.

I would have loved to profile that little system. It's crazy how lean those older systems really were.

A 30Mhz R4K could play MP3 files streamed via NFS. (90 percent CPU utilization, not headless, with local desktop logged in and active) I had one, at that clock useless by the time I got it, doing just that, because why not? After reading your comment, I realize I had a machine just playing a compressed audio file with the resources needed to serve 20 of you a useful computing environment!

What kind of network were you on? Was it even ethernet? 10T?

My first multi-user experience was horrible! It was on a 386/25, running Xenix and it had capacity for 16 users via either 19200 or 9600 baud SERIAL and VT100 terminals... I had 12 users at peak on that one, and most of them ran multi-user WordPerfect and some MRP thing, Symix, I think.

I got the job because I read all the manuals. First sysadmin post and it was a pig. Learned a ton though! Enough to realize I could have a lot of fun on the better UNIXes, and scored a position working with SGI computers.

(in that timeframe those computers with all the spiffy software so well engineered were like computing from the future, so much fun)

Another time, while doing sysadmin on an SGI Irix multi-cpu Origin system serving some 30 users doing high end cad, I did some data logging.

That system had 16GB Ram, 4 R12K CPU's with super fat caches, dual homed 1000T ethernet, BTW. I forget the clock. Probably 400Mhz

I logged user activity every few seconds for roughly a week. This was an effort to see whether overall system speed was impacting productivity. I had a few users grumble during a peak time, so...

Learned a few things:

The system itself could perform near max capability when there were 4 concurrent user CAD demands. OS overhead was a few percent tops, in almost all circumstances. This was not in of itself any kind of issue. Irix ran pretty damn lean.

Once in a blue moon, the system would page, but the Irix file caches are gold. This never really was an issue either. Maybe for a few minutes at a time during a serious push tops.

A few times per week, usually on a Friday, they would max it out, and more than 4 concurrent, high demand sessions would be present. Deffo slowdown.

Among the users, the average full compute demand was roughly 2 minutes. Some instances of this were longer for power users working on more substantial models. 5 to 10 minutes. These were sporadic, during the day. The reason was simple, and it was a model recompute. Happens as users roll up all their changes.

Interestingly, light duty users, doing detail drawings, or minor model updates, sustaining engineering type stuff, they used the system heavy, perhaps 60 percent of their workday, but rarely hit peak single core compute for more than a few seconds at a time. Was hard to even see these. They did not really do big recomputes, but they did do the occasional big drawing render, and those were as bad as the power users. But not even daily.

Most users hit the system both harder and less frequently. 20 to 30 percent of their day, but did post up regular ~2minute single core max compute demands. These people were working on sub systems, and would often copy one, modify, update, check it in, done, next.

The power users hit the ~5 to 10 minute peak compute and used the system half the day. They were working at the entire product level. Big demands on RAM, CPU, Network. Multiple times daily.

What I did was put local compute resources in front of the power users and restructure the network to give them a quieter, higher throughput subnet.

There were a few of these users. They did became network bound, as the data transfer was significant compared to everyone else running on the main server, with high throughput disks. (15K RPM Cheetah drives) This impacted their get going times, but they only did that occasionally. Once things got cached locally, non issue overall. They adjusted how they work and marginalized it. The biggest saving was honestly to just keep it logged in, screen locked, etc...

The rest of the users reported a significant speed up after these things were done.

Now, here's the thing!

A second data logging actually did show the power users improve. And they responded by burying those boxes, opening up a second session on the main one to continue. LOL, fine. It was good enough before, so I said nothing. They were power users and working at the product level and gains there paid off nicely in terms of total project capacity per year. No worries. There to help, blah, blah. But I did chuckle about them very rapidly figuring out how things worked.

(They used the excellent virtual desktop feature in the 4dwm window manager common to SGI computers. One click and they were viewing their local session, one more click and they were viewing their remote one, next.)

But everyone else demonstrated no real change!

The data just was not there to support a big gain, and it totally was not there after the power users did their thing by running two sessions anyway.

So, what was it?

Turned out to be network. When I put the local compute where it needed to be, we moved some switches and had inadvertently improved load balancing at the physical layer. Some users, prior to this, were basically blocking others.

Latency went down for everyone, and average throughput went up, and that proved to be the single most gratifying improvement for them, and it was just faster interactive response. No effective change in actual compute / time unit available, nor demanded from them.

The parallels today are obvious. Get that page response time down. Effective throughput, what users can get done may bump up a little, but the vast majority won't do it.

But, their feel, perception will ramp right up to the positive.

This is true even when it comes at the expense of other things maybe being slower, taking longer. Just get them feedback NOW, and they will feel better about it all anyway.

Re:The X-Windows Disaster (1994) by glangdale on Friday March 06, 2020 @04:41PM (#22507597)
Interesting story. Some design issues don't change!

We were on Ethernet - old fashioned 10Mbs Ethernet (I think) with physical "taps" into a shared medium and terminators on the end. This is easy to remember as I recall the class doofus one day sitting there absently chucking an object up and down in his hand, while people angrily wondered why a whole string of Xterms weren't working. Duty programmer storms into the room and confiscates the item and plugs it in again.

This same guy, a couple years later, manages to helpfully try to remove "." files from someone's directory while logged in as root, and manages to remove all of the honours students' home directories.

Re:The X-Windows Disaster (1994) by ddingus on Saturday March 07, 2020 @12:14AM (#22509885)
One of my early networks was that kind. It is 10T. Roughly a megabyte per second.

What a doofus! I made a few rookie mistakes, but none that basic and painful.

Yeah, some things don't change. I have come to realize that is because people pretty much work the same way. Context changes, but the core doesn't.