I was looking around inside Cython. I am not very clear what Cython does
internally. Some questions :

a) Which parser is used? I use Python 2.5's compiler module and then dump
ASTs into a file which is then read back in Java.

b)Cython does not construct ASTs Parse trees are used as the internal
representation and Cython appears to be generating code directly from parse
trees currently. Is this correct? I also see that there are proposals to add
ASTs , construct control flow graph as well as for an explicit symbol table.

c) When is type checking done?

d) Does Cython have well defined compiler passes?

thanks,

rahul
On 5/29/08, William Stein <[EMAIL PROTECTED]> wrote:
>
> On Thu, May 29, 2008 at 5:58 AM, Stefan Behnel <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > rahul garg wrote:
> >> On Thu, May 29, 2008 at 6:12 AM, Martin C. Martin <
> [EMAIL PROTECTED]>
> >> wrote:
> >>> It sounds like you're duplicating a lot of the work that's already gone
> >>> into Cython.  Would it be quicker if you took the Cython source code
> and
> >>> modified it to accept types as annotations, and add your optimizations?
> >>
> >> I will look into it.
> >
> > Looking into this might also be a good idea:
> >
> > http://www.joelonsoftware.com/articles/fog0000000069.html
>
>
> Also, looking into this might also be a good idea too:
>
> http://blog.ianbicking.org/unzen-of-unpython.html
>
>
> William
>
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to