RH> Charlton Wilbur said:
RH> Perhaps we are at cross-purposes. I'm talking about code that
RH> is topical within comp.lang.c - hence the "In C terms" and "a
RH> C program" in the above quote. What do you think
RH> clc-conforming code can achieve on a modern machine (other
RH> than performance) that it can't achieve on an older machine?
Very, very little, if anything at all. But the subset of tasks that
can be usefully accomplished while limiting oneself to C within the
limits of clc-topicality is also vanishingly small, and largely of
interest to academicians and pedants. There is value in focusing only
on the portable and Standard-conforming aspects of C, or I wouldn't be
here, but there's more to C as she is spoke than that.
To do almost anything practically useful with C, you have to use
non-standard extensions. While specific extensions are off-topic
here, surely it is possible to acknowledge their existence!
RH> But just because I have a fast computer (and the one on which
RH> I'm typing this is theoretically thousands of times faster
RH> than the Atari ST that was the first "personal computer" I
RH> ever owned), that doesn't mean I have to insist that everybody
RH> else should buy a computer as fast as mine just so that they
RH> can use my programs.
No, but even if we limit ourselves to strict clc-topicality -- for
instance, a program that reads a file, performs some extensive
calculation on the data therein, and writes the result to another file
-- the nature of the computer on which the program is to be run has an
effect on the style of the program.
For instance, on that ancient computer, I wrote a ray-tracing program.
It read the specifications for the objects from a file and produced a
graphics file in a particular format based on the results. If I had
to write that program again, I'd write it very differently if I knew I
had to write it for a 15-year old Unix machine with 50 users than if I
was writing it for the computer I'm sitting at now.
At some point there's a tradeoff; I could, of course, take the program
I wrote yesterday and tweak it to allow it to run adequately on an
Atari ST. Practically speaking, if someone is paying me to do this,
the simple fact of comparing my hourly rate to the cost of a new
computer is enough to convince them otherwise, unless they're really
committed to that Atari ST.
Charlton