From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Earl Newsgroups: gmane.emacs.devel Subject: Re: general lazy list facility for Emacs Lisp? Date: Wed, 23 Mar 2011 14:14:14 -0600 Message-ID: <877hbp3889.fsf@notengoamigos.org> References: <87pqphswn3.fsf@lifelogs.com> <877hbpzsy8.fsf@member.fsf.org> <87oc51rcal.fsf@lifelogs.com> <87tyetfymt.fsf@member.fsf.org> <87pqphfyak.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300911332 21462 80.91.229.12 (23 Mar 2011 20:15:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2011 20:15:32 +0000 (UTC) Cc: Tassilo Horn , Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 21:15:27 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 1Q2USd-0004hG-RK for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 21:15:27 +0100 Original-Received: from localhost ([127.0.0.1]:35431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2USX-0006qu-C7 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 16:15:13 -0400 Original-Received: from [140.186.70.92] (port=50599 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2UST-0006oY-2J for emacs-devel@gnu.org; Wed, 23 Mar 2011 16:15:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2USR-0005sK-N7 for emacs-devel@gnu.org; Wed, 23 Mar 2011 16:15:08 -0400 Original-Received: from mailout13.yourhostingaccount.com ([65.254.253.109]:58981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2USR-0005rY-Kr for emacs-devel@gnu.org; Wed, 23 Mar 2011 16:15:07 -0400 Original-Received: from mailscan04.yourhostingaccount.com ([10.1.15.4] helo=mailscan04.yourhostingaccount.com) by mailout13.yourhostingaccount.com with esmtp (Exim) id 1Q2USN-00053C-TJ for emacs-devel@gnu.org; Wed, 23 Mar 2011 16:15:03 -0400 Original-Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan04.yourhostingaccount.com with esmtp (Exim) id 1Q2USN-0004Qk-Rg; Wed, 23 Mar 2011 16:15:03 -0400 Original-Received: from authsmtp10.yourhostingaccount.com ([10.1.18.10]) by impout02.yourhostingaccount.com with NO UCE id NkF31g00A0D2B7u0000000; Wed, 23 Mar 2011 16:15:03 -0400 X-EN-OrigOutIP: 10.1.18.10 X-EN-IMPSID: NkF31g00A0D2B7u0000000 Original-Received: from [67.214.244.122] (helo=c3po) by authsmtp10.yourhostingaccount.com with esmtpa (Exim) id 1Q2USM-000208-RL; Wed, 23 Mar 2011 16:15:03 -0400 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAABGdBTUEAALGPC/xhBQAAAAFz UkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlw SFlzAAASmwAAEpsB4JJZDAAAAAl2cEFnAAAAMAAAADAAzu6MVwAAAaFJREFUSMe1VtuxxSAIzIz9 2Iyl2Aj1bBX0k5+LrwjGjJyPy2ROwtGNBJbVCwwwy1UNoOL3f+SBxkj15Lr4NsboN24DWMZxYQNA TjGmjC1gswJiqBbpDeANYMwXBFyAFB5L7ADMBcoSDgAFBSDHR2tA8ABMSB4AawB76pAnILsKx2lm 1VfpgUi3kxrySylRHdmQj40Jva2/jl8EY3Twv/phhsC9nIQR0hnAOUptYsL3RxvAk+YIH2AWsvTH GYBgKn8GaPYm5jNANaCQ8WfAzyH9x0crFfGl9X4QVdg8gEqN2KjBHi6V/iBq6iyAxTqd+Yvupwai VwM9LZkxQ6otihmS6H+mHlK5URwi0UQgWxHoxS5JagBSed7IzJRCallS2pg2QsamcGUFNSHgLZUv augJIUualv1Bv6+yVat1oeMq92s/mBBWQJH7dQX7CnpvWWs/4CazpHlB2RR1BFSzNGdIaTbbLil8 U76BKKU0GztapXP3C78bNYQ6MTQybY8OkIaITf9HPzyHkXE4YXs4mf5VDz+jAepj3RTQ3Ubv0SPy 9AcCrfKh0TBgvgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxMS0wMS0wM1QxMDo1MDo1NC0wNzowMIgC s0IAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTAtMDQtMDVUMTM6MjQ6NDgtMDY6MDCtwF/YAAAAAElF TkSuQmCC In-Reply-To: (Stefan Monnier's message of "Wed, 23 Mar 2011 16:03:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-EN-UserInfo: f8a5a3c49e1c4664ba81facb1022c4a9:67ddfe7aeaee6d1ea5b788d961d42633 X-EN-AuthUser: jearl@notengoamigos.org X-EN-OrigIP: 67.214.244.122 X-EN-OrigHost: unknown X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 65.254.253.109 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:137605 Archived-At: On Wed, Mar 23 2011, Stefan Monnier wrote: >> Just a short remark on what I've had in mind with "real" memoization: If >> elisp had closures (not clojures ;-)), then one could write memoize as >> function, just like the variant in the clojure source code below: > > On a related note: > Emacs has had closures for "ever", tho it only closes over variables > that are bound by `lexical-let' (provided by CL). Emacs-24 will have > a more integrated and efficient support for closures, by setting the > `lexical-binding' variable which makes `let' bind lexically in the same > way as in Common-Lisp. You can try it out right now in the > `lexbind-new' branch which is pretty much ready for inclusion (mostly > lacks testing, and has currently 1 open bug apparently around eieio; > additional testers are welcome). > > > Stefan Do you have a url for the branch? Jason