From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e429176c9adb07b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-18 05:30:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: [OT] Best way to isolate a GUI? Date: Tue, 18 Feb 2003 08:29:50 -0500 Organization: MindSpring Enterprises Message-ID: References: <3E511C15.1040404@acm.org> <3E5121BD.4010200@cogeco.ca> NNTP-Posting-Host: d1.56.b3.30 X-Server-Date: 18 Feb 2003 13:30:56 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:34194 Date: 2003-02-18T13:30:56+00:00 List-Id: You could get it down to one task if you basically go to some kind of message protocol. Build a wrapper around something like GtkAda that deals with the callbacks, etc. That builds up messages that are queued for the app. The app pulls them out of the queue as it is ready for them and queues up responses for the GUI. That doesn't fix Motif & GtkAda from being a C-ish thing, but it hides all the C-ishness in the wrapper. You'd also get a means by which you could have a portable GUI interface by building a similar wrapper around Claw or anything else that gets dreampt up. In the perfect world where there is an ongoing Ada Operating System project, this might be a great design for the interface to the GUI. Asynchronous message traffic via any number of communication mechanisms. MDC -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/ Send Replies To: m c o n d i c @ a c m . o r g "Going cold turkey isn't as delicious as it sounds." -- H. Simpson ====================================================================== Warren W. Gay VE3WWG wrote in message news:3E5121BD.4010200@cogeco.ca... > > This sounds conceptually nice, but it could prove to have practical > problems (I need to think about this more, myself). Thinking in terms > of an X11/MOTIF application, where there can be hundreds of windows within > windows to implement widgets on a form, this translates to hundreds > (if not more) of tasks. This smells a lot like overkill upon first > blush at least. >