From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,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/13 Message-ID: <3442F866.36A8BB69@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 280383497 References: <61g30t$o2n@news-rocq.inria.fr> <343C34A7.B715A348@tonys.ecology.umn.edu> <3440F805.C98BB347@tonys.ecology.umn.edu> <61tfaa$9fr@sis.cambridge.arm.com> Organization: boo Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Craig Burley bored us with his thesis, which contained the gem: > But, in my experience, the numerical types who use Fortran *already* > have their algorithm issues worked out, because they're engineers, > not programmers, and because they *have* to. E.g. it doesn't bother > me much if my compiler is twice as slow as it could otherwise be > on my home PC, at least, not compared to how much these numerical > types are bothered when their latest number-cruncher is 2% slower than > it could otherwise be, when that 2% costs them $10,000 per week due > to it being run on a supercomputer on which they're buying time. > > C programmers just don't usually have as much vested interest in > squeezing out that last 2% or so -- after all, their users can just > wait for the next Pentium to come out anyway, while Fortran programmers > include a pretty substantial group that depends on today's fastest > and most expensive computers, and a newer, faster computer only > means they can stuff more data into, or make more accurate > calculations in, their programs, instead of using the next generation > to cover up their programming inefficiencies. How about super-computer user who wants the best possible performance and the greatest flexibility, and chooses C over Fortran? I think you have it wrong. The best compilers on the supercomputers have traditionally been Fortran compilers. Those ones always get the most development time, so naturally lead. Why do they get the most attention? Because the supercomputer user is more likely than not, a Fortran programmer, the language of the Engineer. If a typical supercomputer user were a C programmer, the Fortran compilers would not be as good! Fortran leads because Fortran is Entrenched! However, with the advent of MPP supercomputers and nodal message passing programming styles possible, efficient C code compares very favorably with the best F90 code, surpassing it in many instances. Of course, it is much easier and quicker to write a F90 program, than a carefully thought out messaging passing nodal C code. (Nodal f77 code is also extremely efficient, compared with the F90 type "parallel" code... but I see this as writing a Fortran program in a C style, because the same level of thinking is required of C to lay the "arrays" out across the nodes explicitly, what you call "lowering"). It certainly was true on the Cray vector supercomputers that C performance simply sucked compared with the mature Fortran compilers, but this is not the case anymore! (for some, not all). This really has only changed relatively recently. It is much easier to produce an efficient F90 code than an efficient C code, that much is obvious. > [childish MS bashing masquerading as a analogy snipped] Exactly what does Microsoft bashing have to do with C vs Fortran? > In other words: there's been no real "contest" here. Childish insults > from the (umn).edu side of things, yes, but no contest. Usenet is fun, isn't it? There is always the possibility that I am a crap Fortran programmer... heh!