From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: Eric Hildum Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/09 Message-ID: <343CA36A.7B3E@Japan.NCR.com>#1/1 X-Deja-AN: 278930523 References: <61g30t$o2n@news-rocq.inria.fr> <343C34A7.B715A348@tonys.ecology.umn.edu> Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec boo wrote: > > brianh@bit3.com wrote: > > > > In article <61g30t$o2n@news-rocq.inria.fr>, > > Robert Harley wrote: > > > > > >I think your problem is that C is too flexible for you. It doesn't > > >wrongly assume that there is one way of laying out and accessing > > >arrays that is appropriate for all purposes. For instance you can > > >choose a flat array, 'float *a', or a hierarchy like 'float ***a'. > > > > Speaking as someone who is writting a math library in C (in his free time, > > but I'm actively grappling with these exact issues), also as someone > > who hardly knows Fortran, this _SUCKS_. > > The first time you play with multi-dimensional "arrays" in C, it is > difficult and frustrating. These are much easier in Fortran for the > uninitiated, and Fortran surely is the language of choice for many > scientists and engineers. Once you have understood exactly how to implement > multiple dimensional "arrays" in C efficiently and have gained > some experience, it doesn't "suck" anymore, and you will understand > exactly how flexible C actually is. But it isn't for amateurs, > or for the Ivory Tower Set of this thread. I have had to implement multidimensional dynamic arrays in C, and sorry, it does suck. When a language does not support a common construct well enough to allow an optimizer to do something intellegent with it, the language has a serious problem. Bliss has a much better mechanism for doing fancy array or structure implementations, in the sense that it allows easy generation of structures like arrays, even in cases such as symetric triangular arrays, without the wasted space C requires while still allowing an optimizer to operate. In some senses, Bliss allows object oriented design and implementation without the mess of C++ (which at best is a kludge on top of a hack). C falls under the catagory of if all you have is a hammer, everything is a nail. Since most universities only teach C now, we can expect a generation of "experts" who work in the "real world" to spend the next twenty years rediscovering 1960s level programming issues and solutions. -- "The idea that Bill Gates has appeared like a knight in shining armour to lead all customers out of a mire of technological chaos neatly ignores the fact that it was he who, by peddling second-rate technology, led them into it in the first place."-Douglas Adams Eric Hildum Eric.Hildum@Japan.NCR.COM