(was Re: Problem with reference)
![](https://secure.gravatar.com/avatar/a7f2a6cda71e76087df248f647931241.jpg?s=120&d=mm&r=g)
- Did anyone answer the original poster's question?
- If this is going to persist as an OT thread, change the subject line?
Ken
Stefan Behnel wrote:
Gustavo Carneiro wrote:
2009/3/3 Stefan Behnel wrote:
Cython is (literally) not a wrapper generator as it will not generate a wrapper for you. You have to write it yourself. Cython is a programming language to write extension modules for CPython, as generic as that.
OK, but surely we can say that Cython is a code generator, or compiler. [...] It is more or less at the same level as Boost.Python. You also have to write the wrapper code using Boost.Python yourself...
Except that Boost.Python does not optimise the code for you, simply because it is a library, not a compiler. It doesn't know what called it with what intention. The Cython compiler can extract a lot of information from your code and it *will* use it to make your code run fast. For example, calling a Cython implemented function is very fast compared to normal Python, simply because we can adapt the generated code to the specific signature of a function, instead of relying on generic argument unpacking code.
Stefan
capi-sig mailing list capi-sig@python.org http://mail.python.org/mailman/listinfo/capi-sig
![](https://secure.gravatar.com/avatar/b8418ef4a132883cfd687658ba01bbc7.jpg?s=120&d=mm&r=g)
Ken Hughes wrote:
- Did anyone answer the original poster's question?
Yes, two people (and one right in the first post, actually).
- If this is going to persist as an OT thread, change the subject line?
I think "problem with reference" isn't that far from a good subject. ;-)
Stefan
participants (2)
-
Ken Hughes
-
Stefan Behnel