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: 103376,8de7eedad50552f1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 23 Mar 2005 13:00:26 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada bench : count words References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 23 Mar 2005 13:00:26 -0600 NNTP-Posting-Host: 67.161.24.234 X-Trace: sv3-7mJFitemqwUUFEAemkH+QbA64ZoNzz/BPiDU93WdsoRLDvxUo/aheZ8ROcLGcclIBuB2yobRbNgOtEK!ljeZrwJkWj0ygpt9weZKSXgmwhvIWt3M7QiB9pTYxCYGzKP/sht4WarrWD+wAg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:9816 Date: 2005-03-23T13:00:26-06:00 List-Id: > - special statute given to CR; personally I think all characters > (control or not) should count to total Right. I hadn't yet seen the original problem description. > - reliance on Stream_Element representing one character; portable > across all range of environments? I would argue that that's in effect assumed by the C and probably most of the other programs, so it should be assumed for Ada. (Similarly for the input file being an unstructured byte stream.) If you truly want a portable program, then the competition should be written to be portable also. I'll bet that would change some results. ;) >So we should submit yours, or mine inlined. It will put Ada right after >the Cs w.r.t. speed. W.r.t. executable file size Ada is much bigger. On In my (minimal) trial, Dmitry A. Kazakov's (Message-ID: <1j5jfikipztuc.jx5n2zhbg2np$.dlg@40tude.net>) appears still faster. I don't understand why, unless Gnat.OS.Lib is significantly faster than Gnat's Ada.Streams.Read, which seems unlikely.