Hello Dag,

 > [...] We also have
> a mode using Python decorators to provide types ("pure Python" mode of
> Cython).

Ah, that's very interesting. At the time I used Cython (I still have the 
0.10.3 release somewhere), this was not present. So clearly, I will 
study the Cython docs and try to use that syntax instead.

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.

Also at the time the Cython project was very hesitant to make bigger 
changes, because it was following PyRex where possible. I wanted to e.g. 
change nodes and reference counting, so that generated code would be 
more local, and had written (to be generated) C code to back it up.

Potentially PyRex similarity is no longer as important as it once was to 
the project as well.

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.

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?

It will be a good tool for proof of concepts and overall it will help 
the research for the best path by trying out others. And who knows, 
potentially it will become useful by itself too.

> 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.

As to the learning experience, you are correct, it's fun and useful, 
very much. Just learning how wild slicing in CPython can become, was 
really amazing.

Best regards,
Kay Hayen
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to