TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To:
Nasser Abbasi <[log in to unmask]>
Date:
Mon, 29 Jun 1998 17:52:33 -0700
Reply-To:
Subject:
From:
Dave Wood <[log in to unmask]>
Content-Transfer-Encoding:
7bit
Organization:
Aonix
Content-Type:
text/plain; charset=us-ascii
Parts/Attachments:
text/plain (68 lines)
Nasser,

Why not write in Ada and simply access the
Java APIs that you want through bindings?  A
full JDK binding is provided with ObjectAda
(as is the JDK itself), so you can write
your code in Ada and access the full JDK
API at the same time.

Presumably when ACT releases its byte code
generator, you'll be able to do the same
thing with GNAT as well.

You can also look at Shayne Flint's AdaJNI,
which gives you access from native Ada code
to JVM components.  This is a different, but
elegant approach.

You say you prefer to use Ada, and it seems
to me that the capability is there (and not
expensively) for you to do what you want to
do.

-- Dave Wood, Aonix


Nasser Abbasi wrote:
>
> I am starting to write a new program to a customer. I have the choice of
> using C/C++/Ada95/Java.  although I like Ada, I choose Java. Becuase I
> can go to Oracle web page and download JDBC driver rigth away, and be
> able to connect my Java application to the database in few lines. Java
> also has a rich set of API's that comes with the JDK, and very good API
> documentations.
>
> Ada might have that too, but there are not packaged along the "Ada"
> itself, one has to go look on the net for other Ada components/pakcages.
>
> So, what I think Ada needs is:
>
> - More API's
> - more API' and more API's.
>
> And these should be "packaged" with the "Ada" system. for example, I use
> GNAT, and what would really help, is if I download GNAT, it also come
> well documented with all these cool extra Ada packages in a "supplement"
> type directory, so that we standarize on.  The javadoc tool is realy
> cool to document ones own software. I have all my Java classes I write
> documented on my web page. If I need to find something, I quickly find
> it. would be neat to have something like javadoc for Ada.
>
> The JDK API's are becomming standard becuase they come with JDK.
>
> Simple example. In Java, if I want to find if a file is readable, I use
> the File class and call the method that tells me the file is readble or
> not. In a platform independent way. If I want to find if a file is a
> directory, I call a method in the File class to find that. It is all
> there well. This is what Ada needs. I dont think the Ada to Java hooks
> will take of. If someone wants to generate Java byte code, they'll use
> Java directly.
>
> I'd rather use Ada, but Java makes it easier for me now to do what I
> want.
>
> IMHO
>
> Nasser

ATOM RSS1 RSS2