Re: Lisp in hardware

From: Alexander Burger (abu_at_software-lab.de)
Date: 08/09/04


Date: 9 Aug 2004 18:03:41 GMT

Edi Weitz <spamtrap@agharta.de> wrote:
> On 9 Aug 2004 17:00:44 GMT, Alexander Burger <abu@software-lab.de> wrote:

> > please show me a Lisp interpreter faster than Pico Lisp
> If I do this
> (de fac (n) (if (= n 0) 1 (* n (fac (- n 1)))))
> in PicoLisp 2.0.13 and then evaluate (fac 5000) it takes about 15
> seconds on my laptop.

> With CLISP 2.33.2 and
> (defun fac (n) (if (= n 0) 1 (* n (fac (- n 1)))))
> (fac 5000) needs less than 0.3 seconds without compiling the function.

Clever! However, I wrote:

> ... faster than Pico Lisp, regarding the bare evaluation mechanism.
                                           ^^^^^^^^^^^^^^^

I expected something like your example. You can't compare apples with
bananas, because Pico Lisp does all arithmetics in Bignums (I said, I
usually don't care so much about speed). You are solely testing the
bignum performance vs. probably short integers.

But we were talking about binding strategies. The 'tst' example in the
paper used only list operations.

- Alex

-- 
   Software Lab. Alexander Burger
   Bahnhofstr. 24a, D-86462 Langweid
   abu@software-lab.de, http://www.software-lab.de, +49 821 9907090