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/10 Message-ID: <343EF1C9.61670DFC@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 279460807 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <343CE2F4.362D80F0@tonys.ecology.umn.edu> Organization: boo Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Richard babbled: > >As far as I understood, > >computer memory is not two dimensional, > This is *DEAD* wrong about quite a few historically significant > computers, like the B6700, Multics, and an obscure machine called > the 80286. Who gives a shit. How about concentrating on the real world, and actual computer systems. > : 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]; > > boo writes: > >That looks like Fortran!! > > How? This is a feature that Fortran does _not_ provide. It looks suspiciously like something you would do with compiler directives on some variant of Fortran 90, for example, to tell the compiler how you want the arrays laid out. > >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? > > I wasn't suggesting that you should. I WAS SHOWING YOU A NOTATION > YOU COULD USE TO DO *EXACTLY* WHAT YOU SAY IT IS YOU WANT TO DO. > Like another poster, I was pointing out that Bliss did this before > there _was_ a C. No, you don't understand me. I want to do the nitty-gritty myself. As I said, computer memory is NOT multi-dimensional, and I do not trust compilers to do a proper job. Perhaps someday compilers will do the job properly, but until then, I want the control myself. The thought of CS snobs like you having a hand in the process is scary. And I don't care about what someone did before I was born.