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: Nick Roberts Newsgroups: comp.lang.ada Subject: Re: Converting Java To Ada? Date: Wed, 15 Dec 2004 04:43:35 +0000 Message-ID: <329tnmF3jb1vhU1@individual.net> References: <1103076212.316640.304940@z14g2000cwz.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 4qu7UoTJvKj4JbIhTWClzwouIToWUb1hMk9Wmm/haMP5KlyOU= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:6954 Date: 2004-12-15T04:43:35+00:00 List-Id: 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). -- Nick Roberts