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: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public From: boo Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/09 Message-ID: <343CE2F4.362D80F0@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 278976459 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> Organization: boo Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec 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. 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 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? Hey, what next? Some Goddamn awful Fortran-like compiler directives? Sure, these are low-level in a sense, but they are simply ugly hacks. I also find it extremely amusing at how you have turned computer science into a religion. I find it even more amusing that a self-proclaimed expert would be wasting his time slugging it out with the likes of me (who has never ever taken a single course in CS, or a single programming class of any kind) in a spam-satuated newsgroup. Boo