From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [Request] seq-map and mapcar with arbitrary number of sequences Date: Sun, 11 Oct 2015 16:51:04 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: ger.gmane.org 1444596702 17024 80.91.229.3 (11 Oct 2015 20:51:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Oct 2015 20:51:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: "John Wiegley" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 11 22:51:29 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 1ZlNaZ-0000Ev-KD for ged-emacs-devel@m.gmane.org; Sun, 11 Oct 2015 22:51:27 +0200 Original-Received: from localhost ([::1]:49709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlNaY-0005a6-RE for ged-emacs-devel@m.gmane.org; Sun, 11 Oct 2015 16:51:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlNaE-0005Zq-OH for emacs-devel@gnu.org; Sun, 11 Oct 2015 16:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlNaE-0002fV-1K for emacs-devel@gnu.org; Sun, 11 Oct 2015 16:51:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlNaD-0002ee-3M; Sun, 11 Oct 2015 16:51:05 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZlNaC-00077E-Ld; Sun, 11 Oct 2015 16:51:04 -0400 In-reply-to: (johnw@newartisans.com) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:191271 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Those two functions are used in a large number of places. Adding support for a > "&rest seqs" argument rather than "seq" could impact performance, as it now > has to walk a one-element seqs to get the seq it had directly before. I > believe it would add another cons cell to the memory footprint, to package the > argument? We could add a facility to define a &rest function to specify another function to handle the one-arg case. That way, the simple case now handled would be essentially as efficient as it is now, interpreted. Byte compiled, the optimiziation is easier since it can be done purely inside the byte compiler. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.