From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp's future Date: Thu, 18 Sep 2014 09:46:41 +0200 Message-ID: <87a95xv09q.fsf@gmail.com> References: <54193A70.9020901@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411026453 768 80.91.229.3 (18 Sep 2014 07:47:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2014 07:47:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 18 09:47:27 2014 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 1XUWR4-0000SL-3i for ged-emacs-devel@m.gmane.org; Thu, 18 Sep 2014 09:47:26 +0200 Original-Received: from localhost ([::1]:48972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUWR3-0006EP-LV for ged-emacs-devel@m.gmane.org; Thu, 18 Sep 2014 03:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUWQm-0006DH-0Q for emacs-devel@gnu.org; Thu, 18 Sep 2014 03:47:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUWQg-0000ie-Pj for emacs-devel@gnu.org; Thu, 18 Sep 2014 03:47:07 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUWQg-0000iS-JB for emacs-devel@gnu.org; Thu, 18 Sep 2014 03:47:02 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUWQY-0000Hh-2s for emacs-devel@gnu.org; Thu, 18 Sep 2014 09:46:54 +0200 Original-Received: from g231109062.adsl.alicedsl.de ([92.231.109.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2014 09:46:54 +0200 Original-Received: from tjolitz by g231109062.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2014 09:46:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231109062.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:nu68iLawnT8X4UeoI98/kcclkJc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:174485 Archived-At: Stefan Monnier writes: > I just tried a silly microbenchmark to get an idea of the byte-code > interpreter's performance: > > (let ((x 0)) (dotimes (i 10000000) (setq x (- i x))) x)) > > and on my machine, it took 3.5s compared. This isn't super-fast > compared to Emacs-24.3 which takes 6.7s in the purely interpreted case > and 1.7s in the byte-compiled case. I could not resist to compare this with my favorite 'pure and powerful' (and interpreted) PicoLisp: ,---- | : (bench (let X 0 (for I 10000000 (setq X (- I X))) X)) | 0.338 sec | -> 5000000 `---- while the Emacs Lisp version on my machine yields: ,---- | : (benchmark-run nil (let ((x 0)) (dotimes (i 10000000) (setq x (- i x))) x)) `---- -> (3.5045056839999997 0 0.0) See ,---- | http://picolisp.com/wiki/?PILvsEL `---- for more speed comparisons between PicoLisp and Emacs Lisp. -- cheers, Thorsten