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 Message-ID: <4546ECF8.FBF2A258@fakeaddress.nil> Date: Tue, 31 Oct 2006 07:28:08 +0100 From: Gautier X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.180.49 X-Original-NNTP-Posting-Host: 83.76.180.49 X-Trace: news.bluewin.ch 1162276090 83.76.180.49 (31 Oct 2006 07:28:10 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:7282 Date: 2006-10-31T07:28:08+01:00 List-Id: jtg: > Some time ago I started to implement it. However, the problem requires > usage of big integers, which are not supported by Ada. Sure they are! Only on this page you have 5 flavours of them: http://www.chez.com/bignumber/ A quick look on Google seems to give some more. > However, gcc has very fast library (gmp), which can be used in c and c++ > programs just by inserting "# include " into a program file and > "-lgmp" into a compiler command-line. > Is there any standard Ada binding to the GMP library? By "standard > binding" I mean a binding included in gnat/gcc. The AdaGMP bindings seem to be no more available, however, you can give a try with my package which doesn't even require dynamic allocation: http://homepage.sunrise.ch/mysunrise/gdm/gsoft.htm#mathpaqs see the mathpaqs.zip archive, mupreint.ad* files. There are also a test and a RSA cypher using it. HTH Gautier _______________________________________________________________ Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!