comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: The Computer Language Shootout Benchmarks
Date: Wed, 03 May 2006 18:03:14 +0200
Date: 2006-05-03T18:03:14+02:00	[thread overview]
Message-ID: <1706825.Rr4F3nhIbP@linux1.krischik.com> (raw)
In-Reply-To: 1146595198.437109.277820@u72g2000cwu.googlegroups.com

jimmaureenrogers@worldnet.att.net wrote:

> 
> Martin Krischik wrote:
>> Hello
>>
>> Ada is currently missing 2 programs on the "The Computer Language
>> Shootout Benchmarks" [1].
>>
>> I would not mind having a go. But before I start:
>>
>> One test [2] needs a hash table implementation. The compiler used has
>> no Ada 2005 features so one need to add the implementation to the code
>> itself. Anybody can got a stand alone implementation? Or knows which
>> collections class lib could easily been torn apart?
>>
>> The  other test [3] needs some Unbounded_Integer / BigInt etc. type. We
>> could bind to gmp - but I don't like the idea if pragma Import in the
>> code.
> 
> This is precisely why I have not found the motivation to complete those
> two benchmarks.

And somehow I feel that one of those tests has been make to make debians
hash tables for C shine.

Also C cheats:

1) Thy don't check for ">THREE" as demanded but only for ">TH" making up for
a propper string compare. I think that Ada won't need that

2) They use a dynamicly growing buffer with an initial size large enough to
hold the hole dateset. This we can dupplicate using the old recursive
string concaternation with an initial string size just as big as C's so it
never goes into recursion.

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  reply	other threads:[~2006-05-03 16:03 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-02 17:33 The Computer Language Shootout Benchmarks Martin Krischik
2006-05-02 18:39 ` jimmaureenrogers
2006-05-03 16:03   ` Martin Krischik [this message]
2006-05-04 16:48     ` Martin Krischik
2006-05-04 18:20       ` tmoran
2006-05-05  8:10       ` Craig Carey
2006-05-05 18:15         ` Martin Krischik
2006-05-06 11:00           ` Craig Carey
2006-05-06 19:00           ` tmoran
2006-05-06  7:00       ` igouy
2006-05-07  9:56         ` Martin Krischik
2006-05-06  6:57     ` igouy
2006-05-02 19:14 ` Gautier
2006-05-04  2:01   ` Craig Carey
2006-05-04  3:16     ` Craig Carey
2006-05-06  7:34       ` igouy
2006-05-06 11:29         ` Craig Carey
2006-05-06 16:01           ` igouy
2006-05-08 13:24             ` Marc A. Criley
2006-05-09  5:23               ` Craig Carey
2006-05-02 21:32 ` Tapio Kelloniemi
2006-05-02 22:37   ` Matthew Heaney
2006-05-03 10:12     ` Tapio Kelloniemi
2006-05-03 14:55       ` Matthew Heaney
2006-05-03 16:15         ` Martin Krischik
2006-05-03 17:11         ` Tapio Kelloniemi
2006-05-03 16:05   ` Martin Krischik
2006-05-03  0:12 ` Matthew Heaney
2006-05-03 16:05   ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox