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: Multithreading, again and again Date: Thu, 20 Oct 2011 18:00:40 -0500 Message-ID: References: <4E82C377.4040007@yandex.ru> <87vcrne2pv.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319151785 7795 80.91.229.12 (20 Oct 2011 23:03:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2011 23:03:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 01:03:01 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RH1db-0006f1-Pt for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 01:02:59 +0200 Original-Received: from localhost ([::1]:45222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH1db-0000qv-9i for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2011 19:02:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH1dW-0000qk-3x for emacs-devel@gnu.org; Thu, 20 Oct 2011 19:02:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH1dU-0007xl-Pf for emacs-devel@gnu.org; Thu, 20 Oct 2011 19:02:54 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH1dU-0007xU-DH for emacs-devel@gnu.org; Thu, 20 Oct 2011 19:02:52 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RH1dT-0006aF-4h for emacs-devel@gnu.org; Fri, 21 Oct 2011 01:02:51 +0200 Original-Received: from c-98-215-105-167.hsd1.il.comcast.net ([98.215.105.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 01:02:51 +0200 Original-Received: from jwiegley by c-98-215-105-167.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 01:02:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-105-167.hsd1.il.comcast.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:2thQ1TK0hu6HTgJDjAJapjWERAQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:145373 Archived-At: >>>>> Dave Abrahams writes: >>> For what it's worth, experiments show that launching Emacs as a scripting >>> engine (e.g. using it in a shebang) is actually more efficient than >>> launching some more traditional scripting languages. >> >> That's indeed unexpected. Can you point to some more details? > I think I need to ask John Wiegley to fill you in. He did the experiments. > John? I think our signals may be a little crossed. What I had meant to tell Dave was that an Emacs-shebang script is faster at starting up and printing "Hello, world" than the equivalent ECL script -- which, for small little scripts, means that using Emacs Lisp could be more efficient than using CL standalone binaries. I did not compare my test with Bash, however, or with using more complex scripts, where I'd expect CL's native-language compilation to far outdo Emacs Lisp. John