From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] New division operators, and optimization for fractions Date: Mon, 14 Feb 2011 13:17:32 -0500 Message-ID: <87mxly8oqr.fsf@netris.org> References: <87sjvvv4md.fsf@yeeloong.netris.org> <038067C1-A2E3-470E-BA83-D1BE40FE96C1@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297707676 27563 80.91.229.12 (14 Feb 2011 18:21:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 18:21:16 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: Ken Raeburn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 14 19:21:12 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp32s-0001bk-7I for guile-devel@m.gmane.org; Mon, 14 Feb 2011 19:21:10 +0100 Original-Received: from localhost ([127.0.0.1]:60662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp32r-0007Uc-Mg for guile-devel@m.gmane.org; Mon, 14 Feb 2011 13:21:09 -0500 Original-Received: from [140.186.70.92] (port=39884 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp2zj-0005fO-PF for guile-devel@gnu.org; Mon, 14 Feb 2011 13:17:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp2zh-000080-Sa for guile-devel@gnu.org; Mon, 14 Feb 2011 13:17:55 -0500 Original-Received: from world.peace.net ([216.204.32.208]:54246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp2zh-0008Uk-Nq for guile-devel@gnu.org; Mon, 14 Feb 2011 13:17:53 -0500 Original-Received: from ip68-9-118-38.ri.ri.cox.net ([68.9.118.38] helo=freedomincluded) by world.peace.net with esmtpa (Exim 4.69) (envelope-from ) id 1Pp2zP-0003e0-5w; Mon, 14 Feb 2011 13:17:35 -0500 Original-Received: from mhw by freedomincluded with local (Exim 4.69) (envelope-from ) id 1Pp2zN-0001UR-7n; Mon, 14 Feb 2011 13:17:33 -0500 In-Reply-To: <038067C1-A2E3-470E-BA83-D1BE40FE96C1@raeburn.org> (Ken Raeburn's message of "Mon, 14 Feb 2011 08:56:47 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.204.32.208 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11620 Archived-At: Ken Raeburn writes: > On Feb 12, 2011, at 06:55, Andy Wingo wrote: >> Regarding multiple values: instead of unpacking values objects (ugh), >> can you instead make versions of _divide that return two values >> directly, as output arguments? > > Or maybe a function returning a struct of two SCM fields (or a single > array-of-2 field)? I believe the main motivation for avoiding values objects is to avoid heap allocation, which your idea would also require. Best, Mark