nmm1@cus.cam.ac.uk (Nick Maclaren): > I am, unfortunately, not joking when I say that there are critical paths > in the X Windowing System etc. that need that sort of optimisation for > efficiency. If you define "efficiency" as getting the maximum possible data throughput from a given machine, you're probably right since a general purpose machine cannot suit every task equally well. But what does "efficiency" mean to a GUI ? It is certainly nice to have a machine that does every graphics operation faster than you can visibly follow but that alone doesn't help a lot... > Most foully, the paths can run ahead at different rates, and you > STILL have to get interruption and recovery right :-( So you need some synchronisation points where you lose some possible CPU cycles in NOPs. Some friction is always present; the task for optimization is to reduce them as much as possible... > 2) EITHER Intel have reinvented the "Model 91 pipe-line drain" > instruction under another name OR I could write a valid C program that > would execute incorrectly. Do you care to elaborate ? IMHO this would be a sign for a broken compile which produces incorrect code. > My point about languages is that it becomes possible to implement reliable > speculative execution relatively easily, IF you can assume that certain > constraints are met. In particular, you know that the operands may be > invalid, but they will not change between the preloading and the final use. > And that is PRECISELY what you do not get with C or any of its derivatives. Ok, so you want to have a language where you can put additional optimization hints into the code. This is fine but pretty useless unless the programmer knows a lot more about performance implications of certain high-level instructions. This is the school of "you need to know how the computer works from inside to produce good code" to which I agree to some extent. This is why assembly language is still a part in a university computer science degree. Greetings, Ripley -- Ach komm, ich denke schon, da� die Raver sehr tolerant sind. Gerade bei dieser Love Parade. Du mu�t dir nur mal ansehen, wer da sein wird: Westbam, Marusha, Bl�mchen, ein Wagen vom Marienhof ... Also, das w�rde meine Toleranzgrenze weit �berschreiten. (M. Friese in bln.termine, <5pq8le$g1s$1@news.cs.tu-berlin.de>)