On 07/21/2010 05:57 PM, Kay Hayen wrote:
> Hello Cython-World,
>
> some time ago, I found Cython and wanted to use it. I even came up with
> a couple of patches, which I believe didn't get merged, mostly because
> it soon became apparent that we have not the same goals completely.
>
> My interest and goal was to use Cython for my pure Python code. I
> believe that Python is the language and that using language extensions
> that turn it to another language is not what I want.
>
> Obviously, this is not exactly what Cython is about. So I thought of
> having my own "toy compiler" which translates pure Python into C or
> another language which is then compiled.
>
I believe Cython is about this as well -- the extensions to the language
is only because we have to (because Cython isn't smart enough in places
where we need speed), not because we want to (except for communicating
with native C libraries, that is).
Compiling as much pure Python code as possible is definitely a goal for
Cython. Of course, within the context of egtensions loadable into the
CPython interpreter. We are happy to accept patches that make pure
Python code without any Cython-specific syntax run faster. We also have
a mode using Python decorators to provide types ("pure Python" mode of
Cython).
As Stefan noted, ShedSkin compiles Python to C without CPython. Of
course, doing something from scratch can be fun and a learning experience.
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev