comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Ada 'hello world' for Android; success! (but music player failure)
Date: Mon, 28 Nov 2011 17:35:26 -0500
Date: 2011-11-28T17:35:26-05:00	[thread overview]
Message-ID: <82r50ran9t.fsf_-_@stephe-leake.org> (raw)
In-Reply-To: 27491240.406.1322407095677.JavaMail.geo-discussion-forums@yqf20

mockturtle <framefritti@gmail.com> writes:

> Your post is almost one month old (I did not check the group for a
> while), but I wanted to add my congratulations to the thread.

Thanks.

However, I have now finished writing a first draft of a (very small)
music player app, and it does not work.

I encountered more bugs, both in jvm2ada and jvm-gnat. I fixed a few,
found workarounds for more, and finally got the thing to compile,
install, and get past the first "can't find the main class name" error.

Now it can't find many methods, so this is _not_ a case of "if it
compiles, it will run". Which is a good reason to give up.

Another reason to give up; I could not use Ada.Containers (due to more
jgnat bugs). So I had to use java.util.LinkedLists. Which is generic,
but jgnat doesn't support Java generics, so the linked list just
contains java.Lang.Object, and we lose type safety.

Another reason to give up; Java interfaces don't map to Ada interfaces
(because jgnat was initially designed before Ada interfaces were
invented), so using Java interfaces is awkward.

At this point, my opinion of GNAT for JVM is:

1) it probably works well if you are writing a stand-alone Ada program
that is compiled for the JVM target.

2) it is _not_ good enough when trying to import large amounts of Java
code, and export the Ada main programs (as is the case for a real
Android app).

So I'm giving up, and going back to Java.

We need a major player to decide they need secure, reliable apps on
Android, so they will pay to fix jgnat.

Here's a scenario; convert President Obama to Android (he currently uses
a Blackberry), so the Pentagon has to get secure apps for him. :).

-- 
-- Stephe



  reply	other threads:[~2011-11-28 22:36 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27  1:18 Ada 'hello world' for Android; success! Stephen Leake
2011-10-27  7:12 ` Alex R.  Mosteo
2011-10-28 12:51   ` Stephen Leake
2011-10-27 10:50 ` Jeffrey Creem
2011-10-28 13:01   ` Stephen Leake
2011-10-27 10:58 ` Brian Drummond
2011-10-28  1:37 ` Shark8
2011-10-28 12:22 ` Anatoly Chernyshev
2011-10-29 13:37   ` Stephen Leake
2011-10-29 14:46     ` Anatoly Chernyshev
2011-10-29 20:47       ` Brad Moore
2011-10-29 21:59         ` Anatoly Chernyshev
2011-10-30  3:51           ` Brad Moore
2011-10-30  7:20             ` Anatoly Chernyshev
2011-10-30 10:56       ` Stephen Leake
2011-10-30 17:32         ` Brad Moore
2011-10-29 15:32     ` Georg Bauhaus
2011-10-29 16:09       ` Simon Wright
2011-10-29 17:32         ` tmoran
2011-10-30 11:38           ` Stephen Leake
2011-10-29 20:51         ` Brad Moore
2011-10-30 11:32       ` Stephen Leake
2011-10-31 22:34         ` Randy Brukardt
2011-11-01  8:41           ` Stephen Leake
2011-11-01  9:30         ` Georg Bauhaus
2011-11-02 15:55           ` Stephen Leake
2011-11-02 17:37             ` Robert A Duff
2011-11-08  3:56               ` Randy Brukardt
2011-11-03  0:37             ` Georg Bauhaus
2011-11-03 11:36               ` Stephen Leake
2011-11-03 15:24                 ` Robert A Duff
2011-11-03 18:43                   ` Pascal Obry
2011-11-03 22:14                 ` Georg Bauhaus
2011-11-04  8:48                   ` Dmitry A. Kazakov
2011-11-04 12:18                   ` Stephen Leake
2011-11-04 15:03                     ` Georg Bauhaus
2011-11-05 16:56                       ` Stephen Leake
2011-11-01  9:52         ` Dmitry A. Kazakov
2011-11-02 15:59           ` Stephen Leake
2011-11-02 16:27             ` Dmitry A. Kazakov
2011-11-02 17:38               ` Simon Wright
2011-11-10 17:25 ` Stephen Leake
2011-11-27 15:18 ` mockturtle
2011-11-28 22:35   ` Stephen Leake [this message]
2011-11-29 11:23     ` Ada 'hello world' for Android; success! (but music player failure) Georg Bauhaus
2011-11-30  3:33       ` Stephen Leake
2011-11-30 18:57         ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox