From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.devel Subject: rfc: (ice-9 accumulate) Date: Sat, 09 Jan 2010 11:44:03 +0100 Message-ID: <873a2fo8wc.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263034005 2282 80.91.229.12 (9 Jan 2010 10:46:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2010 10:46:45 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jan 09 11:46:38 2010 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.50) id 1NTYq4-0001rP-QS for guile-devel@m.gmane.org; Sat, 09 Jan 2010 11:46:37 +0100 Original-Received: from localhost ([127.0.0.1]:42658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTYq5-0000WG-75 for guile-devel@m.gmane.org; Sat, 09 Jan 2010 05:46:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTYq1-0000W5-K0 for guile-devel@gnu.org; Sat, 09 Jan 2010 05:46:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTYq0-0000Vr-Ho for guile-devel@gnu.org; Sat, 09 Jan 2010 05:46:33 -0500 Original-Received: from [199.232.76.173] (port=47705 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTYq0-0000Vo-CY for guile-devel@gnu.org; Sat, 09 Jan 2010 05:46:32 -0500 Original-Received: from smtp-out114.alice.it ([85.37.17.114]:2438) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTYpz-0006Fx-U4 for guile-devel@gnu.org; Sat, 09 Jan 2010 05:46:32 -0500 Original-Received: from FBCMMO03.fbc.local ([192.168.68.197]) by smtp-out114.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 11:46:29 +0100 Original-Received: from FBCMCL01B09.fbc.local ([192.168.171.26]) by FBCMMO03.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 11:46:29 +0100 Original-Received: from ambire.localdomain ([79.45.74.123]) by FBCMCL01B09.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 11:46:28 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1NTYnb-0005Xg-JH for guile-devel@gnu.org; Sat, 09 Jan 2010 11:44:03 +0100 X-OriginalArrivalTime: 09 Jan 2010 10:46:28.0930 (UTC) FILETIME=[FFBD0220:01CA9118] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:9840 Archived-At: Would there be any interest in adding (ice-9 accumulate) to Guile? - http://www.gnuvola.org/software/guile/doc/Efficient-Accumulation.html I can see several arguments against doing so: - It is a thin layer around (ice-9 q) functionality; possible to reimplement using (ice-9 q), in fact. When the layer is thin, i wonder if the usefulness is more personal (a matter of taste) than general. (See e.g., ttn-do macro `FE'.) - The interface is procedural, possibly defeating compiler optimization. When i wrote it, it was an exercise for hobbit. The hope was that hobbit could eventually learn to optimize usage of (ice-9 accumulate) calls to (strength-, complexity-)reduce them to (ice-9 q) calls, where other data-oriented optimizations can come into play. Perhaps that hope was only a non-compiler-geek dream (sounds nice but unfeasible). Perhaps Andy can either revive this hope or kindly kill it off now? - There is already something in Guile. [If so, where? Thanks.] Of course, the primary argument *for* adding it would be to make porting my stuff to Guile easier. That's a selfish argument, so take it FWIW. thi