Kay Hayen, 22.07.2010 10:09:
> Being Python is so important for pylint, pychecker and most importantly
> flymake mode to work well. When I first encountered and used PyRex many
> years ago, that was immediately the problem with it.

Absolutely.


> My main motivating factor for rolling my own stuff was to have a toy
> where one could more easily demonstrate the usefulness or not of things,
> in the first place. Then I can try and integrate it into Cython, which
> will have the actual community behind it.

Your elaborations keep reminding me of this article:

http://www.joelonsoftware.com/articles/fog0000000069.html


> But as I said, it will be merely "correct" code generated. It won't be
> actually better code yet. But it will e.g. demonstrate a way to easily
> handle generator expressions and functions, something I believe Cython
> still doesn't do?

Well, no, not really. We have /inlined/ generator expressions for some 
special use cases, and I have written a CEP about implementing generators 
for Cython:

http://wiki.cython.org/enhancements/generators

But no-one has found the time to do it yet. I think it's easier if you can 
start from scratch (as ShedSkin and you did) and don't have to integrate 
with CPython's infrastructure like Cython. Generators aren't complex at 
all, but making them look and work like CPython generators isn't trivial.


>> As Stefan noted, ShedSkin compiles Python to C without CPython. Of
>> course, doing something from scratch can be fun and a learning experience.
>
> I admire this project and also what Google does with aiming at LLVM
> instead, but I'm not out to replace CPython at all. I just want to use
> readable Python and have a compiler to make up for it.

Hmm, then I still don't get what the purpose of your project is. I mean, 
it's ok to do it because "why not", but you seem to have specifically aimed 
for a CPython replacement (as opposed to extending CPython, as Cython 
does). So you're more in line with ShedSkin and PyPy than with Cython.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to