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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,2d4b24a39e4836e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-24 11:01:06 PST Path: archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!4.24.21.153!chcgil2-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: bignums Date: Tue, 24 Jul 2001 20:59:53 +0300 Organization: The Hebrew University of Jerusalem Message-ID: <9jkd44$q8o$1@news.huji.ac.il> References: <9jifep$kf0$2@news.tpi.pl> <9jk3th$knr$1@news.huji.ac.il> NNTP-Posting-Host: di2-4.dialin.huji.ac.il X-Trace: news.huji.ac.il 995997636 26904 132.64.12.4 (24 Jul 2001 18:00:36 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Tue, 24 Jul 2001 18:00:36 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: archiver1.google.com comp.lang.ada:10529 Date: 2001-07-24T20:59:53+03:00 List-Id: Gisle S�lensminde wrote in message news:slrn9lrdd8.t30.gisle@apal.ii.uib.no... > > I also wrote a binding for GMP, and have finished the integer part of it, > including a thick binding, but not for rationals and floats. I had plans > to develop the rest when I have made the thick binding for floats as > well, but the project stop since I personally only needed integers, and > the float stuff seems to be crap, so I stoped there without finishing the > project. I if anybody are interested I can put the bits together and > relese it. > > > The problem is that each new GMP number is dynamically allocated, > and for uing it with operator overloading you must make a controlled > type and allocate a new new number for each operation. This leads to > very slow code, compared to the thin binding. In my fibonacci test > there were a 1:6 difference between them. > Still seems to me worth publishing it somewhere (adapower, I guess). I'd post a fast version, not using controlled types - since I assume most users of such things worry mostly about speed. But then, I guess they also run out of memory sometimes... Ehud Lamm