From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: handleym@apple.com (Maynard Handley) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/10 Message-ID: #1/1 X-Deja-AN: 279325347 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <61kp41$dob@news.informix.com> Organization: Apple Computer Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <61kp41$dob@news.informix.com>, dg@montage.com (David Gould) wrote: [Cultural elements for the success of C omitted.] > - C is "close to the machine" and somehow, this is "efficient" or good. > > Even after proof that say Fortran is more efficient for some problems, > or that Modula or Ada, or lisp is more powerful, or that the whole problem > could have been solved with a 20 line script, the C proponent will reply > (often paraphrasing K&R) that C is both more efficient and more powerful > "since it lets you get close to the machine". > This assertion continues to be made even after contrary facts are > demonstrated. This can go on to absurd lengths where some unholy concoction > of inline assembler and preprocessor abuse on one machine (so sadly no > longer made) is claimed to be faster than the "same" program in fortran. An important issue that's omitted here is this. The computer world as a whole seems to thrive on the spouting of what is patent nonsense. Languages are no more immune to this than anyone else. Each time I get a new rev of a good compiler (for PPC, but the same is true for any other system) I am told how fantastically efficient it is, how it utilizes every cycle, etc etc. I build something, look at the assembly, and in five minute have found five examples of scheduling inefficiencies, redundant loads etc. PPC asm output of a C compiler is relevant to where I sit in computer space, and I deal with it by continuing to write my blit loops in assembly. I know the extent to which C compiler prowess is hype, and I know how to test it. Consider now when I get told on Usenet Lisp (or Bliss or PL/1 or APL or who knows what is WAY faster than C). Why should I believe it? What generally happens when one does try to track down such a claim is: * Well it COULD be much faster than C, but people don't put the effort into the compiler that they do into C or * Well yes it does handle that sort of playing around with data inefficiently, but it was targetted at a different sort of problem. So the result is to tune this stuff out. So what's my point? If you want to prove how great your chosen language is, you have an obligation to * explain what it can do well * explain what it CANNOT do well * give some REAL NUMBERs of how fast it is, vs C, in some fashion. Yes, if you write compilers, the contortions that you have to go through hurt and you'd rather not have to deal with them. Well here's a message. I don't write compilers, I have no interest in your pain---that's what I pay you for. We all of us in computing have to deal with our little nightmares---you think I like having waste time on 8-bit screen blit loops when 24-bit video cards exist? What I care about is the speed of the extant compilers for the problem I want to solve, not the speed of some compiler that might exist if the world all saw the light tomorrow and switched languages. Maynard -- My opinion only