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.
capi-sig mailing list email@example.com http://mail.python.org/mailman/listinfo/capi-sig
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. ;-)