From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11125 invoked from network); 22 Jun 1998 22:59:46 -0000 Received: from winnie.fit.edu (163.118.5.1) by mail2.redhat.com with SMTP; 22 Jun 1998 22:59:46 -0000 Received: from ee.fit.edu (yacht.ee.fit.edu [163.118.30.1]) by winnie.fit.edu (8.8.7/8.8.7) with SMTP id SAA15525 for ; Mon, 22 Jun 1998 18:55:07 -0400 (EDT) Received: from localhost by ee.fit.edu (SMI-8.6/SMI-SVR4) id SAA21576; Mon, 22 Jun 1998 18:58:32 -0400 Date: Mon, 22 Jun 1998 18:58:31 -0400 (EDT) From: Christopher Curtis To: axp-list@redhat.com Subject: The new X (was Re: Making programs 64 bit clean) In-Reply-To: <19980622175002.D13320@xcski.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 22 Jun 1998, Michal Jaegermann wrote: > Christopher Curtis writes: > > > > ... yet another reason to replace X with a more modern system. > > > Any examples, preferably with at least a working prototype, of > this "more modern system"? Sorry, no. =) On Mon, 22 Jun 1998, Paul Tomblin wrote: > If there were such a thing... The "www.berlin-consortium.org" have a very ambitious project if it is still active, but it is far from what I would consider ideal. > Note that in order to produce such a thing it would have to be: > - network transparent Absolutely. Additionally, it would have to better support low bandwidth environments like 28.8k modems. When X was designed, it was ethernet or token ring or 1200 baud modems, and they figured it was futile to try to make it run over 1200 baud (quite correctly, in fact). However, in making this decision they decided to forego and bandwith considerations at all. The hack-on LBX extensions serve as a primary example. > - portable as all hell Absolutely. Much more judicous use of unions is needed. > - upwards compatible with X servers/clients. Not necessarily. It will need a X server client of it's own (that is, it's own version of eXceed). > - truely object oriented instead of the half-assed "objects in C" like Xt and > Motif currently do. Absolutely under no circumstances whatsoever. ANSI-C *only*! This is one of my biggest gripes with the Berlin people. The next is the registry. > - Good support for accelerated hardware without cutting out "normal" hardware. This is the prototypical driver issue. > I think you could achieve something like this with a new API that still spoke > X protocol underneath, providing it wasn't any slower than raw X. Implement > it in C++ and Java to start, then turn it over to the community to do "my > favourite language" bindings. I suppose Java is a possibility, but I'm a horrid C bigot. I think it's better to simply address the major failings of X and try to reimplement a better option. There's a lot of "Why X sucks" links out there as is for me to go into the details here, but the biggest failing is in colormap handling. Run X in an 8-bit display sometime for a while. Under Solaris anyway, colors disappear in time. Netscape (with the -install option) eventually fades to a very monochromatic grey scheme. Loading it without -install means other programs won't run (like the GIMP). And with -install, there's colormap flashing, which really sucks when playing xboing. Frame Maker doesn't even have the -install option and appears with no highlights or shadows - everything is just one big block. KDE is the most amazing window manager in this respect, but the problem persists. The next problem of X is the bandwidth. X is virtually unusable across an ISDN, and only marginally better across a T1. A lot can be done here with built-in proxies for, eg, window manager bitmaps, and at a minimum RLE compression. Now, I'm no X expert so I may be way off base here, but another thing that would be nice is an event mask. A lot of applications don't care when the mouse moves over them - these don't need to be transfered. Neither do enter/exit messages. Sad to say, but common dialogs would also be nice - or at least a method of caching and transferring fixed dialogs so the entire window doesn't have to be transferred. Then there's the font server. Having a remote display uses the local font server. This is very confusing and can be quite a limitation. I would think that at a minimum the font servers should be able to query one another. Additionally, X should not hang when the font server does it's thing. I do think that whatever replaces X should be fully multithreaded, even if that means less portability. :( These are my major gripes with X, but they are not ones that are easily repairable - they are faults intrisic to the system. However, a new defaults mechanism is also needed. There should, IMHO, be three configuration files for each program - one in .../app-defaults, one in .../app-defaults/fixed, and one in the user's home directory - just like the setup for Pine. There should be *NO* registry. To be honest, there are some things for X to learn from Windoze. The WinFrame stuff is pretty efficient (of course, done so at the expense of configurability, but nonetheless...) -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/