From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII 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: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/10 Message-ID: <61kacj$4ft$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 279137131 Distribution: ] References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <343CE2F4.362D80F0@tonys.ecology.umn.edu> Organization: Comp Sci, RMIT University, Melbourne, Australia. NNTP-Posting-User: ok Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec I wrote: : 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. >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. You don't see how letting the programmer specify the address mapping is more low level than letting the compiler choose it? >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. >and so I would rather >control the layout of multi-dimensional arrays myself. BUT THE NOTATION I JUST DISPLAYED *IS PRECISELY THAT*. The examples I showed were examples of how you *control* the layout yourself! What did you think a layout declaration *was* if not explicit programmer control of layout? >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. >I also find it extremely amusing at how you have turned computer >science into a religion. You are being amused by what is exclusively your own fantasy. -- John �neas Byron O'Keefe; 1921/02/04-1997/09/27; TLG,TLTA,BBTNOTL. Richard A. O'Keefe; RMIT Comp.Sci; http://www.cs.rmit.edu.au/%7Eok