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,278bf0771374076e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!204.127.204.223.MISMATCH!wns13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: ada is getting spanked :( Date: Fri, 03 Nov 2006 13:06:33 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <454b30c9$1@news.post.ch> References: <1162052997.664967.135910@e3g2000cwe.googlegroups.com> <3321666.DLNnW6yRHq@linux1.krischik.com> <4546f186$1@news.post.ch> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1162555602 16248 194.41.146.1 (3 Nov 2006 12:06:42 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Fri, 3 Nov 2006 12:06:42 +0000 (UTC) User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 3 Nov 2006 13:06:33 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:7356 Date: 2006-11-03T13:06:33+01:00 List-Id: Jeffrey R. Carter schrieb: > Martin Krischik wrote: >> >> I too have looked into implementing the test. I found out that there >> are several Big_Integer implementations - some a binding - some native. >> >> Really one would need to implement the test with all of them to find >> out which is the most effective Big_Integer implementation. > > I have implemented the Pi-digits program using Jerome Delcourt's > Big_Number package > > http://www.chez.com/bignumber/info.htm > > 2500 digits takes about 7 s on my 3.2 GHz Pentium 4 HT/WinXP machine, so > that would be about 9 s on the comparison machine, putting Ada in the > vicinity of Python. Would you mind adding it to the wikibook ada subversion archive http://sourceforge.net/projects/wikibook-ada So we will never loose it. > I looked at Gautier de Montmollin's package, but there doesn't seem to > be a way to convert a big-num to an Integer. > > Based on the Free Pascal entry, binding to gmp would be much faster. But still faster then no entry as no entry is treated as slower then the slowest in the overall statistic. Martin