From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_i_fraction_reduce thread safety Date: Sun, 11 Jan 2004 02:31:36 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87hdz3xocn.fsf@zagadka.ping.de> References: <3FD85844.3060108@ccrma> <1071170342.1217.60.camel@flare> <87wu91mxhf.fsf@zip.com.au> <87k73z1la9.fsf@zagadka.ping.de> <87ad4ve61r.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073785500 17835 80.91.224.253 (11 Jan 2004 01:45:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2004 01:45:00 +0000 (UTC) Cc: Carl Witty , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 11 02:44:55 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AfUet-0003b3-00 for ; Sun, 11 Jan 2004 02:44:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AfVYZ-0005fN-6R for guile-devel@m.gmane.org; Sat, 10 Jan 2004 21:42:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AfVY6-0005ez-LX for guile-devel@gnu.org; Sat, 10 Jan 2004 21:41:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AfVXa-0005K4-GN for guile-devel@gnu.org; Sat, 10 Jan 2004 21:41:57 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AfVXa-0005Jl-6m for guile-devel@gnu.org; Sat, 10 Jan 2004 21:41:26 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by mx20.gnu.org with esmtp (Exim 4.24) id 1AfUS2-0007EY-4H for guile-devel@gnu.org; Sat, 10 Jan 2004 20:31:38 -0500 Original-Received: from dialin.speedway15.dip81.dokom.de ([195.253.15.81] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 1AfUSf-0005NH-00 for guile-devel@gnu.org; Sun, 11 Jan 2004 02:32:17 +0100 Original-Received: (qmail 14022 invoked by uid 1000); 11 Jan 2004 01:31:36 -0000 Original-To: Bill Schottstaedt In-Reply-To: <87ad4ve61r.fsf@zip.com.au> (Kevin Ryde's message of "Sun, 11 Jan 2004 09:29:36 +1000") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3195 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3195 Kevin Ryde writes: > But the problem at the moment with reducing fractions is that it's > happening when merely reading the value out. Or what one would hope > was merely reading the value, ie. printing or equality testing. Yes, I agree that we should do somehting about this, even when the general problem still remains unaddressed. User code should only use scm_numerator and scm_denominator to access parts of the fraction object and those functions will first reduce the fraction (in a thread safe way). Wouldn't that be enough? -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel