From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.help Subject: Re: Using Emacs Lisp for script writing Date: Mon, 21 Dec 2009 16:13:08 -0500 Message-ID: <4B2FE4E4.6020101@gnu.org> References: <87hbrrrl3c.fsf@Traian.DecebalComp> <87vdg09ls9.fsf@Traian.DecebalComp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1261430028 6731 80.91.229.12 (21 Dec 2009 21:13:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2009 21:13:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Cecil Westerhof Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 21 22:13:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NMpZW-0007CC-79 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Dec 2009 22:13:42 +0100 Original-Received: from localhost ([127.0.0.1]:37403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMpZV-0000sb-T0 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Dec 2009 16:13:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMpZ5-0000rZ-Op for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 16:13:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMpZ1-0000r9-GP for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 16:13:15 -0500 Original-Received: from [199.232.76.173] (port=47226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMpZ1-0000r4-81 for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 16:13:11 -0500 Original-Received: from mx2.janestcapital.com ([38.105.200.102]:58201) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NMpYz-0003gv-PY; Mon, 21 Dec 2009 16:13:10 -0500 Original-Received: from nyc-qsv-mail1.delacy.com ([172.25.22.57]) by mx2.janestcapital.com with esmtp (Exim 4.69) (envelope-from ) id 1NMpYy-0004Lm-Oz; Mon, 21 Dec 2009 16:13:08 -0500 Original-Received: from nyc-qws-005.delacy.com ([172.25.131.105]) by nyc-qsv-mail1.delacy.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NMpYy-0004Dk-Nx; Mon, 21 Dec 2009 16:13:08 -0500 User-Agent: Thunderbird 2.0.0.22 (X11/20090625) Original-Newsgroups: gmane.emacs.help In-Reply-To: <87vdg09ls9.fsf@Traian.DecebalComp> X-Enigmail-Version: 0.95.6 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70786 Archived-At: Cecil Westerhof wrote: > Sam Steingold writes: > >>> I already use 'emacs -batch' for scripting where no user input is used, >>> but I would like to use it also for interactive scripting. Until now I >>> did not find any usable information about this. Anybody using Emacs for >>> interactive scripts? >> I use clisp for all scripting, interactive and not. >> Common Lisp is more powerful than Emacs Lisp and clisp is faster than >> emacs. > > I have been experimenting with clisp. But I think that Emacs Lisp does a > pretty good job. I translated a script I wrote in Emacs Lisp to CL. The > Emacs Lisp version needed 51 seconds on a certain data set. When using > clisp with the converted code, clisp needs 79 seconds. That is more as > 50% longer. > in addition to compilation - there might be non-obvious inefficiencies in the code. you might want to post it here (if it is not too big).