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,58253cbf46bbb1fc X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!amsnews11.chello.com!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Automated conversion to C++? Date: Sat, 16 Feb 2008 14:21:19 +0100 Organization: Jacob's private Usenet server Message-ID: References: NNTP-Posting-Host: dhcp9.dhcp.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1203168099 6292 172.24.5.9 (16 Feb 2008 13:21:39 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 16 Feb 2008 13:21:39 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:YBwplavnS2bnw3oEjKk/DABsSIk= Xref: g2news1.google.com comp.lang.ada:19816 Date: 2008-02-16T14:21:19+01:00 List-Id: Jeffrey R. Carter wrote: > Jacob Sparre Andersen wrote: >> The good part is that I am allowed to do the actual programming in >> Ada, and just use an automated translator to generate the C++ code. > > Such a thing is impossible, since Ada is a concurrent language, and > C++ is a sequential language, unless you want to translate the > entire concurrency runtime and include calls to it. It is good enough with POSIX dependent C++ code. And I don't plan to do anything which depends critically on the more detailed requirements on Ada tasking (a "pthreads" based solution is likely to be good enough). I have no interest in perfect C++ code. It should just be able to pass through a C++ compiler, and give roughly the same answer as the Ada code. Greetings, Jacob -- "I'm going as a barrel of toxic waste!"