From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c86eb13dd395066 X-Google-Attributes: gid103376,public From: Graham Hughes Subject: Re: CRC in Ada? Date: 1997/03/06 Message-ID: <5fm7c3$se5$1@A-abe.resnet.ucsb.edu>#1/1 X-Deja-AN: 223490837 Sender: graham@resnet.ucsb.edu References: <1997Mar2.220652@nova.wright.edu> <331d3cf9.1190126@news.logica.co.uk> <1997Mar5.083233.1@eisner> <1997Mar5.131846.1@eisner> Organization: UCSB Newsgroups: comp.lang.ada Date: 1997-03-06T00:00:00+00:00 List-Id: -----BEGIN PGP SIGNED MESSAGE----- ohk@edeber.tfdt-o.nta.no (Ole-Hjalmar Kristensen FOU.TD/DELAB) writes: >It may be a mistake in some cases, but talking about "this mistake" is >a vast oversimplification. Surely, there is nothing conceptually wrong >with having a set of single character IO operations like putc, getc, >and ungetc? One important point here, in agreement with what you say: for a lot of stuff (e.g., about 80% of the stuff I program routinely), text I/O is a major portion of the code. Things like scanners, editors, filters, and others all require a good I/O interface, but also are most convenient when read a character at a time. When the standard libraries do buffering automatically, we win. Low-level escapes like read() and write() could be retained, but having fread() and cousins as a part of the library means that I don't have to go implementing a buffering routine every time I want to do something trivial. If somebody wants buffering off, then let them, but most programs will want buffering. Personally, if I'm going to have to work around GNAT not having I/O buffering, I'm probably going to write it in Icon, Perl, C, C++, Python, or any of a hundred other languages that do this for me. My time is better spent coding, not writing buffers, and I'm going to have to write buffers just for the sake of program speed. - -- Graham Hughes (graham.hughes@resnet.ucsb.edu) http://A-abe.resnet.ucsb.edu/~graham/ -- MIME & PGP mail OK. "Never attribute to malice that which can be adequately explained by stupidity." -- Hanlon's Razor -----BEGIN PGP SIGNATURE----- Version: 2.6.3 Charset: noconv iQCVAwUBMx6guiqNPSINiVE5AQEzyAP8DAbVaLEW7JFj6awX57mJQkvv7GAXruzY 0tiZRiEClTQaDCiyileSlxpXLXW07fR5XZiGiblwOy5WHK3QX+f6RJ+KbEEYL1pS 2UzEiUxwMX8L3i1nzVi/02Re40bFFWA0AlrI6fp/EK1JP8qg07V7b/bBOUYfj1gp mA1DiGSqs8E= =gKP9 -----END PGP SIGNATURE-----