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-13 14:42:52 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!195.129.110.4.MISMATCH!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!ams.uu.net!news.mailgate.org!mail2news!duba05h05-0.dplanet.ch!not-for-mail From: gdm@popremove.mydiax.ch (Gautier de Montmollin) Newsgroups: comp.lang.ada Subject: Re: Re: Numerical Computation and Ada95 Date: Sun, 13 May 2001 21:42:48 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <3AFF0005.F1F0ECDD@pop.mydiax.ch> References: <9deus2$8t6$1@ulysses.noc.ntua.gr> NNTP-Posting-Host: duba05h05-0.dplanet.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.mailgate.org 989790168 32618 212.35.36.52 (Sun, 13 May 2001 23:43:33 +0200) X-Complaints-To: duba05h05-0.dplanet.ch@abuse.net abuse@mailgate.org NNTP-Posting-Date: Sun, 13 May 2001 21:42:48 +0000 (UTC) Mail-From: gdm@pop.mydiax.ch from duba05h05-0.dplanet.ch [212.35.36.52] X-URL: http://www.Mailgate.ORG Xref: archiver1.sj.google.com comp.lang.ada:7464 Date: 2001-05-13T21:42:48+00:00 List-Id: > Hi all, > First of all I would like to thank everyone for his/her help. From what you > said I understand that it is pointless to compare languages in their timing > efficiency. In contrary, it is interesting to compare - of course you compare rather the *compilers*... The good surprise is that you can e.g. make a *generic* sparse matrix package whose instanciations run as fast as their Fortran 77 equivalents for various precisions. I did compare on an Alpha server under OpenVMS, with Ada & F77 compilers from Compaq. It required a bit of tuning before reaching the original, of course, since I coded the sparse matrix type as an unconstrained record with arrays in it, a thing a bit more "clothed" than the arrays passed the in F77 code. I needed to use that code in a project programmed in Ada, so the question was either to interface to the F77 code or to make an Ada version. In global programmation time it was also a big benefit since I could use later the same code with GNAT on e.g. PC platforms. If you use the correct switches, like -O2, -gnatpn, -funroll-loops (GNAT), you obtain a very nice performance. Things like ":=", "others=>" with big objects are poorly coded by some Ada compilers, but otherwise the job is very well done; abstraction often helps performance. In addition, in the debugging phase, you compile with the checks ON and you find lots of bugs about array bounds. This is also an absolute plus! BTW, interesting to mention that translations from Fortran very often show latent or undetected bugs like 0 index reached in an array meant to be on 1..N, etc. __________________________________________ Gautier -- http://www.diax.ch/users/gdm/ -- Posted from duba05h05-0.dplanet.ch [212.35.36.52] via Mailgate.ORG Server - http://www.Mailgate.ORG