announce - lython (lisp in python)
Miles Egan <[email protected]> Fri, 26 Dec 2003 12:53:08 -0800
| Newsgroups | gmane.lisp.clump |
|---|---|
| Message-ID | <[email protected]> |
I've been using Python at work for a while now and, while overall I think it's a decent language, I really don't like the syntax. As a lark I've been toying around with bolting an s-expr syntax on top of the Python runtime. Ruby would probably be a better substrate for this since it has first class symbols like lisp and Python doesn't, but it turns out that Python exposes enough of its internal compiler toolchain that this is very easy to do in Python. You can check it out here if you're curious: http://www.caddr.com/code/lython This is really just a simple proof of concept and nothing more (with some pretty ugly code), but I'm encouraged enough by how easy it's been to get this far to see how far I can push this. I'd appreciate some feedback on the following questions: 1. Would you prefer full blown procedural macros a la lisp or simpler scheme-style macros? 2. Would you prefer that lython follows common-lisp closely or is this a good opportunity to clean up and rethink some things? I definitely don't intend to go to the Scheme extreme with it but there are some things in CL I'd just as soon leave behind (not to mention there are some things that might be just about impossible to express in the Python runtime). 3. Do you think you might actually use this if it were robust enough? Might you be interested in helping out? Also, many thanks to John Aycock for his spark toolkit it Python which made lython very easy to implement. miles