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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!u30g2000hsc.googlegroups.com!not-for-mail From: ezkcdude Newsgroups: comp.lang.ada Subject: Re: Newbie Needs Ada Advice Date: 3 May 2007 15:14:44 -0700 Organization: http://groups.google.com Message-ID: <1178230484.477843.246300@u30g2000hsc.googlegroups.com> References: <1178212418.538270.283700@c35g2000hsg.googlegroups.com> <13vhf5k6nma46$.12ppi114g4m13$.dlg@40tude.net> NNTP-Posting-Host: 169.147.3.25 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1178230485 16060 127.0.0.1 (3 May 2007 22:14:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 May 2007 22:14:45 +0000 (UTC) In-Reply-To: <13vhf5k6nma46$.12ppi114g4m13$.dlg@40tude.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: u30g2000hsc.googlegroups.com; posting-host=169.147.3.25; posting-account=UbN39Q0AAADjt_3dTnzY1z4Qc9xnXw4K Xref: g2news1.google.com comp.lang.ada:15484 Date: 2007-05-03T15:14:44-07:00 List-Id: Thanks, Dmitry! That was helpful. -evan On May 3, 1:24 pm, "Dmitry A. Kazakov" wrote: > 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=... > > > 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. Kazakovhttp://www.dmitry-kazakov.de