From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: general lazy list facility for Emacs Lisp? Date: Thu, 24 Mar 2011 10:43:57 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ei5w7cci.fsf@lifelogs.com> References: <87pqphswn3.fsf@lifelogs.com> <877hbpzsy8.fsf@member.fsf.org> <87oc51rcal.fsf@lifelogs.com> <87tyetfymt.fsf@member.fsf.org> <87pqphfyak.fsf@member.fsf.org> <87oc51ipy5.fsf@lifelogs.com> <87hbathyuj.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300981521 31480 80.91.229.12 (24 Mar 2011 15:45:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 15:45:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 24 16:45:11 2011 Return-path: Envelope-to: ged-emacs-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 1Q2mik-0006vY-U3 for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2011 16:45:11 +0100 Original-Received: from localhost ([127.0.0.1]:51887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2mij-0000r0-Lj for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2011 11:45:09 -0400 Original-Received: from [140.186.70.92] (port=59794 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2mhy-0000SO-2H for emacs-devel@gnu.org; Thu, 24 Mar 2011 11:44:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2mhw-0002US-0o for emacs-devel@gnu.org; Thu, 24 Mar 2011 11:44:21 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2mhv-0002U8-RO for emacs-devel@gnu.org; Thu, 24 Mar 2011 11:44:19 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q2mho-0006Qo-Oa for emacs-devel@gnu.org; Thu, 24 Mar 2011 16:44:12 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2011 16:44:12 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2011 16:44:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kcbvGtGdpG7wtcGyUTE+ucPL1Cc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137635 Archived-At: On Wed, 23 Mar 2011 23:27:48 -0600 "Eric Schulte" wrote: ES> Just for completeness, a lazy.el file is attached implementing lazy ES> sequences in Emacs Lisp. This is basically an exact copy of lazy.lisp ES> with `lexical-let' used where closures are needed. Thanks, Eric. I'm not sure of the http://landoflisp.com/lazy.lisp license. There's also http://www.common-lisp.org/project/clazy (very similar to lazy.lisp), http://cl-heresy.sourceforge.net/Heresy.htm, http://common-lisp.net/project/funds, and http://www.common-lisp.org/project/fset all of which have different and viable implementations (the common name seems to be "purely functional data structures"). They all refer to SICP as a reference since it has a similar implementation of the basic idea. Of all of them, lazy.lisp seems most basic; funds and fset seem very data-oriented. Heresy seems like the most comprehensive and powerful package (see http://cl-heresy.sourceforge.net/Heresy.htm for examples, details, and functions provided). I'd love to use it but I don't know CL well so it will take me some time to port it. Still, it has a BSD license and should be OK as an ELPA package. Does that sound reasonable? Eric, are you interested in helping me port it? Thanks Ted