11 points · by charzom · 19y ago · 30 comments
Python is close to something very, very good but not quite there. Logix in "Base Logix" mode seems to fix some of Python's problems while retaining its redeeming qualities.
If only a real Lisp would come along that had the leadership, library, community and documentation of Python.
Someone was asking for that just the other day. I was thinking myself that it would be pretty neat to write a Lisp dialect that compiled down to Python, and therefore you could get access to all the Python libraries, a decent VM, and also macros.
I've had trouble figuring out where to start, though. Would be a fun project.
That would be an incredibly bad idea. The implementation of SBCL (and CMUCL, upon which SBCL is based) is second to none--it has an optimizing compiler (available at runtime) with code-generation backends for architectures from x86 to MIPS; fantastic support for type inference, inline expansion, modular arithmetic, unreachable code deletion, constant folding, control optimization, generational garbage collection (doesn't python still use reference counts?)... amongst a bunch of other stuff.
http://shootout.alioth.debian.org/gp4/benchmark.php?test=all...
Benchmarks are of course arbitrary, but no matter what way you dice things, SBCL is vastly superior to Python's crappy VM. In the case of the link above, over 10 times faster.
I'm already using matplotlib and scipy with CLisp, communicating through pipes. I can write (plot '(1 2 3)). The communication between the two is really not a speed concern. Most of the time, Lisp is not waiting for an answer, so on my dual core, the other core is handling it.
For all its power though, writing Python code in Common Lisp feels really clunky. I don't do it much. I wouldn't feel comfortable writing (funcall (dot somedict keys)) for instance. Macros can only help so much.
Ok, I had started just that. It's called Boa Lisp. http://nearfar.org/code/boalisp/ http://nearfar.org/code/boalisp/README.txt
(sorry, site will be down for the next few hours)
Edit: Unfortunately Logix seems to have been dead since 2005.