Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: cbbrowne@hex.net
To: axp-list@redhat.com
Subject: Re: The new X (was Re: Making programs 64 bit clean)
Date: Mon, 22 Jun 1998 22:33:52 -0400	[thread overview]
Message-ID: <19980623033352.2576.qmail@wolfe.brownes.org> (raw)
In-Reply-To: Your message of "Mon, 22 Jun 1998 20:54:44 -0400." <Pine.GSO.3.96.980622203317.18382I-100000@yacht.ee.fit.edu>

> On Mon, 22 Jun 1998, Paul Tomblin wrote:
> 
> > For the purposes of discussion, lets call this new windowing system "Y"
> > 
> > Quoting Christopher Curtis (ccurtis@ee.fit.edu):
> > > 
> > > > - 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).
> > 
> > I'm confused.  You mean a client that runs on an X server that implements a
> > "Y" server?  Because you'd need some way to make sure the thousands of X
> 
> Nope - it will need a program that runs under "Y", that *is* an X server.
> This would allow X clients to talk to the X server, which is itself a "Y"
> client.  Just like eXceed is an X server for "Y"indows.
> 
> > clients still run, and you'd also hopefully want to still run on all those 
X
> > servers out there.  Do I have to mention my NCD X-terminal here?
> 
> Your X server would be obsolesed.  It would still run X programs, but not
> "Y" programs.  Unless, of course, someone wrote a "Y" server for X.

This being rather unfortunate.  There's still a remarkable amount of useful 
old hardware out there.

If you obsolete equipment, then there will be a proportion of people that will 
reject your "cool" Y server.  If it at least provides a "translator server" 
that would be a "proxy" that would allow supporting X11R5 servers, even with 
somewhat degraded performance, that would be better than nothing.
 
> > > Absolutely under no circumstances whatsoever.  ANSI-C *only*!  This is on
e
> > > of my biggest gripes with the Berlin people.  The next is the registry.
> > 
> > Registrys are for idiots, but I disagree entirely about OO.  There are a lo
t
> > of things that OO does really badly, but windowing systems is one of the
> > things it's good for.
> 
> I do not discount the benefit of OO - as long as you do not discount the
> bloat (at least of C++).  I like the whole OO *idea*, but the
> implementation thus far is relatively poor.  That's why I don't mind so
> much the idea of Java.  It is a decent language.

The registry notion isn't *all* that bad; the fact that Microsoft has shown us 
a ludicrously poor implementation of the idea does not invalidate it 
altogether.

Having a DBMS for configuration information has some merit:
- It allows one to avoid parsing configuration files
- It may allow, with suitable indexing, O(1) access to values of interest 
rather than O(size of config file)
- It provides a common place to stick somewhat random stuff.
- With a suitable transaction processing scheme it can provide a high level of 
robustness

And of course there are demerits:
- You need some special tools to get at the data rather than grep, vi and sed
- If abused, it just turns into a big bundle of meaningless crap.

Java has the merit that there are some big people standing behind it.  Sun is 
not the important "player;" *IBM* is.

> > Xt is a half-assed attempt to do OO in C.  It's not bad, but I've seen bett
er.
> 
> Well, if it's not bad, it's still usable.  The same could be said that X
> is not bad, and I don't mean to throw out all of X, I'm sure a lot of code
> could be reused, but a distinct portion (if not majority) is severly
> lacking.  This is not the same for C, though.  C does OO "relatively" well
> for a proceedural language, and I see no reason to throw this out.  Most
> *nix code is C, and there's no need to do C++-isms when you can strongly
> type the structs to be so closely OO-like.

Fair enough...  The important pieces of "object oriented programming" have 
more to do with the thinking processes than they do with the language features.

> > > me to go into the details here, but the biggest failing is in colormap
> > 
> > But I think that's an API problem, rather than a problem with the underlyin
g
> > protocol.
> 
> API?  It is an intrinsic problem of colormap handling, which is so poor it
> can't even be classified as half-assed.
> 
> > > handling.  Run X in an 8-bit display sometime for a while.  Under Solaris
> > > anyway, colors disappear in time.  Netscape (with the -install option)
> > 
> > I run an 8-bit display all the time (UDB with TGA, remember?)
> 
> No.  :)
> 
> > A lot of programmers aren't very good at managing public and private
> > colormaps, and so they consume the whole colormap pretty fast.  I have
> > strategies for that (mostly avoiding running Netscape until *after* running
> > anything color intensive).

> But that's not really a solution.  Windows runs decent in 4-bit color.
> 8-bit color is marvelous.  Under X, 8-bit is a bare minumum and even then
> you have to put up with colormap flashing.  Admit it, it's horrible.

That's what you get for starting out with genericity as a primary design 
parameter.

> > > The next problem of X is the bandwidth.  X is virtually unusable across a
n
> > 
> > Well, you've already mentioned LBX.  I think it's good that X is extenisibl
e
> > in order to add stuff like that, and still remain backwards compatible.
> 
> Extensibility is fundamental, but the X "extension" method itself is a bit
> of a hack.  Another problem is with printing which has also been addressed
> in recent versions of X, but these are truly hack-ons, and not part of
> what should be integral.
> 
> Does X-Free even support the printing extensions?  I know they don't
> support multiheadedness (yet?)...

There have been some rumours coming out on what XFree86 4.0 is about; it looks 
like it is to be a substantially more modular system.  This should help in 
allowing extensions to be closer to being "first class members."

Mind you, it's vaporware thus far, so we'll see what really happens Real Soon 
Now.  Hopefully in 1998...

> > > 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.
> > 
> > That sounds pretty much like the standard set-up to me.  Just set up the
> > system wide XAPPLRESDIR, and you're golden.
> 
> I should explain.  :)
> 
> The three files would be:
>   ../app-defaults/fixed   - settings that can never be overriden
>   ../app-defaults         - default settings that may be overriden
>   ~/.                     - user overrides
> 
> This was most benficial in Pine where the domain name can be fixed and not
> changed by users under any circumstances.  I'm not sure if any other
> programs need it except maybe xscreen{saver,lock} but if the file doesn't
> exist, then it simply falls back to compile-time options.
> 
> But it is pretty much in place.  The only thing I add is the "fixed" file.

A significant problem with X as it is now is that there are altogether too 
many places where settings can come from.  In effect, it's too flexible to be 
usable.

> > > 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...)
> > 
> > The MAIN thing I hate about Windows is the lack of an equivalent to the X
> > Resource Database.
> 
> Does xrdb notify the clients of the changes?
> 
> There's just a few integration issues that are missing ... XFree allows
> you to change resolutions without restarting, but what about color depth?
> I guess it's the color thing that's most notably problematic.  Aside from
> that, a more efficient protocol.  I just don't think that X in its current
> form would be able to handle all the changes needed to bring it up to
> date.  Maybe X12 is "the answer", but I would argue that just as likely a
> new windowing system could be built to succeed X11.

But if it's not nicely backwards compatible, you'll immediately break huge 
quantities of things that function (such as they do) now.

It's not much good to have a new system that is regrettably incompatible with 
*all* of the graphical applications that have been developed for Linux, thus 
requiring that people reimplement all their graphical apps.

> I think, for instance, that some commonality would be benficial, like
> common dialog boxes.  However, I would say that these need to be put in
> the window manager, but you need the back-end support from the client.
> 
> I don't know ... getting too tired to think.

The thought that I keep having is that the "right" way to create a new system 
would be to step back to X11R4, whose code is available, works (on some 
platforms), contains the vast majority of the functionality that actually gets 
used in applications, and happens to be a tiny fraction the size of X11R6, and 
try coding in a new direction.

This would be a similar thing to the Lesstif project, with the difference that 
it wouldn't need to be coded from scratch.  Huge quantities of code ought to 
be integratable from X11R6.

It probably becomes more realistic to consider something like this when 
XFree86 4.0 comes out, as it appears that it will be more modular, which 
should make it a bit easier to decompose the system for further maintenance.
--
Christopher B. Browne, cbbrowne@hex.net, chris_browne@sdt.com
Web: http://www.hex.net/~cbbrowne  SAP Basis Consultant, UNIX Guy
Windows NT - How to make a 100 MIPS Linux workstation perform like an 8 MHz 286


  parent reply	other threads:[~1998-06-23  3:33 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-22 17:35 Making programs 64 bit clean Greg Lindahl
1998-06-22 19:32 ` Michal Jaegermann
1998-06-22 20:47   ` Christopher Curtis
1998-06-22 21:49     ` Michal Jaegermann
1998-06-22 21:50     ` Paul Tomblin
1998-06-22 22:24       ` Jeff Sturm
1998-06-22 22:58       ` The new X (was Re: Making programs 64 bit clean) Christopher Curtis
1998-06-22 23:52         ` Paul Tomblin
1998-06-23  0:54           ` Christopher Curtis
1998-06-23  1:31             ` Bryan W. Headley
1998-06-23  2:33             ` cbbrowne [this message]
1998-06-23  2:54             ` Paul Tomblin
1998-06-23  3:42               ` mgraffam
1998-06-23 15:26                 ` The new X [long!] Christopher Curtis
1998-06-23 17:46                   ` mgraffam
1998-06-24  1:59                     ` cbbrowne
1998-06-23 18:33                   ` Paul Tomblin
1998-06-23 20:30                     ` mgraffam
1998-06-23 23:57                       ` Paul Tomblin
1998-06-24  2:14                         ` mgraffam
1998-06-24  2:06                     ` Christopher Curtis
1998-06-23 15:47             ` The new X (was Re: Making programs 64 bit clean) Jeff Sturm
1998-06-23 16:10               ` Christopher Curtis
1998-06-23 17:01                 ` Jeff Sturm
1998-06-23 19:47                   ` pjlahaie
1998-06-23 18:25                 ` William Bradford
1998-06-24  2:28                   ` several messages Christopher Curtis
1998-06-23 18:42                 ` The new X (was Re: Making programs 64 bit clean) Paul Tomblin
1998-06-23 21:03                 ` The new X Wes Bauske
1998-06-24  0:07                   ` Paul Tomblin
1998-06-24  3:44                     ` [OFFTOPIC] " Stephen Williams
1998-06-24 16:02                     ` Wes Bauske
1998-06-24 18:01                       ` Christopher Curtis
1998-06-24 13:59                   ` Jeff Sturm
1998-06-23  0:18         ` The new X (was Re: Making programs 64 bit clean) Pablo A. Godel
1998-06-23  2:28           ` Paul Tomblin
1998-06-23  8:39           ` Joakim Roubert
1998-06-23 15:30         ` OFFTOPIC: " Jeff Sturm
1998-06-24  1:31           ` Christopher Curtis
1998-06-24 14:52             ` Jeff Sturm
1998-06-22 19:53 ` Making programs 64 bit clean Richard Hadsell
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox