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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9923b1c3be80099b X-Google-Attributes: gid103376,public X-Google-Thread: fdb77,9923b1c3be80099b X-Google-Attributes: gidfdb77,public From: Mike Stark Subject: Re: Ada to byte-code compiler works as advertised Date: 1996/09/28 Message-ID: <324D483A.749C@gsfc.nasa.gov>#1/1 X-Deja-AN: 185908201 references: <324BF60E.4DEF@gsfc.nasa.gov> <52jrt6$frj@map.mda.ca> content-type: text/plain; charset=us-ascii organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA mime-version: 1.0 newsgroups: comp.lang.java.advocacy,comp.lang.ada x-mailer: Mozilla 3.0 (Macintosh; I; 68K) Date: 1996-09-28T00:00:00+00:00 List-Id: Ray Blaak wrote: > > Mike Stark writes: > > >1. Have a Java applet call Ada code. The application we have been > >working with is to draw a satellite ground track over a world map. The > >graphics is coded in Java, and the computation of latitude and longitude > >are computed in Ada. > > Would it have been difficult to write the graphics in Ada as well? I have no > idea what the Ada interface to the Java graphics API is like. > > Cheers, > Ray Blaak > blaak@mda.ca Ray -- I don't believe it would be difficult, but I haven't done this. Intermetrics has produced an Ada package interfaces to all the classes in the AWT libraries (as well as all the other libraries). In fact, I believe it would be easier (if you are already Ada literate, that is) to stick with writing Ada code and to reference the Ada interfaces to the Java classes. One reason we looked at Java calling Ada is we have a lot of C/C++ types who want to look at Java and to produce a sample applet as a learning experience. Being able to link in the Ada code to compute longitudes and latitudes was a convenience to people who wanted to concentrate on drawing the ground track on top of a map. Well, that's a long-winded answer. The short version is that it should be easy to write the graphics in Ada, but since I haven't done it personally I don't want to make a lot of wild claims. Mike