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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,CP1252 X-Google-Thread: 103376,a4d2751f9487bd38 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-07 08:49:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail Message-ID: <3F099661.5060202@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Real data for a change in the assignment operators and Bounded_String discussions. References: <3F04F778.5090305@attbi.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 24.62.164.137 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1057592950 24.62.164.137 (Mon, 07 Jul 2003 15:49:10 GMT) NNTP-Posting-Date: Mon, 07 Jul 2003 15:49:10 GMT Organization: AT&T Broadband Date: Mon, 07 Jul 2003 15:49:10 GMT Xref: archiver1.google.com comp.lang.ada:40108 Date: 2003-07-07T15:49:10+00:00 List-Id: Georg Bauhaus wrote: > And the final message is: > > : georg@strudel:/tmp$ ./whole > Killed > georg@strudel:/tmp$ > > after a few minutes and total exhaustion of physical memory > and swap space. Another interesting C program :-) Don't lose any sleep over this. The only "debugging" I did on the Ada version was to add a couple of New_Line calls, and remove a couple of blanks from the Put calls to make the output look prettier. And that is sort of the point. If I hadn't been "publishing" the code, I wouldn't have even done that, just used the results and gone on. In Ada, I could do some pretty fancy string manipulation in "throwaway" code just to make the overall program simpler. I am sure I could debug my way through to a working version of a similar C program. But I certainly wouldn't try to do it with the same style of pasting string sections together from long and unhappy experience. In C (and C++) I'd much rather write the program to work on one line of input at a time, with only one (malloced) buffer. -- Robert I. Eachus �In an ally, considerations of house, clan, planet, race are insignificant beside two prime questions, which are: 1. Can he shoot? 2. Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and Steve Miller.