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!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada is getting spanked :( References: <1162052997.664967.135910@e3g2000cwe.googlegroups.com> <3321666.DLNnW6yRHq@linux1.krischik.com> <4546f186$1@news.post.ch> In-Reply-To: <4546f186$1@news.post.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1162491679 12.201.97.213 (Thu, 02 Nov 2006 18:21:19 GMT) NNTP-Posting-Date: Thu, 02 Nov 2006 18:21:19 GMT Date: Thu, 02 Nov 2006 18:21:19 GMT Xref: g2news2.google.com comp.lang.ada:7330 Date: 2006-11-02T18:21:19+00:00 List-Id: 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. 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. -- Jeff Carter "I soiled my armor, I was so scared." Monty Python & the Holy Grail 71