From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: [ANN] New library stream.el in ELPA Date: Wed, 14 Oct 2015 09:40:20 -0700 Organization: New Artisans LLC Message-ID: References: <87d1whk75h.fsf@petton.fr> <87si5djubt.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444841945 8396 80.91.229.3 (14 Oct 2015 16:59:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 16:59:05 +0000 (UTC) Cc: Nicolas Petton To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 18:58:58 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmPOC-00075S-RX for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2015 18:58:56 +0200 Original-Received: from localhost ([::1]:43587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmPOC-0004sd-5J for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2015 12:58:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmP6m-0007ii-Qy for emacs-devel@gnu.org; Wed, 14 Oct 2015 12:40:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmP6N-0003zp-Pt for emacs-devel@gnu.org; Wed, 14 Oct 2015 12:40:35 -0400 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:34339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmP6N-0003zd-KP for emacs-devel@gnu.org; Wed, 14 Oct 2015 12:40:31 -0400 Original-Received: by payp3 with SMTP id p3so11000116pay.1 for ; Wed, 14 Oct 2015 09:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:date:organization:message-id :references:user-agent:mail-followup-to:mime-version:content-type; bh=5veX101Y2FkAAlBoO2mKgsnhz87TMpeD1jvpbrbinUI=; b=kFXLsDYn4ZfWK28ZVDD0uiuZtUmJkOtd1INg565ml/XiKrL8fLVjtJiK2JHh1+h6sY KH1m4wS/WJbpOLBwOC6V0PyW0k9ZFYQDfnfHHxYcvxWFm4e5JsVlutGLQJnGfeZdrC+B AZMh/hDHa8WJQMr6Qm/Mam12m5kv9+jAOajdNhEgJ4o9XBfVlvoSQa7bbfeQ4wbRfIl7 SlbDECAyuFpFpQhO71EgDSvzM1ZPNPAdDU7Rb1Gc4gvj0YJUKxZ5vWBNh8ViJDat4or9 AXuBt7lrz1ZppIsd7Kj1gNQpe+/0LhnkLvntaMyeyw0wihmHBZZufeoJj65L1daemXKV AFlA== X-Received: by 10.68.200.100 with SMTP id jr4mr4781958pbc.16.1444840831107; Wed, 14 Oct 2015 09:40:31 -0700 (PDT) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id kv9sm10641867pab.39.2015.10.14.09.40.30 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 14 Oct 2015 09:40:30 -0700 (PDT) Original-Received: by Vulcan.local (Postfix, from userid 501) id B4E3DF2F1882; Wed, 14 Oct 2015 09:40:29 -0700 (PDT) In-Reply-To: <87si5djubt.fsf@petton.fr> (Nicolas Petton's message of "Wed, 14 Oct 2015 18:20:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Mail-Followup-To: emacs-devel@gnu.org, Nicolas Petton X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191585 Archived-At: >>>>> Nicolas Petton writes: > stream.el is based on lazy form evaluation with memoization (which is > exactly what you describe IIUC), that I didn't need to expose it so I kept > it private to the library, see `stream--delay' and `stream-force': > https://github.com/NicolasPetton/stream/blob/master/stream.el#L62 What if you expose the lower-level API, and then make lazy streaming a useful example. I.e., call your module "thunk.el" or "lazy.el". I would have uses for such a library beyond streams of value: for example, querying an external process for a tidbit of information, but abstracting this interaction to appear as a "value" within a thunk. John