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-Thread: a07f3367d7,3a6a9f1d654285ba X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) Date: 03 Aug 2009 14:36:59 +0200 Organization: Jacob Sparre Andersen Sender: sparre@jspa-nykredit Message-ID: <87bpmxdqfo.fsf@nbi.dk> References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <0c18b36c-7af0-454c-8208-9b0416111a1f@w41g2000yqb.googlegroups.com> <87fxc9e0mg.fsf@nbi.dk> <4a76cd4f$0$31329$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 79.138.239.46.bredband.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: munin.nbi.dk 1249303081 8342 79.138.239.46 (3 Aug 2009 12:38:01 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 3 Aug 2009 12:38:01 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Xref: g2news2.google.com comp.lang.ada:7540 Date: 2009-08-03T14:36:59+02:00 List-Id: Georg Bauhaus wrote: > Jacob Sparre Andersen schrieb: > > Wouldn't it be even faster to map the data file to a string (using > > POSIX.Memory_Mapping.Map_Memory), and then "read" from that > > string? > > According to the FAQ, "programs are expected to either take a single > command-line parameter or read text from stdin." If we interpret this as the choice of the implementer, then there is no problem. If the programs have to be able to read from stdin, then memory mapped files aren't of much use. > "Each program was run as a child-process of a Python script using > Popen" That's not a problem. > There also is a "preference for plain vanilla programs". I would definitely consider POSIX plain vanilla on a Linux system. > It seems, then, that Ada has not the best built in support for > programs that should quickly read and write lines of chars from and > into pipes, respectively. Agreed. Greetings, Jacob -- "We will be restoring normality as soon as we are sure what is normal anyway."