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

Kim Nyberg (kny@tekla.fi)
30 Sep 1994 06:58:56 GMT

In article <36etjf$6gj@brachio.zrz.TU-Berlin.DE> koen1830@w250zrz.zrz.tu-berlin.de (Andreas Koenig) writes:
Interesting, I don't know python, but `append' looks like you are
appending to an array, while in perl you unshift, which is quite a
different operation. If I replace the unshift with a push in the perl
script, the results on my slow NeXT are:

Yeah, tested it on an old decstation 5000/240 (couldn't find python on
our alphas ;)

kny@kit:~/tmp: time python tst.py
3.081s real 1.441s user 0.257s system 55% python tst.py
kny@kit:~/tmp: time perl tst.pl
10.878s real 8.999s user 0.218s system 84% perl tst.pl
kny@kit:~/tmp: time perl tst2.pl
0.691s real 0.417s user 0.062s system 69% perl tst2.pl

tst.pl is the unshift-version, tst2.pl uses push. So, what was the
point? Yeah, yeah, I know python is quite cool, but it's not an option
for me to use it as a primary development language, so I stick with
perl, excellent for oneliners and fine for small q&d projects.

--andreas koenig

Kim