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 Path: g2news1.google.com!news3.google.com!news.germany.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 17:42:16 +0100 Organization: Jacob's private Usenet server Message-ID: References: NNTP-Posting-Host: taasingegade.news.jacob-sparre.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: jacob-sparre.dk 1203180155 21932 85.82.239.166 (16 Feb 2008 16:42:35 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 16 Feb 2008 16:42:35 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:bePaiDYgzQGUgIe7sgqq/tsRRlQ= Xref: g2news1.google.com comp.lang.ada:19821 Date: 2008-02-16T17:42:16+01:00 List-Id: Dr. Adrian Wrigley wrote: > On Fri, 15 Feb 2008 14:33:08 +0100, Jacob Sparre Andersen wrote: > If you have to supply a C++ program semanticly equivalent to the > binary you deliver, the best choice is to write it in pure C (or > C++). The requirement for C++ has not been formulated in such strict terms. If I come to the conclusion that writing directly in one of the C-languages is the only option, I'll just skip the project. > You are guaranteed equivalence. You need find no translators. You > have no mismatches in runtime. The risk is low. But my working environment will be unbearable. > C++ makes so many Ada capabilities a real nuisance to implement. > Basics like enumerations with constraint checks, fixed point types, > floating point attributes, integer over/underflow exceptions need > loads of messy C++ (often with specialized headers) to implement. I don't care about how messy the C++ code is going to be. We'll most likely be running the Ada version internally. The C++ code is only a matter of public perception. The project lead is of the opinion that publishing the system with C++ code will make more scientists interested in the system. > If a customer is paying to get C++ source, don't write it in Ada - > they presumably don't care for a robust, low-defect solution. If > they did, they would put constraints on the C++ (eg must run at > least 80% of the speed. Use no more than 1.3x the memory) It is not a matter of code quality. It is a matter of a decent work environment for myself. Thanks for the advice. Jacob -- �It will not be forever. - It will just seem like it.� -- Death