From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Newbie Needs Ada Advice
Date: Tue, 08 May 2007 21:28:04 +0300
Date: 2007-05-08T21:28:04+03:00 [thread overview]
Message-ID: <5abtplF2n3855U1@mid.individual.net> (raw)
In-Reply-To: 1178635220.859690.3310@y80g2000hsf.googlegroups.com
ezkcdude wrote:
> One idea I have, and I'd love to hear advice or comments, is to use
> Ada as the "engine" for my program, and somehow use Java to create the
> GUI and deal with images. Does this seem like a possibility?
> -evan
I've done this, or something similar. My core was a stand-alone Ada program,
with SOAP web services (again, thanks to AWS) for feedback/command. Any
compliant soap client could interact with my core, and in fact I had a java
one.
If you want to have a single executable, I don't know how to link with
java... unless you use gjc I suppose (or jgnat, but I understand is heavily
outdated and unmaintained). But then, you can easily go the Ada+C+C++ way.
Calling Ada from C/C++ is easy; C from Ada likewise. C++ is a bigger
problem that I usually avoid with a simple C gluing layer.
Then, all the myriads of libraries in C/C++ are there for you, and you can
program the part you deem necessary in Ada (if any, of course).
As an example: my current project uses a core in Ada, that interfaces with a
robotic library for both control and simulation that has a C API.
Furthermore, I must exchange data using YARP (a C++ library) with some
modules programmed by colleagues, and I do this with just a simple C++ file
with extern "C" exports for calling from Ada.
In truth, there's some overhead in going mixed-language. But once you define
interfaces and stick to them, the rest is piece of cake.
But if your non-Ada concern is a good GUI, maybe you should take a look a
the Ada bindings first. Maybe GtkAda is your deal (though if you're an Ada
newcomer I don't think so :) or one of the others is...
I don't really know how people build the amazing GUIs I see in my KDE
desktop. Which tools are out there? KDevelop? Some Qt builder? Glade
doesn't impress me much, I think I'm also missing something in the Gtk+
side.
As the bottom line of my personal current oppinion: if I were to build a
good GUI for my Ada code, I'd use whatever toolkit I liked best, in its
native language, and glue it to Ada via C exports.
next prev parent reply other threads:[~2007-05-08 18:28 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 17:13 Newbie Needs Ada Advice ezkcdude
2007-05-03 18:24 ` Dmitry A. Kazakov
2007-05-03 22:14 ` ezkcdude
2007-05-04 4:07 ` tmoran
2007-05-04 12:57 ` Bob Spooner
2007-05-04 13:38 ` Dmitry A. Kazakov
2007-05-04 14:40 ` ezkcdude
2007-05-04 19:19 ` Bob Spooner
2007-05-04 19:48 ` Dmitry A. Kazakov
2007-05-06 21:46 ` ezkcdude
2007-05-07 7:31 ` Dmitry A. Kazakov
2007-05-07 7:42 ` Alex R. Mosteo
2007-05-07 9:15 ` Dmitry A. Kazakov
2007-05-08 2:58 ` Justin Gombos
2007-05-08 11:58 ` ezkcdude
2007-05-04 4:42 ` Jeffrey R. Carter
2007-05-04 6:48 ` Jacob Sparre Andersen
2007-05-07 8:01 ` Markus E Leypold
2007-05-08 14:40 ` ezkcdude
2007-05-08 15:07 ` Pascal Obry
2007-05-08 15:27 ` ezkcdude
2007-05-08 15:54 ` Pascal Obry
2007-05-08 16:07 ` Georg Bauhaus
2007-05-08 18:42 ` Markus E Leypold
2007-05-08 16:18 ` Ali Bendriss
2007-05-08 19:23 ` Michael Bode
2007-05-08 16:11 ` Markus E Leypold
2007-05-08 16:49 ` ezkcdude
2007-05-08 18:20 ` Ludovic Brenta
2007-05-08 21:17 ` Markus E Leypold
2007-05-08 18:45 ` Markus E Leypold
2007-05-08 18:28 ` Alex R. Mosteo [this message]
2007-05-08 18:51 ` ezkcdude
2007-05-08 19:31 ` Michael Bode
2007-05-08 19:43 ` Michael Bode
2007-05-08 20:02 ` Dmitry A. Kazakov
2007-05-08 21:26 ` Markus E Leypold
2007-05-08 21:21 ` Markus E Leypold
2007-05-08 21:27 ` ezkcdude
2007-05-08 21:56 ` Markus E Leypold
2007-05-09 13:25 ` Jacob Sparre Andersen
2007-05-09 15:58 ` Markus E Leypold
2007-05-10 21:20 ` Memory mapped files and shared memory (Was: Newbie Needs Ada Advice) Jacob Sparre Andersen
2007-05-11 16:38 ` ezkcdude
2007-05-10 18:14 ` Newbie Needs Ada Advice Chip and Allie Orange
2007-05-27 5:50 ` adaworks
2007-05-29 12:54 ` ezkcdude
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox