Is a "real" C-Python possible?

Kay Schluehr kay.schluehr at gmx.net
Wed Dec 12 13:53:41 EST 2007


On Dec 12, 3:36 pm, sturlamolden <sturlamol... at yahoo.no> wrote:
> On 12 Des, 12:56, George Sakkis <george.sak... at gmail.com> wrote:
>
> > Ah, the 'make' statement.. I liked (and still do) that PEP, I think it
> > would have an impact comparable to the decorator syntax sugar, if not
> > more.
>
> I think it is one step closer to Lisp. I believe that it would be
> worth considering adding defmacro statement. Any syntax, including if,
> else, for, while, class, lambda, try, except, etc.  would be
> implemented with defmacros. We would only need a minimalistic syntax,
> that would bootstrap a full Python syntax on startup. And as for
> speed, we all know how Lisp compares to Python.

It would be great if Python could be speeded up to SBCL Lisp by just
transforming one parse tree into another one. But since Python is
compiled to bytecodes I dare to say that surface syntax is not the key
factor ;)

Kay



More information about the Python-list mailing list