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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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-11 07:15:25 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Numerical Computation and Ada95 Date: Fri, 11 May 2001 10:03:11 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9dgrf4$stb$1@nh.pace.co.uk> References: <9dc4sh$ru5$1@ulysses.noc.ntua.gr> <3AF9E3BF.D6D73BEA@linuxchip.demon.co.uk> <9dd9tb$1o56$1@ulysses.noc.ntua.gr> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 989589796 29611 136.170.200.133 (11 May 2001 14:03:16 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 11 May 2001 14:03:16 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.sj.google.com comp.lang.ada:7392 Date: 2001-05-11T14:03:16+00:00 List-Id: I don't think that is entirely true. People have done timing comparisons, but you absolutely must remember at all times that you are NOT comparing Ada to Fortran and C/C++. What you are comparing is the relative speed of code generated by two (or more) different COMPILERS. As others have observed, since Fortran programmers tend to want highly optimized math operations, the guys who write Fortran compilers tend to concentrate on this area. That doesn't mean you won't discover that Fortran Compiler X produces slower code than Ada Compiler Y. In point of fact, some Ada compilers are quite good at optimizing math operations. I think you would also find that the way Ada goes to such great pains to precisely define the behavior of its mathematical types could be a major help to you in developing your algorithms. Get hold of the Ada Reference Manual and look at the definitions of the numeric types and the annexes that relate to math and I think you'll be impressed with the facilities available. (Sometimes it is a bit obscure, so be sure not to miss the parts that talk about all of the attributes available for numeric types. Many are extremely useful and aren't paralleled in other languages.) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "N&J" wrote in message news:9dd9tb$1o56$1@ulysses.noc.ntua.gr... > Hi all, > 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 > > Thanks for your help, > John > > P.S I am still a student and I work for myself that's why I am always > looking for new things > >