Message from discussion
Very poor Lisp performance
Path: g2news1.google.com!news3.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.anlx.net!caladan!bbc!news-peer-lilac.gradwell.net!nntp-peering.plus.net!ptn-nntp-feeder01.plus.net!ptn-nntp-spool02.plus.net!ptn-nntp-spool01.plus.net!ptn-nntp-reader04.plus.net!not-for-mail
Message-ID: <42ff7f92$0$17484$ed2e19e4@ptn-nntp-reader04.plus.net>
From: Jon Harrop <use...@jdh30.plus.com>
Subject: Re: Very poor Lisp performance
Newsgroups: comp.lang.lisp
Date: Sun, 14 Aug 2005 18:27:19 +0100
References: <42fdd7a8$0$97130$ed2619ec@ptn-nntp-reader03.plus.net> <2005081321013216807%raffaelcavallaro@pasdespamsilvousplaitmaccom> <42ff04a9$0$78285$157c6196@dreader1.cybercity.dk> <42ff1c6e$0$1279$ed2619ec@ptn-nntp-reader02.plus.net> <3m95opF15sleiU1@individual.net> <42ff662a$0$97128$ed2619ec@ptn-nntp-reader03.plus.net> <m3mznksdx9.fsf@rigel.goldenthreadtech.com> <42ff70f5$0$1314$ed2619ec@ptn-nntp-reader02.plus.net> <3m9bqeF13q7jmU1@individual.net>
Organization: Flying Frog Consultancy Ltd.
User-Agent: KNode/0.8.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Lines: 35
NNTP-Posting-Host: 028852c8.ptn-nntp-reader04.plus.net
X-Trace: DXC=cmM3hHIIB\iW@6TkDZ[O1jigd3Y`7Rb;n3_LeXC3B]SioL71Q8QE1haW1jAdZ1<LHe5PCcS[NJ6<k35bUV1j9gP`
X-Complaints-To: abuse@plus.net
Ulrich Hobelmann wrote:
> Jon Harrop wrote:
>> What kinds of tasks is Lisp best at, in terms of performance? I Googled
>> for information on this but most of the sites I found were no longer up.
>
> Why performance at all?
I became interested in Lisp's performance because several people advocated
Lisp to me for these kinds of tasks, claiming that it was suitably
efficient. I wanted to test that.
> Lisp is good at many things, most notably good
> error recovery (interactive debugger, restarts...), but not for
> high-performance computing. There you probably want Fortran or C (and
> maybe link them to Lisp).
My background is in computational science. Fortran is fine for trivial
programs that just loop over arrays of floats. Mathematica is great for
symbolic computation. But there is a huge gap between those where Fortran
isn't expressive enough and Mathematica isn't efficient enough. Languages
like OCaml, SML, Haskell and Lisp fill that gap.
> For symbolic processing, or anything non-number-chrunchy I wouldn't be
> surprised if an application written in Lisp (compiled) isn't a bit
> slower than the same app written in C++ or Java. But of course nobody
> writes an app in several languages...
I think it is productive to choose suitable tasks and implement them in
several different languages. It helps other people to learn, e.g. by
comparing C++ code to the equivalent OCaml, and it gives us all an idea of
how efficient and expressive the different languages are.
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com