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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ffe4fb1477fe67e6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Newbie Needs Ada Advice Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1178212418.538270.283700@c35g2000hsg.googlegroups.com> Date: Thu, 3 May 2007 20:24:00 +0200 Message-ID: <13vhf5k6nma46$.12ppi114g4m13$.dlg@40tude.net> NNTP-Posting-Date: 03 May 2007 20:23:30 CEST NNTP-Posting-Host: 644a9817.newsspool4.arcor-online.net X-Trace: DXC=141N^QCMecRHigV@eW57PQ4IUK On 3 May 2007 10:13:38 -0700, ezkcdude wrote: > I'm interested in using Ada, so I installed the GNAT compiler on > Windows (tried on Mac, but I had problems with X11). Anyway, I want to > dive in head-first, and my main question is how do you guys write > programs with GUIs? There are lots of bindings and GUI libraries out here. Here is a list: http://www.adapower.com/index.php?Command=Class&ClassID=AdaGUI&Title=Ada+GUI > Do you use the gdk toolkit primarily? Yes, I am using GTK+ (through GtkAda bindings). It does not make me happy. GTK+ does not, I mean. IMO, GTK+'s ideology is quite alien to Ada. And Windows (did you speak about Windows?) support in GTK+ is not that perfect. But I am sure you will be able to get most of what you wished. > Also, the > application I eventually have in mind is for automated control of a > microscope, so I need to be able to interface with drivers/serial > ports/firewire/etc. That should not be a problem if you have drivers for. From Ada you can do whatever OS calls you wished. > Do you have any advice for me to help me along? I would say that for automation, a proper use of tasking is essential. If your data flow and control is fast, you might get problems with the event-controlled design of GUI. This is a weak point of many GUI libraries. You might wish to consider a time-controlled visualization architecture. Don't try to optimise your code in advance. In these times computers are quite fast, while sensors and actuators are comparatively slower. So you can sacrifice some performance for a cleaner software design. Further many ad-hoc assumptions about efficiency of this or that language construct often turn wrong. 5-10 ms soft real-time is no more a problem. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de