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-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!Spring.edu.tw!news.nctu.edu.tw!feeder.seed.net.tw!netnews!not-for-mail From: "news.hinet.net" Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Ada vs Fortran for scientific applications Date: Tue, 23 May 2006 10:12:43 +0800 Organization: HiNetNews Message-ID: References: NNTP-Posting-Host: 211.21.60.18 X-Trace: netnews.hinet.net 1148350369 7127 211.21.60.18 (23 May 2006 02:12:49 GMT) X-Complaints-To: usenet@HiNetnews.hinet.net NNTP-Posting-Date: Tue, 23 May 2006 02:12:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response Xref: g2news2.google.com comp.lang.ada:4352 comp.lang.fortran:10098 Date: 2006-05-23T10:12:43+08:00 List-Id: what does we discuss "Ada vs Fortran for scientific applications"? does it mean which syntax is suitable for scientific application? if you mean it, you didn't waiting for fortan "2008" . matlab may be another good choose. . It's good for scientific application. why? there are over 30+ math library . simple syntax is easy to learn and writing. high performance, it utilize fortran's math library and kernel is writing in C and fortran. a lot of language interfaces , such as java , c , fortran , and ada (ada is especial in realtime and simulink). you can call those language directly. can translate to C code. built-in complex type support. It has operator overloading. you can do mult(a,b,...) or a .* b .* ... or matix Multiplies mmult(a,b...) or a * b *.... using vectorization. you almost can reduce most loop syntax in your code more detail sse http://www.mathworks.com/ of course, there are some disadvantages. weak type checking often causes errors in runtime. It almost never happens in ada. hard to read but easy to wirte. (writing is happy and read is painful) In scientific application, It should be better than ada and fortan ^__^. "Dan Nagle" ???????:tXlcg.3832$p13.2487@trnddc07... > Hello, > > Nasser Abbasi wrote: > > > >> I'll answer the easy one for now since I have not had my coffee yet: >> >> It is clear that >> >> A*B >> >> is easier to read and understand than >> >> MATMUL(A,B) > > It is? All the intrinsic operators in Fortran apply > element-wise, and * is no exception. How does that make > the intrinsic procedure harder to read? > > The applications programmer may always define a matrix type, > and define the * operator to be the matmul intrinsic. > Note the distinction between "rank-2 array" and "matrix". > > > >> I was surprised to read that now FORTRAN is called Fortran, (only one >> letter is uppercase). This is progress (I think). > > I think Fortran and Ada have a lot in common, > both are being actively developed (though not on the same schedule). > And both are threatened by the "I only know C++, it's the best language" > syndrome. :-( And, I think, both are superior technical solutions > within their respective problem domains. Although Eiffel interests > me also. > > -- > Cheers! > > Dan Nagle > Purple Sage Computing Solutions, Inc.