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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f822ae7b0f7433c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!aioe.org!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada Subject: Re: AW: Translating an embedded C algorithm Date: Fri, 19 Jan 2007 21:15:11 -0200 Organization: Aioe.org NNTP Server Message-ID: References: <878xg2aqzr.fsf@ludovic-brenta.org> <87k5zk7m8j.fsf@ludovic-brenta.org> NNTP-Posting-Host: zEJK12x7djBBvRARhduGQA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org In-Reply-To: User-Agent: Thunderbird 1.5.0.8 (X11/20061109) Xref: g2news2.google.com comp.lang.ada:8353 Date: 2007-01-19T21:15:11-02:00 List-Id: Robert A Duff escreveu: > Cesar Rabak writes: > >> Stephen Leake escreveu: >>> Ludovic Brenta writes: >> [snipped] >>> This example program is far too small to show the crucial differences >>> between C and Ada. >>> >> I think you summarized very well the whole issue here! > > But the OP didn't ask anybody to "show the crucial differences between C > and Ada"; he asked for a simple half-page C function to be translated > into Ada, which is a perfectly reasonable request. Yes. > I started to do it > myself, but others have answered that question, so he got more-or-less > what he asked for. OK. I believe he got a handful set of examples. > He also got "we can't translate simple C into simple > Ada -- we need to create a hugely complicated mess", and he also got > "you dope, how dare you ask about Ada when you don't already know Ada". While I have to agree that hearing from the aisles our internal discussion could be described like that, I think we have to think about the other side. A direct translation of a that half page (C language) function, would convey very little about Ada, and perhaps lead to a conclusion that is just a C (or rather Pascal) like language with a "weird syntax" (pundits could step and say all other things we're used, as being verbose, etc.). So a reasonable (I agree that with less ado) remark that Ada language to be used in its full potential would include more code (like was shown in the thread already) and a clear and better explanation of the advantages of it would have been better advertising of Ada. > Sigh. Relieved? :-)