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,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!proxad.net!proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Ada vs Fortran for scientific applications Date: Mon, 22 May 2006 15:02:37 +0200 Organization: Adalog Message-ID: References: NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1148306467 2583 195.25.228.57 (22 May 2006 14:01:07 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Mon, 22 May 2006 14:01:07 +0000 (UTC) User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:4335 comp.lang.fortran:10072 Date: 2006-05-22T15:02:37+02:00 List-Id: Nasser Abbasi a �crit : > What are the technical language specific reasons why Fortran would be > selected over Ada? > Some immediate reasons: 1) Packaging. Packages allow better organization of software, which is good for any kind of application. 2) Strong typing. Scientific applications often deal with physical units, and Ada is great at supporting these. 3) User defined accuracy. Ada allows you to define the accuracy you need, the compiler chooses the appropriate representation. Note that you are not limited to only two floating point types (many machines have more than that). 4) Fixed points. Not available in Fortran 5) Guaranteed accuracy, not only for basic arithmetic, but for the whole mathematical library 6) Standardization. All compilers process exactly the same language. 7) Interfacing. Easy to call libraries in foreing languages => all libraries available for Fortran are available for Ada. 8) Concurrency, built into the language 9) Generics. Stop rewriting these damn sorting routines 1000 times. 10) Default parameters. Makes complex subprograms (simplex...) much easier to use. 11) Operators on any types, including arrays. Define a matrix product as "*"... 12) Bounds checking, with a very low penalty. Makes bounds checking really usable. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr