From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: Nearly finished (re)integrating GMP for bignums. Date: Wed, 12 Feb 2003 11:32:05 -0600 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <874r79pfqi.fsf@raven.i.defaultvalue.org> References: <87heb9pjni.fsf@raven.i.defaultvalue.org> <87r8adihxe.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045072084 30795 80.91.224.249 (12 Feb 2003 17:48:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 17:48:04 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18j0ml-0006xh-00 for ; Wed, 12 Feb 2003 18:35:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j0mE-0007ak-08 for guile-devel@m.gmane.org; Wed, 12 Feb 2003 12:34:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18j0lx-0007a6-00 for guile-devel@gnu.org; Wed, 12 Feb 2003 12:34:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18j0lw-0007ZY-00 for guile-devel@gnu.org; Wed, 12 Feb 2003 12:34:12 -0500 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j0jt-0006nX-00 for guile-devel@gnu.org; Wed, 12 Feb 2003 12:32:05 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id F0552611; Wed, 12 Feb 2003 11:32:04 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 0947FB9E22; Wed, 12 Feb 2003 11:32:05 -0600 (CST) Original-To: Marius Vollmer In-Reply-To: <87r8adihxe.fsf@zagadka.ping.de> (Marius Vollmer's message of "12 Feb 2003 17:26:37 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:1917 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1917 Marius Vollmer writes: > Aren't we already using 64 bits for scm_t_bits on some platforms (such > as the Alpha and IA64)? Even if we don't, code should use > SIZEOF_SCM_T_BITS, etc. I'm not sure. It's been a while since I was messing around with guile on a 64 bit platform (last time was porting issues on an alpha and ia64). I can check... >> With respect to random.c, we have a pluggable random number system, >> and ATM the bignum randoms are computed using the >> "get_32_random_bits()" function provided by the random state object. >> However GMP has its own random number generators, including ones for >> bignums. Any thoughts on how we should handle this? > > I think we should use the GMP generators unless they are not as good > as ours. But I doubt that. Hmm, OK. Well for now I may see about just trivially integrating the gmp bignums into the current "plugin" system which only allows for a generator to generate 32 random bits at a time. If I do, I'll list "coming back later to see if we should rearrange things more thoroughly" as a TODO item. -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel