* Re: Making programs 64 bit clean
@ 1998-06-22 17:35 Greg Lindahl
1998-06-22 19:32 ` Michal Jaegermann
1998-06-22 19:53 ` Making programs 64 bit clean Richard Hadsell
0 siblings, 2 replies; 41+ messages in thread
From: Greg Lindahl @ 1998-06-22 17:35 UTC (permalink / raw)
To: axp-list
> Unacceptable:
>
> int foo;
> int *bar;
>
> foo = (int) bar;
>
> Acceptable?:
>
> long foo;
> int *bar;
>
> foo = (long) bar;
>
>
> Is this an acceptable solution to making programs 64 bit clean and is it
> portable across 32 bit and 64 bit platforms?
This is the easiest way to fix broken code. However, it isn't
necessarily portable to other 64 bit machines -- I think everyone
else (?) defines long == 32 bits and long long == 64 bits.
Your best bet for a clean, easy solution is to typedef an int64 type
and use that, with an appropriate definition for each machine. If you
are clever you can put that into a configure script...
It's much better in the long run to fix the programs to not cast
pointers to ints of any width, but of course that is much more
expensive than this quick hack.
-- g
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: Making programs 64 bit clean 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 19:53 ` Making programs 64 bit clean Richard Hadsell 1 sibling, 1 reply; 41+ messages in thread From: Michal Jaegermann @ 1998-06-22 19:32 UTC (permalink / raw) To: axp-list Greg Lindahl writes: > > This is the easiest way to fix broken code. However, it isn't > necessarily portable to other 64 bit machines -- I think everyone > else (?) defines long == 32 bits and long long == 64 bits. This "everyone else" does not include Digital Unix, for example, nor Sparc Linux. Maybe there are some examples in this category but I do not know them (NT on Alpha is 32 bit - in case you wonder). > Your best bet for a clean, easy solution is to typedef an int64 type > and use that, with an appropriate definition for each machine. If you have rely on some type widths then the above is much better. C Standard says only that short is not wider than int and int is not wider than long. Nothing more! It does not even guarantees that there exists an integer type with the same 'sizeof' as a pointer. For overlaying objects of different types C provides a union construct which is, traditionally, grossly underutilized. > It's much better in the long run to fix the programs to not cast > pointers to ints of any width, but of course that is much more > expensive than this quick hack. Agreed. Unfortunately X, for example, uses pointers all over the place as "universal containters" and there is no good way to change that. I strongly suspect that recent problems with servers which work only in 8 colours have something to do with that. Michal ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: Making programs 64 bit clean 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 0 siblings, 2 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-22 20:47 UTC (permalink / raw) To: axp-list On Mon, 22 Jun 1998, Michal Jaegermann wrote: > Agreed. Unfortunately X, for example, uses pointers all over the place > as "universal containters" and there is no good way to change that. ... yet another reason to replace X with a more modern system. :( -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: Making programs 64 bit clean 1998-06-22 20:47 ` Christopher Curtis @ 1998-06-22 21:49 ` Michal Jaegermann 1998-06-22 21:50 ` Paul Tomblin 1 sibling, 0 replies; 41+ messages in thread From: Michal Jaegermann @ 1998-06-22 21:49 UTC (permalink / raw) To: axp-list Christopher Curtis writes: > > > Unfortunately X, for example, uses pointers all over the place > > as "universal containters" and there is no good way to change that. > > ... 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"? --mj ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: Making programs 64 bit clean 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 1 sibling, 2 replies; 41+ messages in thread From: Paul Tomblin @ 1998-06-22 21:50 UTC (permalink / raw) To: axp-list Quoting Christopher Curtis (ccurtis@ee.fit.edu): > On Mon, 22 Jun 1998, Michal Jaegermann wrote: > > Agreed. Unfortunately X, for example, uses pointers all over the place > > as "universal containters" and there is no good way to change that. > > ... yet another reason to replace X with a more modern system. If there were such a thing... Note that in order to produce such a thing it would have to be: - network transparent - portable as all hell - upwards compatible with X servers/clients. - truely object oriented instead of the half-assed "objects in C" like Xt and Motif currently do. - Good support for accelerated hardware without cutting out "normal" hardware. 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. -- Paul Tomblin, ptomblin@xcski.com. "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" - Ernst Jan Plugge ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: Making programs 64 bit clean 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 1 sibling, 0 replies; 41+ messages in thread From: Jeff Sturm @ 1998-06-22 22:24 UTC (permalink / raw) To: axp-list On Mon, 22 Jun 1998, Paul Tomblin wrote: > Quoting Christopher Curtis (ccurtis@ee.fit.edu): > > On Mon, 22 Jun 1998, Michal Jaegermann wrote: > > > Agreed. Unfortunately X, for example, uses pointers all over the place > > > as "universal containters" and there is no good way to change that. > > > > ... yet another reason to replace X with a more modern system. > > If there were such a thing... > > Note that in order to produce such a thing it would have to be: > - network transparent > - portable as all hell > - upwards compatible with X servers/clients. > - truely object oriented instead of the half-assed "objects in C" like Xt and > Motif currently do. > - Good support for accelerated hardware without cutting out "normal" hardware. > 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. It just might happen, now that XFree86 and TOG have split... now they are "free" to continue to develop X11R6.3 into anything they want. X certainly could use an overhaul. But starting from scratch would a very, very bad idea. There's a lot of good code in there already. (I have a side project to reimplement Xlib in pure java. I was suprised at how many simple optimizations can be made... Xlib is a very ugly library. The low-level X protocol is basically sound, it's just missing a few essential features of modern window systems, like matrix transformations for one...) Jeff ^ permalink raw reply [flat|nested] 41+ messages in thread
* The new X (was Re: Making programs 64 bit clean) 1998-06-22 21:50 ` Paul Tomblin 1998-06-22 22:24 ` Jeff Sturm @ 1998-06-22 22:58 ` Christopher Curtis 1998-06-22 23:52 ` Paul Tomblin ` (2 more replies) 1 sibling, 3 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-22 22:58 UTC (permalink / raw) To: axp-list 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...) <sigh> -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 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 0:18 ` The new X (was Re: Making programs 64 bit clean) Pablo A. Godel 1998-06-23 15:30 ` OFFTOPIC: " Jeff Sturm 2 siblings, 1 reply; 41+ messages in thread From: Paul Tomblin @ 1998-06-22 23:52 UTC (permalink / raw) To: axp-list 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 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? > > - 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. Registrys are for idiots, but I disagree entirely about OO. There are a lot of things that OO does really badly, but windowing systems is one of the things it's good for. Xt is a half-assed attempt to do OO in C. It's not bad, but I've seen better. > 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 underlying protocol. > 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?) 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). > The next problem of X is the bandwidth. X is virtually unusable across an Well, you've already mentioned LBX. I think it's good that X is extenisible in order to add stuff like that, and still remain backwards compatible. > 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 There already is one, but I think it's on the client side, not the server side. > 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. > 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. -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-22 23:52 ` Paul Tomblin @ 1998-06-23 0:54 ` Christopher Curtis 1998-06-23 1:31 ` Bryan W. Headley ` (3 more replies) 0 siblings, 4 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-23 0:54 UTC (permalink / raw) To: axp-list 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. > > Absolutely under no circumstances whatsoever. ANSI-C *only*! This is one > > 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 lot > 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. > Xt is a half-assed attempt to do OO in C. It's not bad, but I've seen better. 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. > > 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 underlying > 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. > > The next problem of X is the bandwidth. X is virtually unusable across an > > Well, you've already mentioned LBX. I think it's good that X is extenisible > 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?)... > > 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. > > 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. 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. g'night -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 0:54 ` Christopher Curtis @ 1998-06-23 1:31 ` Bryan W. Headley 1998-06-23 2:33 ` cbbrowne ` (2 subsequent siblings) 3 siblings, 0 replies; 41+ messages in thread From: Bryan W. Headley @ 1998-06-23 1:31 UTC (permalink / raw) To: axp-list Christopher Curtis wrote: > On Mon, 22 Jun 1998, Paul Tomblin wrote: > > > For the purposes of discussion, lets call this new windowing system "Y" > > ---SNIP--- X has a large footprint in terms of networking, which is a legitimate complaint to this day. It could have been a lot more lightweight. That's especially true on single-workstation environments. But what's really wrong with X? There are too many window managers and too many widget kits. If everyone likes MFC and a Windows 95-like window manager, that's what has to be done. And some pre-canned apps. NeXT and Be went in the right direction, but went proprietary. Gnome and KDE are the kind of solutions you'd wish there were several years ago. But KDE uses Qt, yet another widget library for X, and Gnome enforces no window manager choice on you. And then there's X11R6.4's licensing, a move that's a deathknell (what was TOG thinking? Making profit on something contributed YEARS AGO?) Anyway, my rants. And the local bitmap crap IS hideous! -- ____ .:. ____ Bryan W. Headley - bheadley@interaccess.com ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 0:54 ` Christopher Curtis 1998-06-23 1:31 ` Bryan W. Headley @ 1998-06-23 2:33 ` cbbrowne 1998-06-23 2:54 ` Paul Tomblin 1998-06-23 15:47 ` The new X (was Re: Making programs 64 bit clean) Jeff Sturm 3 siblings, 0 replies; 41+ messages in thread From: cbbrowne @ 1998-06-23 2:33 UTC (permalink / raw) To: axp-list > 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 ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 0:54 ` Christopher Curtis 1998-06-23 1:31 ` Bryan W. Headley 1998-06-23 2:33 ` cbbrowne @ 1998-06-23 2:54 ` Paul Tomblin 1998-06-23 3:42 ` mgraffam 1998-06-23 15:47 ` The new X (was Re: Making programs 64 bit clean) Jeff Sturm 3 siblings, 1 reply; 41+ messages in thread From: Paul Tomblin @ 1998-06-23 2:54 UTC (permalink / raw) To: axp-list Quoting Christopher Curtis (ccurtis@ee.fit.edu): > > 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. Ok, same idea, different direction. > 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. I've been doing C++ full time for the last 4 years (until I switched to Java a few months ago). I happened to like the language, as long as you were selective about which parts of the language you used. Same with Java - it's a very nice language, but feature creep is getting to it and allowing people to do some *very* horrible stuff (like over using anonymous inner classes and the like). > 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. Well, I started with C++ back in the days when cfront took your C++ code and produced C with a boatload of funnily named structs with function pointers in them. If you're going to do OO in C, you end up with something similar - Not horrible, but it looks a little nicer in C++. > > 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. I never said it was. And I think Windows is just as bad under 8 bits as X. > Does X-Free even support the printing extensions? I know they don't > support multiheadedness (yet?)... It's hard to do printing in an operating system independant way. As for multi-headedness, I used to have a two headed VaxStation GPX running two heads on X10! I'd be real suprised if X11 doesn't do it. > 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 Programmatically, you can force a value to not be overridable, or to set defaults that can be overridden by the database. If you arrange the XAPPLRESDIR path and permissions on the directories correctly, you can have all sorts of control over what's overridable and what's not. For instance, make the ../app-defaults/fixed NFS mounted read-only so that only the system administrator can change it on a site-wide basis, make the ../app-defaults directory only writable by the local machine owner, and ~/.Xdefaults writable by the user. If you make the "fixed" directory come last in the XAPPLRESDIR path, it will override anything the users override. > > 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? No, but then again you don't have to reboot the whole damn machine every time you make a change to the database like you do with so many windows programs. > There's just a few integration issues that are missing ... XFree allows > you to change resolutions without restarting, but what about color depth? XFree, probably not. X does - on SGI I used to have my display set to 8 bit pseudo colour, but the application I was working on was 24 bit TrueColor. We used to force the customers to start their X server as 24 bit TrueColor, but they wanted to run another application that forced them to start their server as 32 bit, so it was either lose an important customer or fix our application to set the visual type for the individual windows. Guess which one I did? > 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. Possibly. Especially if they can be cached on the server like pixmaps are. But not if it would mean that your server forced you into a single look-and-feel. Being able to run different window managers and different upper level apis (Motif, athena, raw Xt) is both a blessing and a curse of X. Mostly a blessing, I think. -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 2:54 ` Paul Tomblin @ 1998-06-23 3:42 ` mgraffam 1998-06-23 15:26 ` The new X [long!] Christopher Curtis 0 siblings, 1 reply; 41+ messages in thread From: mgraffam @ 1998-06-23 3:42 UTC (permalink / raw) To: axp-list -----BEGIN PGP SIGNED MESSAGE----- On Mon, 22 Jun 1998, Paul Tomblin wrote: > > Does X-Free even support the printing extensions? I know they don't > > support multiheadedness (yet?)... > > It's hard to do printing in an operating system independant way. > As for multi-headedness, I used to have a two headed VaxStation GPX running > two heads on X10! I'd be real suprised if X11 doesn't do it. Why in God's name would you want printing extensions to a windowing system? I don't get it. Talk about bloatware. As for multiheadedness: X11 does multi-head just fine. That is not to say XFree86 does it, but other servers do. MetroX and AcceleratedX do multi-head very well. I've had tri-headed Linux boxes working well with MetroX. > > There's just a few integration issues that are missing ... XFree allows > > you to change resolutions without restarting, but what about color depth? > > XFree, probably not. Right.. XFree != X > Being able to run different window managers and different > upper level apis (Motif, athena, raw Xt) is both a blessing and a curse of X. > Mostly a blessing, I think. Absolutely! One of the things I like most about X is the different apis that are available and that manifest themselves on my desktop during the course of getting work done. If my desktop consistently looked like Win95 or KDE I'd go insane.. it's bad enough that I have to go out of my way taking steps to avoid business beige. This is not to take anything away from the KDE crew, of course.. I have KDE installed and use many of the "KDE" applications, but the whole scheme rubs me the wrong way. Filebrowsers and trashcan icons aren't for me. Just give me an rxvt with a neat pixmap background and I'll be happy.. when I'm feeling nostalgic I'll turn on the ampex vt220 terminal and burn the eyes out of my skull with the amber screen. :) Michael J. Graffam (mgraffam@mhv.net) http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. . .Sapere aude! Have the courage to use your own understanding!" - Immanuel Kant "What is Enlightenment?" -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQCVAwUBNY8kNwKEiLNUxnAfAQFl4QQAt9RH6LhOr6S5mQdyn3GzE/qXyX82zDdq dBORZAr9hSn4XTOTiuRe3/buTsSY+1A9yDC6Tb9es5Bju5sZJe9i3DqrTghE8baT hjeYxGxFElTP7LanlNqcxVAgwWhrpQGGZJ9uyJFCg7t/Eqz+Fak9Hm5WBtX1tI00 vZJDqSUa5H4= =zNmZ -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 3:42 ` mgraffam @ 1998-06-23 15:26 ` Christopher Curtis 1998-06-23 17:46 ` mgraffam 1998-06-23 18:33 ` Paul Tomblin 0 siblings, 2 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-23 15:26 UTC (permalink / raw) To: axp-list I almost regret starting this thread. =) On Mon, 22 Jun 1998, Paul Tomblin wrote: > Ugh. Windows is horrible. The only good thing about it is also what's wrong > with it - that it's closely integrated with the OS so all the applications > keep a similar look and feel. But the major inconsistencies in the way > various dialogs work, the crappy file open dialog, the registry (ack, spit). This is something that I think can be handled by a window manager. GTK+, for instance, has common dialogs, and whatever the GNOME window manager is will probably use GTK+ and thus have access to these dialogs. What would be nice at this point is a method for a client program to request the window manager to display the dialog. This can be implemented in X as it is now, but every window manager will need to be rewritten to handle these exotic new clients. Whereas it's okay for the WM to ignore Motif icons, the program will not function without a dialog it expects to be present. I was just thinking that since there are many things like this that *could* be done, and which probably ought to be done, so many things that traditional X does would break these, so there's not really any need to preserve backward compatibility. I guess this isn't really true, though. Maybe I'm not talking about a new environment, but simply a major overhaul of what has been the "X windowing system". I'm sure that at the protocol level X is probably mostly stable. However, I'm also willing to bet that there are some simple optimizations that could be performed as well. Could they be done while preserving compatibility? I don't know. > From a human factors point of view, Windows 3.1 is actually a more consistent > and better interface. There is a great web page about human factors and > interfaces I found the other day, probably off a link from slashdot, and it > was great. I've been doing user interfaces for 10 years, and I learnt a lot > from those pages. If I find the URL, I'll post it. http://www.useit.com/ maybe? On Mon, 22 Jun 1998, Bryan W. Headley wrote: > But what's really wrong with X? There are too many window managers and > too many widget kits. If everyone likes MFC and a Windows 95-like window > manager, that's what has to be done. And some pre-canned apps. NeXT and > Be went in the right direction, but went proprietary. Maybe yes and maybe no. Right now there's actually even an additional layer of configuration options. Has anyone used the latest E? (www.enlightenment.org) I haven't - I don't even know if it will compile on the Alpha, but the big introduction there is GTK+ "themes". So even within your single window manager, you can redefine buttons and other various widgets. I'm assuming this only works with GTK+, but that's essentially an abstracted (or "widgetless") widget set. In my opinion, I think that what E is doing is a better solution than what has been done in the past, but that comes at the expense of bloat, etc, etc. No, overall I like the concept of X, there's just some issues regarding the internals (mostly how optimized it is) and then resource management. On Mon, 22 Jun 1998, Paul Tomblin wrote: > Well, I started with C++ back in the days when cfront took your C++ code and > produced C with a boatload of funnily named structs with function pointers in > them. > > If you're going to do OO in C, you end up with something similar - Not > horrible, but it looks a little nicer in C++. I'll agree; C++ has some "slickness" that is good for inexperienced programmers not used to memory management, etc. But I don't like the idea of simply abondoning C for something that should be as integral to unix as windows is to DOS. In light of this, remember that my subject line is the "New" X, not the replacement for X. :) > I never said it was. And I think Windows is just as bad under 8 bits as X. How could you possibly say that?? Under windows I can open Netscape and a graphics viewer and a photoshop on an 8 bit display with virtually no significant loss of color-isms. Under X, open netscape, xv, and the gimp. Can you really say these are equal? I either get warnings about unable to allocate color cells or the program simply refuses to load or the display flashes when I move in and out of windows. Maybe you have a better X server than I do, but this is true of XFree on Intel, Sparc, and Alpha and on vanilla X for SunOS/Solaris on Sparc, and OpenWindows on SunOS/Sparc. > > Does X-Free even support the printing extensions? I know they don't > > support multiheadedness (yet?)... > > It's hard to do printing in an operating system independant way. Very true - the actual printing. But look for example at NeWSPrint. Basically if I understand it right, what you draw on the "screen" becomes postscript, which can then be saved/printed/whatever. In opposition to each program having to write its own PS driver. > As for multi-headedness, I used to have a two headed VaxStation GPX running > two heads on X10! I'd be real suprised if X11 doesn't do it. X11 does, yes, sorry. XFree does not. I'm assuming here that everyone is running XFree on their Alpha/Linux boxes. I'm simply using my Solaris examples to show that it is not a XFree-only affliction. > Programmatically, you can force a value to not be overridable, or to set > defaults that can be overridden by the database. If you arrange the > XAPPLRESDIR path and permissions on the directories correctly, you can have > all sorts of control over what's overridable and what's not. For instance, But users can modify their XAPPLRESDIR. There's simply no absolute way. > > Does xrdb notify the clients of the changes? > > No, but then again you don't have to reboot the whole damn machine every time > you make a change to the database like you do with so many windows programs. I agree completely with you here - but simply because one method is better than an existing method does not mean that the method is the best. If there is room for improvement, that change should be made. Nothing is going to stand still when it can improve over something that's "better". NT, for example, rarely needs to be rebooted when doing "normal" things like changing IP netmasks, etc. Yet X doesn't have the ability to change a default background and have the applications accept the changes, whereas Windows does. All I'm saying is that there is room for improvement. And I don't know that the existing X mechanisms are sufficient and/or could be upgraded without breking previous apps. On Mon, 22 Jun 1998 cbbrowne@hex.net wrote: > > 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 true. All I meant to say that was if it wasn't really possible to preserve the backwardness of X, that effort should not be expended or "Y" be hobbled to compensate. Every now and again there has to be a clean break from the past into the new. Writing a translator shouldn't be that difficult as both systems are (would be) open source, and the X shouldn't be any worse-off than current X, just not as efficient as the newer "Y". > 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. Maybe you are right, but I've never met a registry I liked. Personally, I think the "benefits" are far outweighted by the risks. > Having a DBMS for configuration information has some merit: > - It allows one to avoid parsing configuration files If the parsing is done by the toolkit, it doesn't matter. > - It may allow, with suitable indexing, O(1) access to values of interest > rather than O(size of config file) Even in the '386 days, this was never a major obstacle. And today, on our zippy litle UDBs, the difference is that between waiting .3 seconds versus .02 seconds - an over tenfold increase, but still neglible. > - It provides a common place to stick somewhat random stuff. Not a benefit. If there are just standards for the .config files the same could be said of that. For instance, global fixed defaults; global defaults; and user defaults in ~/.Xdefaults/app-name, where the application has complete control over only that single file. The only real problem with what exists now is that there's no way to save settings. Again, all of this should be implemented in the toolkit. And again, not all toolkits support this, so they will have to be rewritten ... > - With a suitable transaction processing scheme it can provide a high > level of robustness And this would eat away much of the performance gained by storing it in an indexed database. > And of course there are demerits: > - You need some special tools to get at the data rather than grep, vi and sed This is very bad. It's very not-unix. In fact, it's 100% not-unix. > - If abused, it just turns into a big bundle of meaningless crap. There are many circumstances under which it becomes meaningless crap. Abuse is one - disk error is another. Is it a standalone database with its own daemon? What happens when this crashes and transactions aren't completely fully? What if you accidentally put garbage into the database? To me, it just seems like a lot of unneeded headaches, and I think that it what it eventually becomes. It's much easier to deal with single files that can be removed when an application is removed, rather than having a database with 15 years of application data still stored after the app has been removed. And then that data adds to the overhead of reading and writing settings whereas the file-for-app method would never even worry about it. > Java has the merit that there are some big people standing behind it. > Sun is not the important "player;" *IBM* is. Sun is an extremely important player because they control the language. Sun can't make Java succeed, but they can surely kill it. Recent actions by Sun reinforce this. > 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 an extent, yes. I advocate only a more precisely defined mechnism, preferrably maintained by the toolkits and with a common client API. > But if it's not nicely backwards compatible, you'll immediately break huge > quantities of things that function (such as they do) now. Sure - only having an X server that runs under this incompatible environment should not be a big deal. eXceed does it for windows and there's no reason that two open source projects (especially if the latter is based heavily on the former) can't interoperate with a similar translation layer. Should it be an integral and transparent part? I suppose it should. Does it matter in the design? Not really. > 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. But the object is to have them all reimplemented eventually. > 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. But then losing out on the XRX, LBX, and print extensions. > 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. XFree could very well be the method used to bring about this change. Maybe GNOME/GTK+ will be the method to get my desired window manager as comptroller changes. Or maybe it'll end up being a huge complicated mess that even fewer people understand and will act as the impetus for change. Right now there's a huge influx of non-unix people with 28k modems who don't know much about X. I'd like to think I know a bit about X but will be the first to admit I know, truly, very little. They will want change and will drive changes, but I think it's important that these be forward changes. I suppose there will always be people with the same objectives, but I think that time is getting short and that a lot of these little hacks to X are going to start to really bring it down. MS is starting to realize that, as Sun has said, the Network is the Computer, and will be putting a lot of effort into this arena. Can they do better than X? Maybe. Can we do better? Probably. Who will be there first, and what will be the ramifications? On Mon, 22 Jun 1998 mgraffam@mhv.net wrote: > Why in God's name would you want printing extensions to a windowing > system? I don't get it. Talk about bloatware. They're already there. Printing is important, like it or not. > Absolutely! One of the things I like most about X is the different apis > that are available and that manifest themselves on my desktop during > the course of getting work done. They make things interesting. I don't find it particularly confusing, but I don't think much of apps that use old widget sets. I feel like I'm working with something from the mid-70's, and that doesn't typically make me feel good. :-\ > scheme rubs me the wrong way. Filebrowsers and trashcan icons aren't > for me. Just give me an rxvt with a neat pixmap background and I'll > be happy.. when I'm feeling nostalgic I'll turn on the ampex vt220 I agree - I don't like filebrowsers or trashcans. I do like KDE though. I like the consistency of the window manager, and I love it's color handling. Okay, so no flicker on a 8-bit display, but it sucks all the colors out of the background. I don't like its lack of configurability. (KDE uses the OpenWin "thumbtack" whereas I prefer my FVWM2 "sticky-bars" that go across the entire window titlebar. KWM appears to have no such options.) Hmm ... looking at the KDE config (~/.kde) it appears that I'm not alone in my config file thinking. :) *whew!* -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 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 1 sibling, 1 reply; 41+ messages in thread From: mgraffam @ 1998-06-23 17:46 UTC (permalink / raw) To: axp-list On Tue, 23 Jun 1998, Christopher Curtis wrote: > > > Why in God's name would you want printing extensions to a windowing > > system? I don't get it. Talk about bloatware. > > They're already there. Printing is important, like it or not. Yeah, it is important, but why load the windowing system down? Have a standard printing scheme for text and graphics, that way apps that use X for it's user interface can print in the same standard way as apps that use SVGALib, GGI, or are just curses-based. Printing doesn't need to be related to X at all, and preferrably shouldn't be. > > Absolutely! One of the things I like most about X is the different apis > > that are available and that manifest themselves on my desktop during > > the course of getting work done. > > They make things interesting. I don't find it particularly confusing, but > I don't think much of apps that use old widget sets. I feel like I'm > working with something from the mid-70's, and that doesn't typically make > me feel good. :-\ :) So I take it I won't find you in the retro scene ? I don't mind old widget sets in themselves.. they may not look pretty or smell all that nice, but they get the job done. > I agree - I don't like filebrowsers or trashcans. I do like KDE though. KDE is decent.. I'd use it before other wm's .. twm, for instance, or olwm. I might even use it before fvwm, but Afterstep is my manager of choice.. Windowmaker might get there some day too. I like the NS feel.. before Afterstep really got going, I used a next box running NS 3.3 with 8-bit video as an xterminal to my bigger boxes. But, I agree with you that E looks like it might turn out to be the dominant wm. For those that haven't played with it.. check it out (www.enlightenment.org), it doesn't have all the power yet (at least the last time I looked.. which was 0.13 I think), but it has potential to be far more than eye candy (though it looks incredible too). Give it a year of good, consistent development, and I'll switch. Michael J. Graffam (mgraffam@mhv.net) http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc "Two things fill the mind with ever new and increasing admiration and awe the more often and steadily we reflect upon them: the starry heavens above and the moral law within me. I do not seek or conjecture either of them as if they were veiled obscurities or extravagances beyond the horizon of my vision; I see them before me and connect them immediately with the consciousness of my existence." - Immanuel Kant "Critique of Practical Reason" ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 17:46 ` mgraffam @ 1998-06-24 1:59 ` cbbrowne 0 siblings, 0 replies; 41+ messages in thread From: cbbrowne @ 1998-06-24 1:59 UTC (permalink / raw) To: axp-list > On Tue, 23 Jun 1998, Christopher Curtis wrote: > > > > > > Why in God's name would you want printing extensions to a windowing > > > system? I don't get it. Talk about bloatware. > > > > They're already there. Printing is important, like it or not. > > Yeah, it is important, but why load the windowing system down? > Have a standard printing scheme for text and graphics, that way > apps that use X for it's user interface can print in the same > standard way as apps that use SVGALib, GGI, or are just curses-based. > > Printing doesn't need to be related to X at all, and preferrably > shouldn't be. Arguably an argument for Display PostScript. Microsoft's implementation of GDI may have many aspects of specific horribleness; the fact that it provides an architecture that automatically provides "printability" of documents is not one of the most horrible things about it. > KDE is decent.. I'd use it before other wm's .. twm, for instance, or > olwm. I might even use it before fvwm, but Afterstep is my manager of > choice.. Windowmaker might get there some day too. > > I like the NS feel.. before Afterstep really got going, I used a > next box running NS 3.3 with 8-bit video as an xterminal to my > bigger boxes. Which would be a natural connect to DPS, as that is one of the basis technologies behind *Step. > But, I agree with you that E looks like it might turn out to be the > dominant wm. For those that haven't played with it.. check it out > (www.enlightenment.org), it doesn't have all the power yet (at least the > last time I looked.. which was 0.13 I think), but it has potential to be > far more than eye candy (though it looks incredible too). Give it a year > of good, consistent development, and I'll switch. The last I saw, it seemed rather more wild than I could handle. -- 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 ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 15:26 ` The new X [long!] Christopher Curtis 1998-06-23 17:46 ` mgraffam @ 1998-06-23 18:33 ` Paul Tomblin 1998-06-23 20:30 ` mgraffam 1998-06-24 2:06 ` Christopher Curtis 1 sibling, 2 replies; 41+ messages in thread From: Paul Tomblin @ 1998-06-23 18:33 UTC (permalink / raw) To: axp-list Quoting Christopher Curtis (ccurtis@ee.fit.edu): > > From a human factors point of view, Windows 3.1 is actually a more consistent > > and better interface. There is a great web page about human factors and > > interfaces I found the other day, probably off a link from slashdot, and it > > was great. I've been doing user interfaces for 10 years, and I learnt a lot > > from those pages. If I find the URL, I'll post it. > > http://www.useit.com/ maybe? Nope, http://www.iarchitect.com/shame.htm > layer of configuration options. Has anyone used the latest E? > (www.enlightenment.org) I haven't - I don't even know if it will compile Ugh. What a horrible, ugly piece of bloatware. I guess if you really want your screen to look like it was designed by Giger(the guy who designed Alien) and your 400MHz Alpha to run as slow as my UDB, that's the way to go, but I don't see it as improving clarity, ease of use, and consistency. Maybe I'm just old-fashioned for believing those three things are important. > programmers not used to memory management, etc. But I don't like the idea > of simply abondoning C for something that should be as integral to unix as > windows is to DOS. "integral to unix"? Wrong! Whatever "replaces" X should run on Unix, Linux, VMS, and everything else that X runs on. > > I never said it was. And I think Windows is just as bad under 8 bits as X. > > How could you possibly say that?? Under windows I can open Netscape and a > graphics viewer and a photoshop on an 8 bit display with virtually no > significant loss of color-isms. Under X, open netscape, xv, and the gimp. On windows, the OS or the programmers, I don't know which, are silently remapping colours. Under X, the responsibility for doing that is left up to the programmers, and they mostly blow it. I don't see flashing, because most programs I use don't use private color maps, but Netscape and GIMP are most definitely NOT good examples of well written code. > > 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. > > Maybe you are right, but I've never met a registry I liked. Personally, I > think the "benefits" are far outweighted by the risks. Maybe he's using registry as a synonym for resource database, but I can only think of Windows NT, where it is quite possible for one application to trash the registry entries of another application, or wreck it so badly that the OS can't boot. *That* is reason enough to never use that OS - it violates the basic tenet of OS design. -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 18:33 ` Paul Tomblin @ 1998-06-23 20:30 ` mgraffam 1998-06-23 23:57 ` Paul Tomblin 1998-06-24 2:06 ` Christopher Curtis 1 sibling, 1 reply; 41+ messages in thread From: mgraffam @ 1998-06-23 20:30 UTC (permalink / raw) To: axp-list On Tue, 23 Jun 1998, Paul Tomblin wrote: > > layer of configuration options. Has anyone used the latest E? > > (www.enlightenment.org) I haven't - I don't even know if it will compile > > Ugh. What a horrible, ugly piece of bloatware. I guess if you really want > your screen to look like it was designed by Giger(the guy who designed Alien) > and your 400MHz Alpha to run as slow as my UDB, that's the way to go, but I > don't see it as improving clarity, ease of use, and consistency. Maybe I'm > just old-fashioned for believing those three things are important. Yes, E will likely always be slower than fvwm, but it does not have to be as slow as you make it out to be. Sure, if you use a theme with over-done glitz and what not, yeah, then you'll pay the price. But E could look just like fvwm, and run marginally slower.. on modern machine you wouldn't know the difference, and when all is said and done and E is taken to its final goal: it would be more powerful than fvwm. BTW, whats wrong with Aliens .. makes me feel at home :) Michael J. Graffam (mgraffam@mhv.net) http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc "86% of conspiracy theories have some basis in truth... but, oddly enough, it's that last 14% that usually gets you killed." --Talas (http://cadvantage.com/~algaeman/conspiracy/public.htm) ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 20:30 ` mgraffam @ 1998-06-23 23:57 ` Paul Tomblin 1998-06-24 2:14 ` mgraffam 0 siblings, 1 reply; 41+ messages in thread From: Paul Tomblin @ 1998-06-23 23:57 UTC (permalink / raw) To: axp-list Quoting mgraffam@mhv.net (mgraffam@mhv.net): > be as slow as you make it out to be. Sure, if you use a theme with > over-done glitz and what not, yeah, then you'll pay the price. But E Is there a theme for E that *doesn't* have over-done glitz and which *doesn't* attempt to use up the entire colourmap? -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 23:57 ` Paul Tomblin @ 1998-06-24 2:14 ` mgraffam 0 siblings, 0 replies; 41+ messages in thread From: mgraffam @ 1998-06-24 2:14 UTC (permalink / raw) To: axp-list On Tue, 23 Jun 1998, Paul Tomblin wrote: > Quoting mgraffam@mhv.net (mgraffam@mhv.net): > > be as slow as you make it out to be. Sure, if you use a theme with > > over-done glitz and what not, yeah, then you'll pay the price. But E > > Is there a theme for E that *doesn't* have over-done glitz and which *doesn't* > attempt to use up the entire colourmap? Yeah, some of the crappy looking ones that my friend made :) In seriousness, no.. not really, you're right: but you have to remember that as of now, E isn't really meant for public consumption. Once it is deployed for actual use, I'm sure people would develop more reasonable themes. At the very least my friends and I would.. once E becomes worth using from a power point of view, I (being a big NeXT fan) will certainly develop a NS with a few tiny bits of eye candy here and there. All things in good time :) For what its worth, the original E theme.. the one with the "binary" background with the light in the lower-right corner was pretty reasonable. Most themes that coming out now are trying to show off every feature of E, which is good because it aids in finding bugs. Michael J. Graffam (mgraffam@mhv.net) http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc "..the isle is full of noises, sounds and sweet airs that give delight and hurt not. Sometimes a thousand twangling instruments will hum about mine ears, and sometimes voices.." Caliban, Shakespeare's "The Tempest" ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X [long!] 1998-06-23 18:33 ` Paul Tomblin 1998-06-23 20:30 ` mgraffam @ 1998-06-24 2:06 ` Christopher Curtis 1 sibling, 0 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-24 2:06 UTC (permalink / raw) To: axp-list On Tue, 23 Jun 1998, Paul Tomblin wrote: > > layer of configuration options. Has anyone used the latest E? > > (www.enlightenment.org) I haven't - I don't even know if it will compile > > Ugh. What a horrible, ugly piece of bloatware. I guess if you really want Is this the DR 0.14 release you're talking about? I tried an older version a while ago and found some themes that were really nice to use, and though it was a bit sluggish, it wasn't horrible (AMD 5x86). The 0.14 release is supposed to be a lot faster, that's why I asked. > and your 400MHz Alpha to run as slow as my UDB, that's the way to go, but I > don't see it as improving clarity, ease of use, and consistency. Maybe I'm > just old-fashioned for believing those three things are important. No - you just have to find a theme better than the default. =) > > programmers not used to memory management, etc. But I don't like the idea > > of simply abondoning C for something that should be as integral to unix as > > windows is to DOS. > > "integral to unix"? Wrong! Whatever "replaces" X should run on Unix, Linux, > VMS, and everything else that X runs on. "integral to unix" != "exclusive to unix" > On windows, the OS or the programmers, I don't know which, are silently > remapping colours. Under X, the responsibility for doing that is left up to > the programmers, and they mostly blow it. I don't see flashing, because most So the question is, is that a good thing to be the default? Or is the existing default the better thing? X wasn't really designed with great ambition - mostly designed for xterms and maybe a clock. [conjecture]. It runs fine with only one or two colored apps, or apps from a single toolkit (ala OpenWindows) but anytime you start mixing things it's pretty shameful, imo. But then I'm very impressed with what KDE's kwm does, so it's not impossible and there is a solution, though even kwm's actions seem kinda hack-ish at times, too. (Eg, I have a nice red-grey gradient, but sticking netscape on it without the -install I lose most of the red). It's simply that Windows, for instance, retains its colors and presents the user with a color-consistent experience overall. Even Windows does colormap flashing when an app installs a private colormap, it just handles the default case better. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 0:54 ` Christopher Curtis ` (2 preceding siblings ...) 1998-06-23 2:54 ` Paul Tomblin @ 1998-06-23 15:47 ` Jeff Sturm 1998-06-23 16:10 ` Christopher Curtis 3 siblings, 1 reply; 41+ messages in thread From: Jeff Sturm @ 1998-06-23 15:47 UTC (permalink / raw) To: Christopher Curtis; +Cc: axp-list On Mon, 22 Jun 1998, Christopher Curtis wrote: > > > 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. Windows runs like crap in 4-bit color. You don't really like dithering, do you?? The biggest difference here is that Windows application developers had gotten used to 4-bit and 8-bit displays. Until recently there were few Windows applications that would even attempt to use more than 256 colors. If applications like Netscape and GIMP hog color resources, well, that's not exactly a X problem... Neither X nor Windows can do more than the hardware beneath. Admit it, X is not horrible :) Jeff ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 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 ` (3 more replies) 0 siblings, 4 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-23 16:10 UTC (permalink / raw) To: Jeff Sturm; +Cc: axp-list On Tue, 23 Jun 1998, Jeff Sturm wrote: > Windows runs like crap in 4-bit color. You don't really like dithering, > do you?? Runs like crap? Looks like crap, yes, but runs well. Many (most, all?) X apps won't even load in a 4-bit display. > The biggest difference here is that Windows application developers had > gotten used to 4-bit and 8-bit displays. Until recently there were few > Windows applications that would even attempt to use more than 256 colors. point?? If you go buy a Sparc 10 for $5,000 you only get an 8-bit dpy. > If applications like Netscape and GIMP hog color resources, well, that's > not exactly a X problem... It is because they aren't allowed to share. I don't know the details of exactly what is wrong, but you cannot have two color-intensive apps loaded. Like Netscape and anything, or GIMP and anything. One color intensive app screws everybody. > Neither X nor Windows can do more than the hardware beneath. Admit it, X > is not horrible :) Did I say X was horrible? I don't think I did. I like X, I just see room for improvement. Most notably being palette management. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 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 ` (2 subsequent siblings) 3 siblings, 1 reply; 41+ messages in thread From: Jeff Sturm @ 1998-06-23 17:01 UTC (permalink / raw) To: Christopher Curtis; +Cc: axp-list On Tue, 23 Jun 1998, Christopher Curtis wrote: > On Tue, 23 Jun 1998, Jeff Sturm wrote: > > > Windows runs like crap in 4-bit color. You don't really like dithering, > > do you?? > > Runs like crap? Looks like crap, yes, but runs well. Many (most, all?) X > apps won't even load in a 4-bit display. Hmm... never tried it. I've had pretty good luck with greyscale though... > > The biggest difference here is that Windows application developers had > > gotten used to 4-bit and 8-bit displays. Until recently there were few > > Windows applications that would even attempt to use more than 256 colors. > > point?? If you go buy a Sparc 10 for $5,000 you only get an 8-bit dpy. Yup. Our Ultra-2 does no better. I've been meaning to ask those Sun guys what on earth were they thinking. Meanwhile I've got a darn nice X console running on Linux :) If I bought another Sun I wouldn't even bother ordering a graphics adapter. > > If applications like Netscape and GIMP hog color resources, well, that's > > not exactly a X problem... > > It is because they aren't allowed to share. I don't know the details of > exactly what is wrong, but you cannot have two color-intensive apps > loaded. Like Netscape and anything, or GIMP and anything. One color > intensive app screws everybody. Oh, they can share, all right. The problem is that there are just not enough colormap entries to go around when you can only allocate 256 colors out of a possible 16 million or so. Let's say I render a .gif in one window. I'ts an 8-bit picture of a rose blossom growing in my backyard. The hardware colormap gets filled with shades of red and green. Then I open another .gif, a picture of a blue sky. It wants shades of blue, but no colormap entries are available (they get used on a first-come, first-serve basis). The results are horrible unless I use private colormaps, in which case the flickering is horrendous but I can view both images (alternately). If the images both use a lot of red, or similar colors, the application can try to map closest possible shades when the colormap is full. The result is a degraded image quality that may still be acceptable. The problem is many applications do not manage colors very intelligently, and I suspect some don't release colormap cells either. Desktop colors are another story. Most desktops (KDE) settle on white, black, a few shades of grey and maybe some blue or something else. Maybe 16 colors altogether. Typically you can open as many windows as you want and never run out of colormap cells even on an 8-bit display because they are properly shared. I have observed colormap behavior many times under 8bpp and 16bpp displays on various flavors of Windows and X. The results are pretty consistent. X can actually be more flexible by enabling you to run several visuals simultaneously, or turn them on/off during server init. I really don't believe Windows does any better than X at managing color resources, it exhibits the same problems. (Granted, Netscape is probably broken on X. Now that Mozilla is out we might finally have a chance to fix it :) ) In your case, try forcing Netscape to use a DirectColor visual at 8bpp if your display server supports it. I bet images aren't as pretty but you won't get the same colormap contention either... I have a hunch we're getting too off-topic for axp-list now :) Jeff ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 17:01 ` Jeff Sturm @ 1998-06-23 19:47 ` pjlahaie 0 siblings, 0 replies; 41+ messages in thread From: pjlahaie @ 1998-06-23 19:47 UTC (permalink / raw) To: axp-list On Tue, 23 Jun 1998, Jeff Sturm wrote: > Let's say I render a .gif in one window. I'ts an 8-bit picture of a > rose blossom growing in my backyard. The hardware colormap gets filled with > shades of red and green. Then I open another .gif, a picture of a blue > sky. It wants shades of blue, but no colormap entries are available (they > get used on a first-come, first-serve basis). The results are horrible > unless I use private colormaps, in which case the flickering is > horrendous but I can view both images (alternately). In windows, this isn't a problem. The Windows kernel handles the colormap allocations. So it gives your application the colors it wants (not always all of them I believe) and uses the rest to display the rest of the apps. You're rose would get alot less shades of red and green, but it's surprising how good the display still looks compared to the freaky colors you get with X. And this is all done transparently. You don't have to write a single line of code for it to do this. For most applications, this gives you much better color handling then the colormap flashing you get with X. - Paul ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 16:10 ` Christopher Curtis 1998-06-23 17:01 ` Jeff Sturm @ 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 3 siblings, 1 reply; 41+ messages in thread From: William Bradford @ 1998-06-23 18:25 UTC (permalink / raw) To: axp-list On Tue, Jun 23, 1998 at 12:10:49PM -0400, Christopher Curtis wrote: > point?? If you go buy a Sparc 10 for $5,000 you only get an 8-bit dpy. Anybody buying a Sparc 10 for $5k is getting seriously ripped, btw. 8-) The Ultra 5 is under $3k and you get a video card capable of 16bit. Of course, I like my AlphaStation and Matrox Millenium. Bill (maintainer of www.sunhelp.com) -- Bill Bradford * mrbill@frenzy.com ------------------------------------------- "One World, One Web, One Program" - Microsoft Promotional Ad "Ein Volk, Ein Reich, Ein Fuhrer" - Adolf Hitler ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: several messages 1998-06-23 18:25 ` William Bradford @ 1998-06-24 2:28 ` Christopher Curtis 0 siblings, 0 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-24 2:28 UTC (permalink / raw) To: axp-list > On Tue, Jun 23, 1998 at 12:10:49PM -0400, Christopher Curtis wrote: > > point?? If you go buy a Sparc 10 for $5,000 you only get an 8-bit dpy. On Tue, 23 Jun 1998, Wes Bauske wrote: > Who would pay $5K for a Sparc 10?? On Tue, 23 Jun 1998, William Bradford wrote: > Anybody buying a Sparc 10 for $5k is getting seriously ripped, btw. 8-) Of course, I meant here an Ultra 10, whose base model has an 8-bit display. Looking at the prices at sun.com, this will cost $4,910. And on a side note, I would like to thanks everyone for not degrading this thread into a complete flame war. :) -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 16:10 ` Christopher Curtis 1998-06-23 17:01 ` Jeff Sturm 1998-06-23 18:25 ` William Bradford @ 1998-06-23 18:42 ` Paul Tomblin 1998-06-23 21:03 ` The new X Wes Bauske 3 siblings, 0 replies; 41+ messages in thread From: Paul Tomblin @ 1998-06-23 18:42 UTC (permalink / raw) To: axp-list Quoting Christopher Curtis (ccurtis@ee.fit.edu): > > If applications like Netscape and GIMP hog color resources, well, that's > > not exactly a X problem... > > It is because they aren't allowed to share. I don't know the details of They *ARE* allowed to share, it's just the crappy programmers at Netscape and the crappy quality of open source (warning: flame bait) means that they don't bother to write their code to properly share. When I worked at GeoVision, our application initially was 8 bit color because all the work stations of the day had 8 bits. But then we decided we needed 4 bit planes for satellite imagery, so we reduced our code to only use 4 bit planes. We did a hell of a lot of work with making sharable lut (look up table) entries, using what was there already if at all possible, dithering when we couldn't get the colors we needed, etc, and made a *very* color friendly system. Fortunately we had a mad genius who wrote all this code, and I don't know all the details of how he did it. No private colour maps, so no flashing, just a warning that if you started something colour intensive and unfriendly before our software, you might get something that doesn't look quite right. -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X 1998-06-23 16:10 ` Christopher Curtis ` (2 preceding siblings ...) 1998-06-23 18:42 ` The new X (was Re: Making programs 64 bit clean) Paul Tomblin @ 1998-06-23 21:03 ` Wes Bauske 1998-06-24 0:07 ` Paul Tomblin 1998-06-24 13:59 ` Jeff Sturm 3 siblings, 2 replies; 41+ messages in thread From: Wes Bauske @ 1998-06-23 21:03 UTC (permalink / raw) To: axp-list Christopher Curtis wrote: > > On Tue, 23 Jun 1998, Jeff Sturm wrote: > > > Windows runs like crap in 4-bit color. You don't really like dithering, > > do you?? > > Runs like crap? Looks like crap, yes, but runs well. Many (most, all?) X > apps won't even load in a 4-bit display. > Who uses a 4 bit display card? Why worry about it at all? 8 bits is really the minimum, whether Windows or X. > > The biggest difference here is that Windows application developers had > > gotten used to 4-bit and 8-bit displays. Until recently there were few > > Windows applications that would even attempt to use more than 256 colors. > > point?? If you go buy a Sparc 10 for $5,000 you only get an 8-bit dpy. > Who would pay $5K for a Sparc 10?? > > If applications like Netscape and GIMP hog color resources, well, that's > > not exactly a X problem... > True, it's the application's problem. > It is because they aren't allowed to share. I don't know the details of > exactly what is wrong, but you cannot have two color-intensive apps > loaded. Like Netscape and anything, or GIMP and anything. One color > intensive app screws everybody. > They can share. The problem is there is no 'standard' how to do it well. Using a 16bit True Color visual, I can display as many color intensive apps as I want as long as they support True color. Course that means programmer has to know how to use that visual. It is different compared to Pseudo-Color. I doubt Windows is capable of running two simultaneous high color apps at the same time with BOTH windows visible. Have you ever noticed that high color windows alway seem to expand themselves to full screen under Windows? At least the 3-4 I've used do. Two obvious reasons. One, more pixels, two, can't see what any other window looks like. Now I don't use Windows alot so I give them the benefit of doubt that the main reason is #1. Honestly, I see no easy way to manage 8 bit displays better than X does. Once you get to 16 bit and a True Color visual, you have no problems, either with Windows or X. If I think about it, next time I run Windows, I'll use one of my image manipulation programs and display two radically different pics in two simultaneous windows at 8bit and see what it looks like. Doubt it will be pretty though. One trick I do in an 8 bit environment is to maintain an atom in the server window of a set of colormap entries to use for my programs that guarantees the main WM colors don't flash. Then, any cell outside that range is copied into the private map. Only cells in that range can be changed by the apps. Looks a bit better than the whole damn thing flashing, borders and all, but again, this is the programmer's responsibility. My $.02. Wes ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X 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 13:59 ` Jeff Sturm 1 sibling, 2 replies; 41+ messages in thread From: Paul Tomblin @ 1998-06-24 0:07 UTC (permalink / raw) To: axp-list Quoting Wes Bauske (wsb@paralleldata.com): > I doubt Windows is capable of running two simultaneous high > color apps at the same time with BOTH windows visible. Have I suspect what Windows does, and what X applications could easily do, is to divide the entire color space up before hand into as many chunks as your card would support, and then when an application requests a color, gives it whichever of the pre-registered colours is the closest match. I don't know the best way to allocate those colours - my first inclination on an eight bit display would be all permutations and combinations of 3 bits for red, 3 green, 2 blue - and then somehow map that back onto 16 bits per channel of the X colour scheme. But I'm sure my former collegues at Kodak could come up with something better. -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* [OFFTOPIC] Re: The new X 1998-06-24 0:07 ` Paul Tomblin @ 1998-06-24 3:44 ` Stephen Williams 1998-06-24 16:02 ` Wes Bauske 1 sibling, 0 replies; 41+ messages in thread From: Stephen Williams @ 1998-06-24 3:44 UTC (permalink / raw) To: axp-list ptomblin@xcski.com said: > I suspect what Windows does, and what X applications could easily do, > is to divide the entire color space up before hand into as many chunks > as your card would support, and then when an application requests a > color, gives it whichever of the pre-registered colours is the closest > match. That is exactly what the truecolor visual does under X. Try it. The results are mixed, although sure enough the colormap switching goes away. A color allocation will always succeed, but the closest color (that can be represented in 332) will be returned. ptomblin@xcski.com said: > But I'm sure my former collegues at Kodak could come up with something > better. "better" requires calculating a histogram of all the colors requested. A palette can be calculated from that, then the pixels can be mapped onto that calculated palette. But then, some application will display a photograph using a gazillion shades of pink and your green color scheme has left you with only 2 reds:-) Windows works because the desktop only uses a few colors that are known to exist in the M$ $tandard palette, and the applications that display images go through a *great* deal of effort to approximate and dither. High resolutions help. This is way off topic, I'll be quiet now. -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X 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 1 sibling, 1 reply; 41+ messages in thread From: Wes Bauske @ 1998-06-24 16:02 UTC (permalink / raw) To: axp-list Paul Tomblin wrote: > > Quoting Wes Bauske (wsb@paralleldata.com): > > I doubt Windows is capable of running two simultaneous high > > color apps at the same time with BOTH windows visible. Have > > I suspect what Windows does, and what X applications could easily do, is to > divide the entire color space up before hand into as many chunks as your card > would support, and then when an application requests a color, gives it > whichever of the pre-registered colours is the closest match. I don't know > the best way to allocate those colours - my first inclination on an eight bit > display would be all permutations and combinations of 3 bits for red, 3 green, > 2 blue - and then somehow map that back onto 16 bits per channel of the X > colour scheme. But I'm sure my former collegues at Kodak could come up with > something better. > Sounds like you just described the X True Color visual to me, which can be supported at 8 bits but it depends on if the X server has it implemented that way. My Rage Pro/Mystique/Permedia cards are all True Color when I run them at 16 bit with XFree on PPro's/Alphas. No flashing occurs on them when I run high color apps. X has a XGetRGBColormap/XSetRGBColormap routine to manage sharing color maps. Most apps don't go to the trouble of using this feature though. The routines also attach atoms to the Root window to allow you to fetch them from any other window. They use ICCCM (Inter Client Communication Conventions Manual) conventions when accessing the atoms/info on the root window. So, one proposal to behave "like Windows" would be to have the WM set up color maps for use by all apps and then tell everyone they have to use those colormaps. (That would float like a lead ballon) Come to think of it, when I run Netscape and XV on the same screen in 8 bit mode, things still don't flash. Who ever starts last just doesn't get many colors. Are you all saying GIMP flashes?? That's GIMP's problem then... Wes ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X 1998-06-24 16:02 ` Wes Bauske @ 1998-06-24 18:01 ` Christopher Curtis 0 siblings, 0 replies; 41+ messages in thread From: Christopher Curtis @ 1998-06-24 18:01 UTC (permalink / raw) To: axp-list On Wed, 24 Jun 1998, Wes Bauske wrote: > Come to think of it, when I run Netscape and XV on the same screen > in 8 bit mode, things still don't flash. Who ever starts last just > doesn't get many colors. Are you all saying GIMP flashes?? That's > GIMP's problem then... If you do netscape -install or have gimp install a private colormap or tell xv to use a private colormap or try to run xboing (which forces a private colormap) they flash. If they don't install a private colormap they either suffer from SEVERE color loss or don't run at all (xboing). And even then it's not the application's problem, but the users'. And then it's everyone's. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X 1998-06-23 21:03 ` The new X Wes Bauske 1998-06-24 0:07 ` Paul Tomblin @ 1998-06-24 13:59 ` Jeff Sturm 1 sibling, 0 replies; 41+ messages in thread From: Jeff Sturm @ 1998-06-24 13:59 UTC (permalink / raw) To: axp-list On Tue, 23 Jun 1998, Wes Bauske wrote: > I doubt Windows is capable of running two simultaneous high > color apps at the same time with BOTH windows visible. Have > you ever noticed that high color windows alway seem to expand > themselves to full screen under Windows? At least the 3-4 I've used > do. Two obvious reasons. One, more pixels, two, can't see what > any other window looks like. Now I don't use Windows alot so > I give them the benefit of doubt that the main reason is #1. I've tried rendering various .jpeg files in Netscape under an 8-bit display in Windows. It doesn't crash or cause an error, but the colors become dithered on the second window and all others. Curiously they remain that way even after I close all but one window. I guess Netscape on Windows doesn't manage colors too well either. Jeff ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 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:18 ` 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 2 siblings, 2 replies; 41+ messages in thread From: Pablo A. Godel @ 1998-06-23 0:18 UTC (permalink / raw) To: axp-list > 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...) > I agree with you here. I think Windoze sucks, but the GUI is much better than X-Win, just in easy of use and feel. Not in the way it looks. Regards, Pablo Godel -- ------------------------------------------------- The International Website Construction Co. (IWCC) http://www.iwcc.com.ar Miami - Sao Paulo - Buenos Aires - Lima ------------------------------------------------- ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 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 1 sibling, 0 replies; 41+ messages in thread From: Paul Tomblin @ 1998-06-23 2:28 UTC (permalink / raw) To: axp-list Quoting Pablo A. Godel (godel@iwcc.com): > > 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...) > > > > I agree with you here. I think Windoze sucks, but the GUI is much better than X-Win, > just in easy of use and feel. Not in the way it looks. Ugh. Windows is horrible. The only good thing about it is also what's wrong with it - that it's closely integrated with the OS so all the applications keep a similar look and feel. But the major inconsistencies in the way various dialogs work, the crappy file open dialog, the registry (ack, spit). From a human factors point of view, Windows 3.1 is actually a more consistent and better interface. There is a great web page about human factors and interfaces I found the other day, probably off a link from slashdot, and it was great. I've been doing user interfaces for 10 years, and I learnt a lot from those pages. If I find the URL, I'll post it. -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: The new X (was Re: Making programs 64 bit clean) 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 1 sibling, 0 replies; 41+ messages in thread From: Joakim Roubert @ 1998-06-23 8:39 UTC (permalink / raw) To: axp-list On Mon, 22 Jun 1998, Pablo A. Godel wrote: > I agree with you here. I think Windoze sucks, but the GUI is much better > than X-Win, But you can't say that. You can use what wm you want, and configure it the way you want. If you want X to be just like Winsuck, no problems, but if you want to configure Win like any X, you're smoked. > just in easy of use and feel. Not in the way it looks. And if you aren't pleade with the present window managers, write a new one yourself. That's what I call freedom and a _real_ system. /Jokke tmw. --- * Origin: FUW95 http://www.efd.lth.se/~d97jro/ (2:200/127.9) ^ permalink raw reply [flat|nested] 41+ messages in thread
* OFFTOPIC: Re: The new X (was Re: Making programs 64 bit clean) 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:18 ` The new X (was Re: Making programs 64 bit clean) Pablo A. Godel @ 1998-06-23 15:30 ` Jeff Sturm 1998-06-24 1:31 ` Christopher Curtis 2 siblings, 1 reply; 41+ messages in thread From: Jeff Sturm @ 1998-06-23 15:30 UTC (permalink / raw) To: axp-list On Mon, 22 Jun 1998, Christopher Curtis wrote: > > > 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. Many graphics operations are inherently bandwidth-intensive. Even so, many simple optimizations can be made. Xlib make no effort to cache useful information like window attributes for instance; it queries the server each time. The X libraries (and many existing applications) make little or no effort to conserve bandwidth. The LBX extensions operate as a layer between the client and server, and make a best-effort to cache information. It's not a bad idea and definitely not a "hack-on" effort. (Consider HTTP proxy servers; they serve a similar purpose for the Web as LBX does for X.) > > - portable as all hell > > Absolutely. Much more judicous use of unions is needed. Definitely. The X Consortium's sample code had a lot of portability problems. The XFree86 team has tackled some of these, but needs much more help... > > - 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 don't understand. eXceed is a commercial X display server for Windows. > > - 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 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. You certainly can't expect C++/Java/Smalltalk programmers to have to code to an ANSI-C API. There *should* be a vanilla-C API available. There also should be good O-O API's available for those who need them. Whether the display server is written with ANSI-C is an implementation issue, and shouldn't be part of the specification. > > - 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. Many applications don't use the color models properly. X supports pseudocolor, directcolor, truecolor, whatever... it tries hard to use the hardware resources as best as it can. "Colormap flashing" is a reasonable compromise on displays that are starved for colors. 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? > 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. 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. This is yet another example of programmer laziness. > 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. :( 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. > 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. <sigh> 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 files are just such an example. Many portions of the X distribution are not great (Xt comes to mind), but they are optional and no application programmer has to use them... > 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...) 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? 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... Jeff ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: OFFTOPIC: Re: The new X (was Re: Making programs 64 bit clean) 1998-06-23 15:30 ` OFFTOPIC: " Jeff Sturm @ 1998-06-24 1:31 ` Christopher Curtis 1998-06-24 14:52 ` Jeff Sturm 0 siblings, 1 reply; 41+ messages in thread From: Christopher Curtis @ 1998-06-24 1:31 UTC (permalink / raw) To: axp-list 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?) > <sigh> 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/ ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: OFFTOPIC: Re: The new X (was Re: Making programs 64 bit clean) 1998-06-24 1:31 ` Christopher Curtis @ 1998-06-24 14:52 ` Jeff Sturm 0 siblings, 0 replies; 41+ messages in thread From: Jeff Sturm @ 1998-06-24 14:52 UTC (permalink / raw) To: Christopher Curtis; +Cc: axp-list On Tue, 23 Jun 1998, Christopher Curtis wrote: > I stand corrected. I never had a problem with an xterm over a dialup. > Frame is virtually unusable. I have found *any* Motif application unusable over a dialup. I'm not exactly sure if this is a deficiency in Motif or Xt... > 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? A lot of programs probably ought to be rewritten. That doesn't mean we necessarily have to overhaul the X protocol. Keeping backward compatiblity is necessary to leverage the existing base of X applications and servers... Part of my gripe with the X Consortium (and now the TOG) is the pitiful effort they have made to modernize the "sample" code. (They call it "sample" code, but tell me most vendors don't ship a majority of it unmodified.) It looks like 1980's stuff nowadays. And now we have to *pay* for it... Fortunately I don't think backward compatibility would be too much a burden for a "next-generation" X window system. Many of the ideas in X11 are sound. The sample implementation sucks though. > 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". You've made some good suggestions. Higher-level tookits (kinda like Qt) will go a long way towards making X more usable. I would start off by rewriting Xlib. There's a lot of crap in there now, and almost all X programs rely too much on it. The good news is that we could do a replacement for Xlib and not lose any compatibility as long as we keep the old Xlib around and don't break any of the existing X protocol. I can see the benefits to making the X server more toolkit-aware. Not that I would want anything like Motif code in my X server though... One of my ideas is to implement common toolkit operations like dialogs with some sort of platform-neutral bytecode (OK, there's a plug for java I suppose), and have a server extension so that my application can upload the bytecode to the server where it can execute more efficiently. That'll work nicely over a network connection and without any precustomization of the display server. (This should sound real familar to any NS/OS/Rhapsody users whose DPS servers have done that for years...) Jeff ^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: Making programs 64 bit clean 1998-06-22 17:35 Making programs 64 bit clean Greg Lindahl 1998-06-22 19:32 ` Michal Jaegermann @ 1998-06-22 19:53 ` Richard Hadsell 1 sibling, 0 replies; 41+ messages in thread From: Richard Hadsell @ 1998-06-22 19:53 UTC (permalink / raw) To: axp-list Greg Lindahl wrote: > > > Is this an acceptable solution to making programs 64 bit clean and is it > > portable across 32 bit and 64 bit platforms? > > This is the easiest way to fix broken code. However, it isn't > necessarily portable to other 64 bit machines -- I think everyone > else (?) defines long == 32 bits and long long == 64 bits. > > Your best bet for a clean, easy solution is to typedef an int64 type > and use that, with an appropriate definition for each machine. If you > are clever you can put that into a configure script... If you have to do it, long has been the traditionally safe way to convert between integers and pointers. I can't find where I read that, but the ARM said in sec. 5.4, "A pointer converted to an integer of sufficient size (if any such exists on the implementation) and back to the same pointer type will have its original value; ..." I haven't heard of any platforms for which long is smaller than a pointer; long long is not yet supported on some compilers, so I wouldn't rely at all on its portability. So I use long, when necessary. Of course, I do it through a typedef (iptr) that I define in a header that has other machine-dependent typedefs. I wouldn't waste space and performance by forcing 32-bit pointers through an int64. -- Dick Hadsell 914-381-8400 Fax: 914-381-9790 Reply-to: hadsell@blueskystudios.com Blue Sky | VIFX http://www.blueskystudios.com 1 South Road, Harrison, NY 10528 ^ permalink raw reply [flat|nested] 41+ messages in thread
end of thread, other threads:[~1998-06-24 18:03 UTC | newest] Thread overview: 41+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox