From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: streams are cool, you could stream virtually anything! Date: Wed, 04 Nov 2015 22:58:50 +0100 Message-ID: <87y4eda0kl.fsf@petton.fr> References: <87ziyuaqhl.fsf@petton.fr> <87fv0labbf.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1446674352 32160 80.91.229.3 (4 Nov 2015 21:59:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Nov 2015 21:59:12 +0000 (UTC) To: Michael Heerdegen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 04 22:59:04 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 1Zu659-0003Oo-0b for ged-emacs-devel@m.gmane.org; Wed, 04 Nov 2015 22:59:03 +0100 Original-Received: from localhost ([::1]:57342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu658-0003bd-C0 for ged-emacs-devel@m.gmane.org; Wed, 04 Nov 2015 16:59:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu653-0003bY-JV for emacs-devel@gnu.org; Wed, 04 Nov 2015 16:58:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu64y-0008Ph-Gg for emacs-devel@gnu.org; Wed, 04 Nov 2015 16:58:57 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu64y-0008Pc-Dz for emacs-devel@gnu.org; Wed, 04 Nov 2015 16:58:52 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3CB9F20364 for ; Wed, 4 Nov 2015 16:58:52 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 04 Nov 2015 16:58:52 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=5cVdCG4syfeGTJXRoNZzUtq7xpc=; b=RbCG1 ouTlZkkz9JzyuQjbntdGqhHmvULyDkh5EzszjF5Moz3hX7MIFm5HoR/UQ8IcaCnr yw18mnY0A38rXTwJz3pnAuWMH+eZqzaqEdVd5GXHVCH+Bu9vpszVVhYJ6vL3iJmM DZjsWF+xrfmoNVd/F1qE0uf2w9sJcDcEzimMkI= X-Sasl-enc: UmZoGhYeUG7eJrmcKh7q09IpE4m2wWLdQUte/UwdKlpT 1446674331 Original-Received: from blueberry (arennes-658-1-148-85.w2-2.abo.wanadoo.fr [2.2.145.85]) by mail.messagingengine.com (Postfix) with ESMTPA id 97077C016C4; Wed, 4 Nov 2015 16:58:51 -0500 (EST) In-Reply-To: <87fv0labbf.fsf@web.de> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 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:193241 Archived-At: --=-=-= Content-Type: text/plain Michael Heerdegen writes: > That depends on whether you want/need to keep the matches so far. If > you don't need to save prior matches, you can just > > (setq stream (stream-cdr stream)) > > after generating an element, and memory usage will be O(1). (Note to > Nicolas: a `stream-pop' function would be nice in this context). Indeed! Could I by any chance get another pull request from you on GitHub? Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJWOn+aAAoJECM1h6R8IHkQj2oH/2f0kZd6M1O4b/7akmkHvqRy cq6hhDeIbcNePhnWmE1BpN/Oo78VZYK5oSK227UfNsnUgjhbLP5CHZuVL49qM/RA nqnL2Rjh/bCJDdEeAtdvEvaRo9vsOwiuJKMkDxn8aUmoNumk7P7PwQiY5ajwAzkP pow6FqqviLIjzKmAwFfpmUwJktZQg0kNexCYyTw+etOe3PgQpOES1kz5mLppztUk LDCMI8FEZCZL6i/eLd/jh14pH6PqO20lE1w4FKrm+/6KIU/wXquFk2X6962cBdQK VebqXWxaSbdEeIJmfl+12qWnGdVjCqHj9daGf9sONjaa0dlH+5QEAyZjYmCfYA4= =b09M -----END PGP SIGNATURE----- --=-=-=--