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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f891f,eac70c5fad02d925 X-Google-Attributes: gidf891f,public X-Google-Thread: 1094ba,c6e2c9477ddee2a6 X-Google-Attributes: gid1094ba,public X-Google-Thread: 103376,eac70c5fad02d925 X-Google-Attributes: gid103376,public X-Google-Thread: 101deb,c6e2c9477ddee2a6 X-Google-Attributes: gid101deb,public From: ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) Subject: Re: Concerning subscript bounds checks Date: 1996/06/27 Message-ID: <4qth7v$if2@goanna.cs.rmit.EDU.AU>#1/1 X-Deja-AN: 162335369 references: <4qdj3e$btf@goanna.cs.rmit.EDU.AU> <4qncnv$i94@goanna.cs.rmit.EDU.AU> organization: Comp Sci, RMIT, Melbourne, Australia keywords: subscripts newsgroups: comp.lang.ada,comp.lang.misc,comp.lang.pl1,comp.lang.fortran nntp-posting-user: ok Date: 1996-06-27T00:00:00+00:00 List-Id: rav@goanna.cs.rmit.EDU.AU (++ robin) writes: >---I expect that the same observations could be made about >re-writing the program in PL/I, or in Fortran 90. Again, this imputes to me a claim I never made. I did not claim that Ada was *better* in this respect than PL/I or F90. All I claimed was that it is *good*. There is a big difference! Obviously, APL, PL/I, and Fortran 90 have array arithmetic (although I used APL enough to be seriously confused by PL/I's differences there). Equally obviously, a vector arithmetic expression all of the vectors in which have the same declared bounds needs no subscript or length checks. > Why not post the original Fortran version, and the Ada >translation, so we can see? If there's enough interest, I'll put them on the Web. The Fortran code has _already_ been published; it's algorithm AS 47 from the Journal "Applied Statistics". nelder_mead.ads 18 non-blank-non-comment lines nelder_mead.adb 216 non-blank-non-comment lines nelmin.f 204 non-blank-non-comment lines (my F77 version) (rav: look in goanna:~ok/Ada.d/ if you want to see them.) The difference between the Ada and Fortran line counts is entirely due to my Ada style being one declaration per line, with the Fortran code still having several grouped declarations. > >Fifty years of programming language research, and we end up with C++ ??? >---50 years? Wasn't Ada (after whom the language in which this >posting also appeared first) the first programmer? Wouldn't that >make it ~130 years? I did not write "fifty years of _programming_ research" by "fifty years or programming _language_ research". -- Fifty years of programming language research, and we end up with C++ ??? Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.