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: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: Stefan Monnier Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/02 Message-ID: <5l7mbw2cb3.fsf@tequila.systemsz.cs.yale.edu>#1/1 X-Deja-AN: 277488406 Sender: monnier@tequila.systemsz.cs.yale.edu References: <3431A2DB.4273@EasyInternet.net> <34326556.2216DC70@virginia.edu> <5l90wd2sbj.fsf@tequila.systemsz.cs.yale.edu> <60uek7$fon$1@lyra.csx.cam.ac.uk> Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec nmm1@cus.cam.ac.uk (Nick Maclaren) writes: > In article <5l90wd2sbj.fsf@tequila.systemsz.cs.yale.edu>, > Stefan Monnier wrote: > >I believe everyone here is aware of the fact that indirection is *the* > >problem. The question was "why should indirection be more of an issue with > >C/C++ than with Pascal, Algol, ... ?" > In a word - "aliasing". With multiple levels of indirection, a conforming > C compiler has to assume that almost every location can be aliased, and > therefore must make a store reference every time. Almost all fancy I'm sorry, but I can't seem to remember that Pascal disallows aliasing (I honestly don't know about Algol). Furthermore, do you really believe that aliasing information would help for GUI-like code ? Do you really think the problem is due to coding style (like the Xwin code) and to programming languages (like C) rather than to what is being coded (like a user interface rather than a numerical simulation) ? > For efficient use of modern architectures, we need languages in which we > programmers can express what we want to say in a fashion that can be > converted to the sort of instruction stream that executes fast. And > the current trends are in exactly the opposite direction. Because the trend is to say "CPUs are fast enough, let's care about programmer's convenience". You seem to care about Fortran code, so probably more numerical-oriented, in which case convenience is still a secondary concern whereas speed is paramount. I can only agree to the fact that languages should be developped to better take advantage of current (and future) technology, but programmer's convenience cannot be sacrificed so easily so it's a very hard design problem and I still haven't heard of any convincing proposition (the best I've heard is in the NA area where Sisal sounds pretty interesting). Stefan