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/10 Message-ID: <5g1qtg$4ad$1@A-abe.resnet.ucsb.edu>#1/1 X-Deja-AN: 224477831 Sender: graham@resnet.ucsb.edu References: <1997Mar2.220652@nova.wright.edu> <1997Mar5.131846.1@eisner> <5fmo1k$adm@mulga.cs.mu.OZ.AU> <1997Mar6.114441.1@eisner> <1997Mar7.090814.1@eisner> <33206340.2616@bix.com> <5g157e$pqf@ratatosk.uio.no> Organization: UCSB Newsgroups: comp.lang.ada Date: 1997-03-10T00:00:00+00:00 List-Id: -----BEGIN PGP SIGNED MESSAGE----- dewar@merv.cs.nyu.edu (Robert Dewar) writes: >That is not the issue at all. The issue is that if you use String'Read >instead of reading into a buffer, the semantics pretty much imply character >by character reads, since such stream attribtues are by default executed >element wise. Yes, a compiler could optimize this, but is unlikely to. >The proper way to do fast stream_io is to read and write buffers of >stream elemkents. Perhaps. But the beauty of the C and other approaches is that I don't have to write the buffer explicitly, and thus have to debug it. I *can* read character by character if I want to, and often I do; socket programming is a perfect example. But the rest of the time, I don't want to worry about it, and don't have to. Perhaps you feel that Unbounded_String is an abomination, because `the proper way' to do arbitrary length strings is to do it yourself? - -- Graham Hughes http://A-abe.resnet.ucsb.edu/~graham/ -- MIME & PGP mail OK. PGP Key fingerprint = E9 B7 5F A0 F8 88 9E 1E 7C 62 D9 88 E1 03 29 5B -----BEGIN PGP SIGNATURE----- Version: 2.6.3 Charset: noconv iQCVAwUBMyRu6SqNPSINiVE5AQH1igP/Twwim+fN+z59CCTsa+tQXyff/mvyLkEc d97WaqyWJqpRpgQjTL86VfJnrkKGMitwajheMKqCDbEBFoDcCS6QnA5H1bUNgjPY tcWIxxNQczCJf85ZLPpq96zdhSUQ8f9oJJPvo2RuuigIiTLp+i0wkSgtLAl/JEsK kKUa5eEWAfw= =52Ex -----END PGP SIGNATURE-----