From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: if vs. when vs. and: style question Date: Fri, 27 Mar 2015 09:06:35 +0100 Message-ID: <20150327080635.GA26613@tuxteam.de> References: <87lhilx0cf.fsf@debian.uxu> <87twx9360u.fsf@kuiper.lan.informatimago.com> <0d1d19ab-06e9-462d-8867-9a49b1e232d3@googlegroups.com> <87lhil2io1.fsf@kuiper.lan.informatimago.com> <87zj6zw0wy.fsf@debian.uxu> <21781.3549.847754.15154@mail.eng.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1427443629 25796 80.91.229.3 (27 Mar 2015 08:07:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 08:07:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emanuel Berg To: Gian Uberto Lauri Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 09:07:09 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YbPI6-0005JX-K5 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 09:06:55 +0100 Original-Received: from localhost ([::1]:48757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbPI5-0002lX-NY for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 04:06:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbPHt-0002i3-Kp for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 04:06:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbPHq-0005iy-Ee for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 04:06:41 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:44119 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbPHq-0005in-7b for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 04:06:38 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1YbPHn-000769-I2; Fri, 27 Mar 2015 09:06:35 +0100 In-Reply-To: <21781.3549.847754.15154@mail.eng.it> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103381 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Mar 27, 2015 at 08:59:25AM +0100, Gian Uberto Lauri wrote: > Emanuel Berg writes: > > (1+ data) vs. (+ 1 data) > > I miss the original discussion, my apologies. > > In C, increment and decrement operators are meant to use hw processor > instructions. > > Is it the same for the LISP 1+ function? That depends on the compiler. OTOH -- for a decent modern compiler, the code generator would see the same, whether you type (+ 1 foo) or (1+ foo). The optimizer is solving much harder problems than that. This holds true for C as it holds for Lisp or Scheme or whatnot. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlUVD4sACgkQBcgs9XrR2kbphwCeMf4sCMOHCa+AJIVqDUB5cGVl 8vgAn1/D8DdYNHNtvPtUpKS7DrpLdnKD =koIq -----END PGP SIGNATURE-----