comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: [OT] Best way to isolate a GUI? (The final fronteer?)
Date: Tue, 25 Feb 2003 12:33:09 -0500
Date: 2003-02-25T12:33:09-05:00	[thread overview]
Message-ID: <3E5BA8D5.7050403@cogeco.ca> (raw)
In-Reply-To: 7vptpg1o58.fsf@vlinux.voxelvision.no

Ole-Hjalmar Kristensen wrote:
> "Marin David Condic" <mcondic.auntie.spam@acm.org> writes:
> 
> <snip>
> 
>>In my little imaginary world of dreaming up a way to separate the GUI from
>>the app, I tend to like a messaging scheme because it is loosely coupled and
>>flexible enough that it could probably be mated to a number of GUIs and GUI
>>builders as well as staying language neutral. I think if one went another
> 
> 
> That's one of the reasons the interface to the X window system server is actually
> defined as a network protocol.

Note however, that these messages have serial numbers for serialization
and error checking purposes. However, if you check most X Window
programs, error checking is effectively non-existant. The reason for
this is that the status coming back, comes much later than the request
(the application normally allows new requests to be issued before the
status comes back).

While errors can be checked and reacted to well after the fact, it
becomes rather impractical in most applications.  The problem is that
once an error is detected, you have to consider what other operations have
just been requested, how many of them succeeded, and how many are still
on their way to the server.

To avoid this, you can have the X Window system work in a synchronous
type of mode (I forget the name of this call that controls this), but
the performance is so bad that most apps have this off by default, or
turn it off when required.

So when one considers a design, you must always look at all sides
of it, because there are many practical considerations getting in
the way of the "ideal", unfortunately.

>>route - that involving callbacks - one would likely lose the flexibility and
>>find it difficult to make it line up with more than one GUI at a time. While
>>callbacks are going to have certain advantages (forcing a certain amount of
>>command/response protocol and returning results to the GUI) I think that
>>careful design of a messaging system might be able to live without those
>>advantages or synthesize them in some other way. So you pays your money and
>>you takes your pick. :-)

I agree that one should always be questioning the
"accepted world" in technical terms (in this case callbacks).
Only by doing this are new techniques or discoveries made.

However, on this one, I don't think we're quite there yet ;-)

-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg




  reply	other threads:[~2003-02-25 17:33 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-16 10:19 [OT] Best way to isolate a GUI? Jano
2003-02-16 14:47 ` Ed Falis
2003-02-16 14:49 ` Victor Porton
2003-02-17 20:52   ` Jano
2003-02-16 16:36 ` Robert C. Leif
2003-02-17  8:44   ` Preben Randhol
2003-02-17 16:22     ` Robert C. Leif
2003-02-17 17:30     ` Jeffrey Carter
2003-02-17 17:54       ` Warren W. Gay VE3WWG
2003-02-17 19:06         ` Randy Brukardt
2003-02-18  3:15           ` Warren W. Gay VE3WWG
2003-02-18 16:14             ` Robert C. Leif
2003-02-18 18:10             ` Randy Brukardt
2003-02-18 21:12               ` Warren W. Gay VE3WWG
2003-02-18 23:20                 ` Randy Brukardt
2003-02-19 18:28                   ` Warren W. Gay VE3WWG
2003-02-20 19:39                     ` Randy Brukardt
2003-02-20 21:34                       ` Warren W. Gay VE3WWG
2003-02-20  7:50                   ` Dale Stanbrough
2003-02-19 12:49                 ` Marin David Condic
2003-02-19 18:35                   ` [OT] Best way to isolate a GUI? (The final concensous?) Warren W. Gay VE3WWG
2003-02-20 12:40                     ` Marin David Condic
2003-02-20 13:13                       ` Dmitry A. Kazakov
2003-02-20 22:01                       ` Warren W. Gay VE3WWG
2003-02-21  1:25                         ` tmoran
2003-02-21  2:08                         ` Marin David Condic
2003-02-21 17:27                           ` Jeffrey Carter
2003-02-22 14:10                             ` Marin David Condic
2003-02-21 18:02                           ` Warren W. Gay VE3WWG
2003-02-22 14:49                             ` Marin David Condic
2003-02-22 22:50                               ` tmoran
2003-02-23  5:18                               ` Robert C. Leif
2003-02-24 18:06                               ` Warren W. Gay VE3WWG
2003-02-25  1:20                                 ` Robert C. Leif
2003-02-25 17:57                                   ` Warren W. Gay VE3WWG
2003-02-25 12:41                                 ` Marin David Condic
2003-02-25 13:32                                   ` Ole-Hjalmar Kristensen
2003-02-25 17:33                                     ` Warren W. Gay VE3WWG [this message]
2003-02-20  8:26                   ` [OT] Best way to isolate a GUI? tmoran
2003-02-20 12:51                     ` Marin David Condic
2003-02-20 18:47                       ` tmoran
2003-02-17 19:31         ` tmoran
2003-02-18  1:37         ` Jeffrey Carter
2003-02-18  3:39           ` Warren W. Gay VE3WWG
2003-02-18 23:36           ` Randy Brukardt
2003-02-18 13:29         ` Marin David Condic
2003-02-18 18:01           ` Warren W. Gay VE3WWG
2003-02-19 13:06             ` Marin David Condic
2003-02-16 17:25 ` achrist
2003-02-16 21:24 ` Bobby D. Bryant
2003-02-16 21:52 ` David Marceau
2003-02-17  0:57 ` Re; " tmoran
2003-02-17  7:25   ` Jano
2003-02-17 14:09     ` Bobby D. Bryant
2003-02-17 21:12       ` Jano
2003-02-18  7:24         ` Jean-Pierre Rosen
2003-02-18 13:08 ` Marin David Condic
replies disabled

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