From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: boo Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/07 Message-ID: <343AF933.6EF4EC37@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 278600469 References: <612k6f$i79@news-rocq.inria.fr> <619nmn$4jv$1@goanna.cs.rmit.edu.au> <34392537.AA4A9F96@tonys.ecology.umn.edu> <61dpds$6gv@hilbert.ncsc.org> Organization: boo Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec On 7 Oct 1997 12:53:16 -0400, Carlie Coats (xcc@hilbert.ncsc.org) said: > > This from an advocate of a language that makes arrays second class > > citizens? C can't even do the equivalent of > > > > SUBROUTINE S( M, N, P, A ) > > INTEGER, INTENT( IN ): M, N, P > > REAL, INTENT( IN ): A( M, N, P ) > > ... > > > > nor can C++, for that matter. Fortran can. So can lisp. Oh, so you think that high level language constructs are something to boast about? How about #include int main(void){ SolveMyProblem(); return 0; } Can yours do that? That header file I included contains the prototypes for the functions I like the most, in my own particular implementation of C. Is this high level enough for you? Paul added: > Excuse the rest of us C/C++ biggots who don't know the F90 syntax, but > what does the above syntax signify? I suspect it says something about how the data ("arrays") should be laid out in memory, and says something about how you are going to access it, to help the compiler out. In other words, let the compiler do the thinking, and let the programmer concentrate on the abstract stuff. This kind of thing is possible in a simple language like Fortran. To the original poster: If I know something about the architecture of the machine you are using (such as a T3E, for example), I could write some nodal C code with inline assembly or optimized C (with some non-standard code, perhaps) that will thrash your high level Fortran code any day. I may have to use my noggin a little to figure out the best way to lay the problem out, but that is ok. Of course, you most likely will get your code running before I do.... and THAT precisely is where the power of Fortran is. Of course, Fortran is also ideal for people who don't quite "get all the pointer nonsense in C" (probably the biggest stumbling block that sends people scurrying back to Fortran, basic, pascal, etc.). boo