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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90c3c79963d78580 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-10 23:57:47 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.telebeam.net!washdc3-snf1!washdc3-snh1.gtei.net!denver-snf1.gtei.net!news.gtei.net!coop.net!newsfeed1.global.lmco.com!svlnews.lmms.lmco.com!news1.lmtas.lmco.com!not-for-mail From: Gary Scott Newsgroups: comp.lang.ada Subject: Re: Numerical Computation and Ada95 Date: Thu, 10 May 2001 15:12:55 -0500 Organization: LM Aeronautics Message-ID: <3AFAF647.679CBF07@lmtas.lmco.com> References: <9dd9tb$1o56$1@ulysses.noc.ntua.gr> <0RqK6.1537$%i7.1382275@news1.rdc1.sfba.home.com> NNTP-Posting-Host: CAA261517.lmtas.lmco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.72 [en]C-CCK-MCD {C-UDP; LMTAS} (WinNT; U) X-Accept-Language: en,pdf Xref: archiver1.sj.google.com comp.lang.ada:7378 Date: 2001-05-10T15:12:55-05:00 List-Id: Hi, tmoran@acm.org wrote: > > >From what you said I undestand that nobody has ever compared Ada's timing > >performance with Fortran77/90/95, C and C++ in programs that require lots > >of arithmetic and logical operations (perhaps FFT). I think I will try to > >do it when I learn Ada95 better > There was a substantial comparison someplace (perhaps Ada Letters?) > some time ago, but I don't remember just when. Try looking in > www.adapower.com, www.adahome.com, or www.adaic.org A simple minded > transliteration from one language to another can have pitfalls, > accessing arrays in row-major vs column-major order being an example. > When I went to translate an algorithm from "Numerical Recipes in > Fortran" it became obvious during the translation to Ada that the > Fortran version was doing some extra, wasted, iterations. Do you want > to compare the Fortran version against an exact translation that > includes those wasted cycles, or against an Ada version that preserves > the algorithm, but not the poor coding? It's not always obvious > what's the appropriate comparison. In that case, I'd probably clean up the Fortran code first, then translate it and do the comparison. Poorly written code is just that. However, the optimization possibilities of the language and the quality of the optimizer itself has a lot more to do with the differences in typical code (and cache accesses and memory alignment, etc.).