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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-16 09:24:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: achrist@easystreet.com Newsgroups: comp.lang.ada Subject: Re: [OT] Best way to isolate a GUI? Date: Sun, 16 Feb 2003 09:25:16 -0800 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3E4FC97C.A464E0A9@easystreet.com> X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:34155 Date: 2003-02-16T09:25:16-08:00 List-Id: Here's one way to do it. (1) Write the GUI in TCL (Use a GUI builder for Tcl). (2) Write the functionality in Ada. Package it as a DLL, COM server, or shared library. (3) Write the connection between the GUI and the functionality in C/C++ using Tcl.h and Tk.h. Al Jano wrote: > > Hello, > > as for my (lately) frequent questions, you may be aware I'm starting a > new project in Ada. Well, the matter is that I want the core > functionality to be isolated from the GUI. And that's the question: > how's the best mean to do that. > > I've thought the following: > > 1) Use AWS and let any browser do the rendering. That's not really > isolating the GUI, because all the generating code would be inside the > core (unless I also apply): > > 2) Use sockets to communicate the two processes. > 2.a) Use regular Ada streams to pass data types. > 2.b) Use some other protocol, for example [compressed] XML. > > 3) Your sugestions welcome. > > I would want that the isolation be such any kind of GUI can be build on > top. Maybe even made two of them run concurrently. For example, web > reports via AWS and a control GUI with native look. > > Any have prior experience? Some successful example on the wild to check? > > Thanks in advance, > > -- > ------------------------- > Jano > 402450[at]cepsz.unizar.es > -------------------------