This post originated from an RSS feed registered with Python Buzz
by Ted Leung.
Original Post: Python vs Lisp
Feed Title: Ted Leung on the air : computers/programming/python
Feed URL: http://www.sauria.com/blog/computers/programming/python?flav=rss
Feed Description: Ted Leung on the air: Open Source, Java, Python, and ...
Thursday's posting on Lunacy provoked a decent number of comments. There was also a discussion (unrelated) of Python vs Lisp/Scheme in #joiito that day...
Now that lots of people are piling onto the Python bandwagon, it's amusing that many of them don't realize that they are using a language which has many similarities to Lisp. So as a service to both language communities, I'm posting references to a pair of pages written by Peter Norvig. The first is called Python for Lisp Programmers, and tries to help Lisp hackers map concepts they know on to Python. It also works in the reverse direction. There are also a few microbenchmarks, as well as a bunch of things that will trip up Lispers coming to Python.
The second page is called Retrospective on Paradigms of AI Programming and includes reflection on whether or not Lisp is still unique.
Those who commented on the Lunacy post left behind some other interesting tidbits. I've taken some of the links and reproduced them here. One of the things that interested me about Lunacy was the possibility of turning the decades of Lisp compiler research towards improving the performance of Python. Unfortunately, this pair of messages from Matthias Felleisen makes me a little less optimistic that this will be possible. The standard response to performance criticisms of Python is that you can always rewrite your code in C. Now, this is true, but I'd prefer not to rewrite working code if I can avoid it.
Bagley's Computer Language Shootout has some interesting micro benchmark results. Unfortunately, it hasn't been updated, so some of the numbers are out of date. If someone is looking for a worthy project to take on, reviving this would be great. It would be wonderful to keep it up as the various language communities improve their programs and implementations.
Here's Eric Raymond's account of how he discovered Python.
Lastly, there's Denys Duchier's on article continuations, which shows how to to continuations in Python by rewriting programs in continuation passing style. This is a good example for Python folks who are wondering what the big deal about continuations is.