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!news1.google.com!news.glorb.com!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 04 Aug 2009 19:08:37 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) 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> <87bpmxdqfo.fsf@nbi.dk> <2bae762e-0d8a-4389-843a-466e87f59fd1@a37g2000prf.googlegroups.com> In-Reply-To: <2bae762e-0d8a-4389-843a-466e87f59fd1@a37g2000prf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a786b15$0$30230$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 04 Aug 2009 19:08:37 CEST NNTP-Posting-Host: fcc75503.newsspool1.arcor-online.net X-Trace: DXC=]8DRPZR2Ic20Jic==]BZ:afN4Fo<]lROoRA^YC2XCjHcbITBNimU?D:dC;9OJDO8_SKFNSZ1n^B98iJme`ZfalWkmI X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7576 Date: 2009-08-04T19:08:37+02:00 List-Id: Isaac Gouy schrieb: > On Aug 4, 8:43 am, Isaac Gouy wrote: >> On Aug 3, 1:29 pm, Robert A Duff wrote: >> >>> Isaac Gouy writes: >>>> On Aug 3, 5:36 am, Jacob Sparre Andersen wrote: >>>>> 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. >>>> "read line-by-line a redirected FASTA format file from stdin" >>>> http://shootout.alioth.debian.org/u32/benchmark.php?test=knucleotide&... >>> What exactly does that mean? >>> Would it be "cheating" to read all of stdin until reaching end-of-file, >>> and then break the result up into lines (by whatever means)? >> iirc the default buffer size for Java reader is 8192 bytes - use that. > > > Better yet, the C++ programn seems to do just fine with this: > > > char buffer[128]; But the more pressing question is, to me at least---others will have better ideas---what functionality may we use for reading, say, 128 char values? Can we import OS functions? Or the POSIX library? I have already install libflorist in a new testing VM, in order to compare Text_IO agains POSIX input.