[Cython] Done with prototype for "parse tree transforms"
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Sat Mar 8 17:18:19 CET 2008
Martin C. Martin wrote:
> Great!
>
> How does it compare to Lisp's macros?
I'll try to answer, but I'm guessing about your assumptions so do ask
again if I miss.
This is work that is only relevant to the internal Cython compiler, so
it doesn't compare (or compares very poorly) with LISP. Ie when
transforming the parse tree one is transforming the input Cython source
to output C source, but the transform itself doesn't live within that
parse tree at all.
If what you are asking instead is: How easy is it to write transforms
compared to writing LISP macros, then the answer is still that it
compares poorly, but then the goals are rather different too (the number
of transforms will be max ~30 I think, and the number of LISP programs
are... :-) )
Dag Sverre
More information about the Cython-dev
mailing list