JGNAT and JRE



Hello,

Some time ago I wrote:

>
> I am going to write a few pages article about Ada for an Italian
Linux
> and Open Source devoted printed magazine. It'll be just an
introduction article
> to the language main features and great capabilities, it won't be a
> very technical detailed one.
>
> [cut some more lines]
>

Now a first draft has been approved by the editor who however asked me
to provide more informations on Ada executing on Java Virtual Machine.
That was because I cited JGNAT in the article as a bytecode compiler
for JVM. He thinks that the capability to compile once and execute
everywhere there is run-time support could "convert" many software
developers (especially Java ones) to Ada. All things considered I must
agree with him, even when I'have already structured the article with
respect to the language basic features.

The problem is that I didn't know much more than just the existence of
this capability and I'd never used it. Anyway I have been able to
downloaded JRE and JGNAT, then compiling and executing some sample
code. My intention was to understand something more about these tools
in order to be able to provide better informations and some practical
examples of this subject in the article.

JGNAT seemed working fine with some simple programs until I compiled a
new one that uses tasks without errors. But when I tried to execute it
I got "Exception in thread "main"
java.lang.IllegalMonitorStateException". What is this exception?

Above all, what really matters is whether or not I can write (1) JGNAT
is reliable for production use, (2) if it is actively maintained and
updated, (3) if there exist any kind of practical restrictions in using
it. Any answers and comments on either these issues or everything
related would be very appreciated and useful in writing a good Ada
introduction (I imagine it may matter many of you).

Another related subject is A#, intended as another tool to write once
and execute everything run-time support is provided. Some time ago I
looked at M.Carlisle site where I knew it is actively maintained, but
my interest run out when it seemed working only on MS-Win. Anyway
someone recently told me A# should also execute in Linux with Mono. Is
it true? Can someone provide much precise information about this issue?

What above all interests is (1) whether or not it works with Mono, (2)
if someone willing to use it must learn a different syntax from plain
old Ada95, (3) if there are any issues restricting a "normal" serious
production.

Thanks in advance to any of you who will reply.

Ciao,

fabio de francesco

.



Relevant Pages

  • Re: Current status of Ada?
    ... learning and using this great language. ... The reason why compilers maker can't make their compiler totally free ... I agree with you that most of the links you can find on Ada websites ... AdaCore has contributed a free gnat compiler to ...
    (comp.lang.ada)
  • Re: Ravenscar-compliant bounded buffer
    ... the mid 1980's most compiler are FRONT_END compilers aka ... any system build around GNAT will contain the C code that GNAT ... The XGC Ada which is based on GNAT and uses C for its Real Time ... with VAXes for data processing applications. ...
    (comp.lang.ada)
  • Re: 7E7 Flight Controls Electronics
    ... Given that people had choices and Ada ... the 800 or so programming languages in use by the DoD, ... DoD1 was expected to provide a 'language of last resort', ... need modifications to a compiler to support particular requirements, ...
    (comp.lang.ada)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... Though I haven't done so recently, back when I used Ada, nowhere close ... This can be ameliorated in a case like GNAT, where the Ada compiler ... _every_ programming language places severe limits on expressiveness; ... Ada's exception handling is also primitive at best (exceptionally so, ...
    (comp.lang.cpp)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... Though I haven't done so recently, back when I used Ada, nowhere close ... This can be ameliorated in a case like GNAT, where the Ada compiler ... _every_ programming language places severe limits on expressiveness; ... Ada's exception handling is also primitive at best (exceptionally so, ...
    (comp.lang.ada)