From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9752 invoked from network); 24 Jun 1998 01:32:25 -0000 Received: from winnie.fit.edu (163.118.5.1) by mail2.redhat.com with SMTP; 24 Jun 1998 01:32:25 -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 VAA09902 for ; Tue, 23 Jun 1998 21:27:43 -0400 (EDT) Received: from localhost by ee.fit.edu (SMI-8.6/SMI-SVR4) id VAA01181; Tue, 23 Jun 1998 21:31:10 -0400 Date: Tue, 23 Jun 1998 21:31:09 -0400 (EDT) From: Christopher Curtis Reply-To: Christopher Curtis To: axp-list@redhat.com Subject: Re: OFFTOPIC: Re: The new X (was Re: Making programs 64 bit clean) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 23 Jun 1998, Jeff Sturm wrote: > > 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 grief. You don't expect to be able to provide a state-of-the-art API > in ANSI-C only, do you? That's how the X Consortium got into that > Motif/Xt mess in the first place. I think that it should be ANSI-C, yes, just like GTK+ is ANSI C and Win32 is ANSI C. If you want C++, that's fine, use the wrappers: GTK-, MFC, ... > Many applications don't use the color models properly. X supports > pseudocolor, directcolor, truecolor, whatever... it tries hard to use the Perhaps another model is needed so it acts like Windows/dithering. I think this is the most acclimated model. > hardware resources as best as it can. "Colormap flashing" is a reasonable > compromise on displays that are starved for colors. I agree - but is it Netscape's fault that it completely starves the dpy? > Solaris's X server may be badly broken, I don't know. I have one Sun box > here; I can't run Netscape on the console (it dies with a bus error) but > it runs fine from my PC with the free Microimages X server. > > Anyway, with video cards as cheap as they are nowadays, why should anyone > be stuck with 8bpp color? Because they buy Suns. The new ones may help having a PCI bus, but that has yet to bee seen. > There *is* an event mask. Most applications don't utilize it, and accept > all events (ignoring those it doesn't need). Mouse motion is a big one. > Run an xterm over a dialup, move your mouse and see if your modem lights > blink. They wont't. BTW xterm is really quite useable over a dialup, > because the author actually made an attempt to conserve bandwidth. I stand corrected. I never had a problem with an xterm over a dialup. Frame is virtually unusable. > This is yet another example of programmer laziness. > Font servers weren't intended to be local. They are network resources. > They address the problem of having to distrubute fonts to each display > server. Unfortunately they are not widely implemented. Most machines, especially anyone with a Redhat installation is not set up for any kind of networking. My entire lab here is networked (~15 Sparcs) but each machine uses a local copy of X and of the Xfs. However, things like TCP wrappers share a common configuration file. I would not want to administer this lab if all the machines had redhat on them. (15 /etc files to edit to ban another host?) > You admit you are not an X expert in one sentence, then claim the > deficiencies in X cannot easily be repaired. You are criticizing X from > a user's point of view, not from its architecture. The configuration I may be completely off, I've stated that repeatedly - but I don't see things being adopted wihtout many old programs being rewritten, and if that is the case, why not look at some other stuff that could be rewritten, even if it means breaking compatibility? For instance, and I'll keep this short, see if the X protocol needs an overhaul, see if event masking and colormap manipulation could be clearer, get all that optimized, scrap Xt with a toolkit with built-in dialogs, and ship new (ported) apps that use the new toolkits. I mean, if you download and compile X from TOG, including the example programs, you get a bunch of black and white boxes with depthless buttons and the twm window manager. That is horrible. I realize that's what KDE and GNOME, etc, etc, are for, but is that the end? Can't some of this be brought to a lower level? For instance, instead of passing around X events, pass toolkit events. Now, opening a drop-down menu is instantaneous over a modem. A file open dialog is a couple of control sequences. In this sense, WinFrame is very efficient. I think the same can be done with X if we make things work on a toolkit level. Will this break existing apps? You can bet your bottom dollar. So is it worthy a rewrite? I think so. Others? I dunno... > WinFrame is very expensive on the application server. Try to connect 5 > users to your WinFrame server, then 10, then 20. Watch what happens to > memory/CPU utilization. > > This claim is absurd. What makes WinFrame over win32 a better hack than LBX? Well, that's because WinFrame is doing what windows was not designed to do. Again, I could be completely off, but what I read of WinFrame (back when it was designed to display Win32 stuff on OS/2) was that it was an extremely efficient protocol, and very much usable on a 14.4k modem. > Instead of bashing X, why not think of real ways it can be fixed? > Starting over with a new window system from scratch is *not* the > answer. We need something that will be done before 2010... That is not what I proposed. I, in general, like X very much. And I have thought of things to improve it. The only problem is that it seems to me that it would come at the cost of breaking backward compatibility (something unix in general does quite frequently anyway), but if it's going to be done, I think that the immediate future is a better time than any, and the Windows stranglehold gets only stronger. My feeling is just that backwards compatibility with existing X can make the advancement of X where it is needed most (the UI/Toolkit layer, imho) difficult to impossible, and almost certainly impossible without horrible hacks. Then, while designing this new system, why not take the opportunity to see if there are other areas in which X can be "cleaned". I don't think I want (don't consider this a proposal) anything that is extremely off the wall here. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/