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: trd@mundook.cs.mu.OZ.AU (Tyson Richard DOWD) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/10 Message-ID: <61k9g2$2fa@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 279168331 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <343CE2F4.362D80F0@tonys.ecology.umn.edu> Organization: Comp Sci, University of Melbourne Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec boo writes: >Richard A. O'Keefe wrote: >> Here's how you could do it in a language that really _supported_ >> programmer control over low level details, instead of merely >> refraining from prohibiting it. >> >> layout Pascal [M,N;I,J] = M*N, I*M+J; //row major >> layout Fortran[M,N;I,J] = M*N, I+J*N; //column major >> >> float Pascal A[10,20]; >> float Fortran B[A.M,A.N]; >> >> ... >> for (int i = 0; i < A.M; i++) >> for (int j = 0; j < A.N; j++) >> A[i,j] = B[i,j]; >> >> (By the way, this is not C++ + layouts, it's C9X + layouts.) >> >> NOW do you understand what we had before C? >That looks like Fortran!! I can see why some people might like >these wonderful new features of your hypothetical C9X++, but >I would never use them. Not even to save coding time, eliminate dozens of hacky macros, and get the same efficiency you claim to get? You should give reasons why you reject that feature. >I really cannot fathom why you actually >believe that this is more low level. As far as I understood, >computer memory is not two dimensional, and so I would rather If I told you computer memory was two dimensional, would you do things differently? I don't understand this line of reasoning. >control the layout of multi-dimensional arrays myself. I've done >it before many times, I know how to achieve efficiency, so why >should I let some compiler (created by some pushed up CS dweeb >like you) do my thinking for me? Is this a joke? "I know how to program efficiently, so why should I let the compiler do my thinking for me?" What, are you worried about job security or something? Is this a Luddite argument? What are you advocating, throwing our clogs into the advanced language constructs before they dull our thinking? That's not thinking, it's mental drudgery. It's the necessity that drove the invention of computers in the first place. >awful Fortran-like compiler directives? Sure, these are low-level >in a sense, but they are simply ugly hacks. At at the top of this paragraph, you couldn't really fathom why Richard believed these were more low level. Now you're sure they are low level. >I also find it extremely amusing at how you have turned computer >science into a religion. I find it even more amusing that a Religion? Huh? (Thinking about this, I guess for most computer scientists, their spirit guide is the mouse ;-). >self-proclaimed expert would be wasting his time slugging it out >with the likes of me (who has never ever taken a single course Yes, for a self-proclaimed expert, he sure doesn't worry about other people lacking credentials. Nothing wrong with that. >in CS, or a single programming class of any kind) in a >spam-satuated newsgroup. There are a lot of people who are willing to learn something through discussion and even argument. I would guess that Richard is one of them, and he thought you were one two. Are you?