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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b1d4080b67b74ba5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Tommy Zhu Newsgroups: comp.lang.ada Subject: Re: Converting Java To Ada? Date: Fri, 17 Dec 2004 13:19:32 +0000 Message-ID: <32g4a9F3m3dssU1@individual.net> References: <1103076212.316640.304940@z14g2000cwz.googlegroups.com> <329tnmF3jb1vhU1@individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net tgfswAcSd88jbfy9vCalwArI7JikIMIC7/3ek840Lq0OHQgmCY User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en In-Reply-To: <329tnmF3jb1vhU1@individual.net> Xref: g2news1.google.com comp.lang.ada:7030 Date: 2004-12-17T13:19:32+00:00 List-Id: I would suggest add this topic to Ada Faq:The Ada Funnies. Nick Roberts wrote: > Brian May wrote: > >> conradwt> Hi, are there any tools for converting Java source to >> conradwt> Ada source (i.e. adb and ads)? >> >> Yes. >> >> It is called a "programmer". These tools walk around on two legs and >> eat pizza. Make sure you get the correct model, you want a model that >> supports Ada and Java. Also make sure you have plenty of pizza. >> >> Sorry, couldn't resist ;-). > > > In fact, I would concur with this answer. > > If you only need to convert from Java to Ada because a Java executive is > not available for the environment in which you wish to run the program, > then an automated conversion tool might make sense. But this seems like > an unlikely scenario, somehow. > > If, on the other hand, you need to convert a Java program into Ada, and > then subsequently maintain the program (in Ada), then I suggest you use > the aforementioned bipedal pizzivorous tool. > > There are good reasons for this. Ada provides many language constructs > that have no direct analogy in Java (and there are a few Java constructs > whose Ada analogues are ugly as hell). Probably, only a human -- and a > very skilled one, at that -- can make the sophisticated transformations > required to convert the Java idioms into appropriate Ada ones. > > Oh, and I've heard that these humans drink copious quantities of coke, > as well as eating pizza at all times of the day and night (plus the > occasional Alka-Selza). >