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: jmatthews@nova.wright.edu (Dr. John B. Matthews) Subject: Re: CRC in Ada? Date: 1997/03/10 Message-ID: <1997Mar10.170639@nova.wright.edu>#1/1 X-Deja-AN: 224500781 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> Organization: Wright State University Newsgroups: comp.lang.ada Date: 1997-03-10T00:00:00+00:00 List-Id: In article <33206340.2616@bix.com>, Tom Moran writes: > The original message in this thread did not say "reading a file a > character at a time is slow", but rather that doing it in Ada was an > order of magnitude slower than doing it in C, on the same OS and > hardware. Since there is no other way strictly in Ada to read a file > which is too large for memory and whose size is a prime number, this is > unfortunate. This can't be right. For example, Streams.Stream_IO.Read lets me read into a buffer of arbitrary size, and politely tells me if there's any stray elements in the last chunk. > And saying Ada 95 can do it by calling a C function, is > less than a strong endorsement of Ada. For efficiency, I frequently call OS routines. I rarely know what language they're written in, although I typically access them through a language-specific interface. For example, under MacOS, I use Pascal interfaces and C calling conventions. The ease with which this can be done seems like a strong endorsement of Ada. John ---------------------------------------------------------------- John B. Matthews, M.D. jmatthews@nova.wright.edu; john_matthews@ccmail.dayton.saic.com "Whom the gods would destroy, they first invite to program in C"