Re: Tcl/Lisp/Python: A "User" point of view

Tom Christiansen (tchrist@mox.perl.com)
30 Sep 1994 18:58:39 GMT

:-> In comp.lang.tcl, blume@beth.cs.princeton.edu (Matthias Blume) writes:
:Since we are still in comp.lang.scheme (among others), here are some more
:data (from a DEC Alpha box):
:
:Perl:
:
:$ cat test.pl
:for ($i = 0 ; $i < 10000 ; $i++) {
: unshift(@f, $i) ;
:}
:
:$ /bin/time perl test.pl
:
:real 4.6
:user 4.4
:sys 0.0
:
:VSCM:
:
:$ cat test.scm
:cat test.scm
:(do ((i 0 (+ i 1))
: (l '() (cons i l)))
: ((>= i 10000) l))
:(quit)
:
:$ /bin/time scheme test.scm
:[SLIB available]
:Loading "test.scm" ...
:
:real 0.3
:user 0.2
:sys 0.0
:
:$
:
:No attempt is made to draw conclusions from the above...

I'll make two.

1) The scheme version has a lot of visual clutter, and makes perl seem
utterly legible.

2) You chose pessimal perl. If you appended instead of prepended, you'd
have abouta 15x speedup.

--tom

-- 
"Lisp has all the visual appeal of oatmeal with fingernail clippings mixed in."
	--Larry Wall in <1994Jul21.173737.16853@netlabs.com>

Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com