From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.devel Subject: Re: Multithreading, again and again Date: Thu, 20 Oct 2011 19:52:24 -0400 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 1319155070 25332 80.91.229.12 (20 Oct 2011 23:57:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2011 23:57:50 +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:57:46 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 1RH2Ua-00051w-0D for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 01:57:44 +0200 Original-Received: from localhost ([::1]:58194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH2UZ-0006bF-AK for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2011 19:57:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH2UW-0006b7-Qd for emacs-devel@gnu.org; Thu, 20 Oct 2011 19:57:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH2UV-0000oj-JF for emacs-devel@gnu.org; Thu, 20 Oct 2011 19:57:40 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH2UV-0000oe-BE for emacs-devel@gnu.org; Thu, 20 Oct 2011 19:57:39 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RH2US-0004yu-Lw for emacs-devel@gnu.org; Fri, 21 Oct 2011 01:57:36 +0200 Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com ([207.172.223.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 01:57:36 +0200 Original-Received: from dave by 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 01:57:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:e1W/1v8TW7YjN5fXFMHCHCNG+sg= 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:145375 Archived-At: on Thu Oct 20 2011, John Wiegley wrote: >>>>>> 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. Dollars to doughnuts, John told me exactly what he had meant to, and I was misremembering. Sorry for the false... -- Dave Abrahams BoostPro Computing http://www.boostpro.com