From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: CRC in Ada?
Date: 1997/03/06
Date: 1997-03-06T00:00:00+00:00 [thread overview]
Message-ID: <5fmo1k$adm@mulga.cs.mu.OZ.AU> (raw)
In-Reply-To: 1997Mar5.131846.1@eisner
kilgallen@eisner.decus.org (Larry Kilgallen) writes:
>bobduff@world.std.com (Robert A Duff) writes:
>>
>> I think I disagree. Buffering should be the job of the OS and/or
>> standard libraries. Not every program.
>
>While theoretical computing and Alan Turing may be centered on
>the equivalence and correctness of programs, in the real world
>performance is also a consideration.
Sure. That's why buffering is needed. But buffering should be the
job of the OS and/or standard libraries.
>Just as those using intense
>computation will be concerned about the efficiency of their
>algorithms, those accessing large databases will take care
>regarding order-of-access so as not to go skipping over the
>whole thing when some locality-of-reference would yield better
>performance.
Sure. No disagreement here.
>Those reading sequentially from disk should
>likewise concern themselves with performance, and 512 calls
>to even the lightest-weight library is too much if a single
>call would do.
Nonsense, if the calls are inlined, and the compiler does a good
job of optimization, there is no reason why the cost need be too much.
>For the stated problem (CRC) reading large
>blocks is a clear win.
Yes, but that is true for just about all performance-intensive stream
I/O tasks. That's why it makes sense for this to be done by the
standard library and/or OS.
>> I'm not sure why reading a file character-by-character is "C-like".
>> It seems like the natural way to write lots of programs, in any
>> language. The underlying language and OS should ensure that it can be
>> done efficiently (by making the "give-me-a-char" routine read from a
>> buffer whenever appropriate).
>
>In my experience it is generally C programmers who make this mistake.
Why is it a mistake?
If the implementation implements it efficiently, as it should,
I don't see any reason to regard using such a mechanism as a mistake.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.
next prev parent reply other threads:[~1997-03-06 0:00 UTC|newest]
Thread overview: 143+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-02 0:00 CRC in Ada? Dr. John B. Matthews
1997-03-03 0:00 ` Tom Moran
1997-03-03 0:00 ` David Brown
1997-03-04 0:00 ` Stephen Garriga
1997-03-04 0:00 ` Robert Dewar
1997-03-05 0:00 ` Stephen Garriga
1997-03-15 0:00 ` Michael & Amy Hartsough
1997-03-16 0:00 ` Robert Dewar
1997-03-16 0:00 ` Michael & Amy Hartsough
1997-03-16 0:00 ` Robert Dewar
1997-03-18 0:00 ` Michael & Amy Hartsough
1997-03-19 0:00 ` Robert Dewar
1997-03-20 0:00 ` Michael & Amy Hartsough
1997-03-22 0:00 ` Mark & Zurima McKinney
1997-03-22 0:00 ` Robert Dewar
1997-03-22 0:00 ` Robert Dewar
1997-03-24 0:00 ` Sequential IO on OpenVMS (was: CRC in Ada?) Ken Garlington
1997-03-24 0:00 ` Larry Kilgallen
1997-03-21 0:00 ` CRC in Ada? Tom Moran
1997-03-23 0:00 ` Robert Dewar
1997-03-23 0:00 ` Tom Moran
1997-03-24 0:00 ` Portable Code (was: CRC in Ada?) Larry Kilgallen
1997-03-24 0:00 ` CRC in Ada? Robert A Duff
1997-03-24 0:00 ` Larry Kilgallen
1997-03-24 0:00 ` Robert A Duff
1997-03-24 0:00 ` Robert A Duff
1997-03-24 0:00 ` Robert Dewar
1997-03-25 0:00 ` Robert I. Eachus
1997-04-01 0:00 ` David Emery
1997-03-04 0:00 ` Tom Moran
1997-03-04 0:00 ` Stephen Garriga
1997-03-04 0:00 ` Matthew Heaney
1997-03-07 0:00 ` John Apa
1997-03-04 0:00 ` Jon S Anthony
1997-03-05 0:00 ` Robert Dewar
1997-03-04 0:00 ` David L Brown
1997-03-04 0:00 ` Robert Dewar
1997-03-05 0:00 ` Stephen Garriga
1997-03-05 0:00 ` Larry Kilgallen
1997-03-05 0:00 ` Robert A Duff
1997-03-05 0:00 ` Larry Kilgallen
1997-03-06 0:00 ` Robert A Duff
1997-03-06 0:00 ` Robert Dewar
1997-03-06 0:00 ` Robert Dewar
1997-03-06 0:00 ` Robert Dewar
1997-03-09 0:00 ` Dr. John B. Matthews
1997-03-06 0:00 ` Larry Kilgallen
1997-03-06 0:00 ` Fergus Henderson [this message]
1997-03-06 0:00 ` Larry Kilgallen
1997-03-06 0:00 ` Robert A Duff
1997-03-07 0:00 ` Robert Dewar
1997-03-07 0:00 ` Larry Kilgallen
1997-03-07 0:00 ` Tom Moran
[not found] ` <1997Mar7.202252.1@eisner>
1997-03-08 0:00 ` Robert Dewar
1997-03-09 0:00 ` Geert Bosch
1997-03-11 0:00 ` Robert Dewar
1997-03-12 0:00 ` Mats Weber
1997-03-12 0:00 ` Robert Dewar
1997-03-10 0:00 ` Robert Dewar
1997-03-10 0:00 ` Tom Moran
1997-03-12 0:00 ` Robert Dewar
1997-03-10 0:00 ` Dr. John B. Matthews
1997-03-07 0:00 ` Robert A Duff
1997-03-10 0:00 ` Jim Balter
1997-03-10 0:00 ` Jim Balter
1997-03-06 0:00 ` Robert Dewar
1997-03-10 0:00 ` David Brown
1997-03-12 0:00 ` Robert Dewar
1997-03-10 0:00 ` Tarjei Jensen
1997-03-10 0:00 ` Robert Dewar
1997-03-10 0:00 ` Graham Hughes
1997-03-11 0:00 ` Robert Dewar
1997-03-11 0:00 ` Graham Hughes
1997-03-12 0:00 ` Robert Dewar
1997-03-10 0:00 ` Robert Dewar
1997-03-11 0:00 ` Mark & Zurima McKinney
1997-03-12 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-12 0:00 ` Robert I. Eachus
1997-03-13 0:00 ` Jon S Anthony
1997-03-13 0:00 ` Robert Dewar
1997-03-14 0:00 ` Jim Balter
1997-03-14 0:00 ` Jon S Anthony
1997-03-15 0:00 ` Dr. John B. Matthews
1997-03-15 0:00 ` Robert Dewar
1997-03-17 0:00 ` Jon S Anthony
1997-03-06 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-07 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-07 0:00 ` Robert Dewar
1997-03-08 0:00 ` Robert A Duff
1997-03-10 0:00 ` Jim Balter
1997-03-11 0:00 ` Robert Dewar
1997-03-11 0:00 ` Jim Balter
1997-03-11 0:00 ` Robert Dewar
1997-03-12 0:00 ` Jim Balter
1997-03-14 0:00 ` Richard A. O'Keefe
1997-03-14 0:00 ` Jim Balter
1997-03-06 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-06 0:00 ` Graham Hughes
1997-03-06 0:00 ` Robert Dewar
1997-03-06 0:00 ` Larry Kilgallen
1997-03-09 0:00 ` Robert Dewar
1997-03-07 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-07 0:00 ` Robert Dewar
1997-03-08 0:00 ` Fergus Henderson
1997-03-10 0:00 ` Jim Balter
1997-03-11 0:00 ` Robert Dewar
1997-03-11 0:00 ` Jim Balter
1997-03-12 0:00 ` Robert Dewar
1997-03-12 0:00 ` Jim Balter
1997-03-14 0:00 ` Samuel Mize
1997-03-11 0:00 ` Jim Balter
1997-03-11 0:00 ` Robert Dewar
1997-03-12 0:00 ` Jim Balter
1997-03-07 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-07 0:00 ` David Brown
1997-03-10 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-10 0:00 ` Robert Dewar
1997-03-10 0:00 ` Jim Balter
1997-03-11 0:00 ` Robert Dewar
1997-03-11 0:00 ` Jim Balter
1997-03-11 0:00 ` Robert Dewar
1997-03-12 0:00 ` Jim Balter
1997-03-11 0:00 ` Fergus Henderson
1997-03-10 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-11 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-12 0:00 ` Jim Balter
1997-03-12 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-12 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-03-05 0:00 ` Laurent Pautet
1997-03-05 0:00 ` David C. Hoos, Sr.
1997-03-06 0:00 ` Jon S Anthony
2013-11-14 17:39 ` david
2013-11-14 18:55 ` Adam Beneschan
2013-11-14 19:35 ` tmoran
2013-11-14 20:09 ` Dmitry A. Kazakov
2013-11-14 20:40 ` John B. Matthews
-- strict thread matches above, loose matches on Subject: below --
1997-03-13 0:00 tmoran
1997-03-13 0:00 ` Robert Dewar
1997-03-14 0:00 ` Joakim Olsson
1997-03-14 0:00 ` Tom Moran
1997-03-15 0:00 ` Tom Moran
1997-03-14 0:00 ` Richard A. O'Keefe
1997-03-14 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox