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: streams are cool, you could stream virtually anything! Date: Fri, 06 Nov 2015 10:41:19 -0500 Message-ID: References: <87ziyuaqhl.fsf@petton.fr> <87fv0labbf.fsf@web.de> <87y4eda0kl.fsf@petton.fr> <8737wl9w5f.fsf@web.de> <87bnb8kd82.fsf@petton.fr> <87wptwirxw.fsf@petton.fr> <877flwl7ee.fsf@web.de> <87y4ecglb5.fsf@petton.fr> <87ziys57hl.fsf@web.de> <87y4eb4d3o.fsf@petton.fr> <87r3k3451f.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446826199 14684 80.91.229.3 (6 Nov 2015 16:09:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 16:09:59 +0000 (UTC) Cc: Michael Heerdegen , bruce.connor.am@gmail.com, emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 06 17:09: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 1ZujaP-0007EL-BX for ged-emacs-devel@m.gmane.org; Fri, 06 Nov 2015 17:09:57 +0100 Original-Received: from localhost ([::1]:39701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZujaO-0004kt-PZ for ged-emacs-devel@m.gmane.org; Fri, 06 Nov 2015 11:09:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuja3-0004jr-KN for emacs-devel@gnu.org; Fri, 06 Nov 2015 11:09:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zuja1-00085J-AF for emacs-devel@gnu.org; Fri, 06 Nov 2015 11:09:35 -0500 Original-Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:36184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuja0-00084w-U4 for emacs-devel@gnu.org; Fri, 06 Nov 2015 11:09:33 -0500 Original-Received: by vkex70 with SMTP id x70so17191465vke.3 for ; Fri, 06 Nov 2015 08:09:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=6kVY0U0ZKvYrL0+E4bZF9aB+aF2c8oIam+VXpAsZaJQ=; b=GPaxC0WygGj7ySNNpgOwjnULkable7jiRSZpGXoa6saw+yIZXnd9vafRgzHD+zOXr5 CaH5J2D31bxsRAsiBdEyDSDoRXIaD35hZ1nvmouXAxCjog+lV6qKKUljdhA9si67uQQs bsWYJWFJic8VhzINPQCRYTcihJYPB/Tn/h6FnMhTuGIPbiPBlcjbLjKXRvT1f+mlJsIk J7Xj8fqwHI2I4jGKZDMqv+cUaC2Dok/aaZlAAE5Ha3JDIZU8D92JFIJCyi+ppUeeNXL2 eKlfeqFJolAaTCLSh7poZVvcMzsFctwxyeMPQDWmQKFXsXBQYCLrCyoL3A0g/+3Ai54c BTVw== X-Received: by 10.31.14.7 with SMTP id 7mr14423153vko.133.1446826172600; Fri, 06 Nov 2015 08:09:32 -0800 (PST) Original-Received: from Hermes-2.local ([216.57.92.130]) by smtp.gmail.com with ESMTPSA id j3sm643638vkd.3.2015.11.06.08.09.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Nov 2015 08:09:30 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Hermes-2.local (Postfix, from userid 501) id 838E848F2A9C; Fri, 6 Nov 2015 11:09:28 -0500 (EST) In-Reply-To: <87r3k3451f.fsf@petton.fr> (Nicolas Petton's message of "Fri, 06 Nov 2015 14:43:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Mail-Followup-To: Nicolas Petton , bruce.connor.am@gmail.com, emacs-devel , Michael Heerdegen X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c05::22c 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:193443 Archived-At: >>>>> Nicolas Petton writes: > No, I guess that was for `stream-first' and `stream-rest', right? Correct, I didn't mean to talk about stream-pop/push, but first/rest. Since first/rest do mean car/cdr in cl.el, having both sets makes sense. But I also meant to comment on how we choose more streaming names in the future. As someone else mentioned, lists and streams overlap at the notion of sequences -- the main differences being the operational semantics of laziness, and the semantics of allowing infinite streams. So let's say I've written a function over lists, and I realize I want it to act on streams instead. I'd hope that I could just insert "stream-" in several places and fulfill that need. If I have to also change over to a different set of names for the same effective operations, that would be unfortunate. One could even imagine a wrapper library that works on both lists and streams -- since lists are effectively pre-computed streams -- but that may be more than we need just yet. John