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

As I think this is possible in a one or two week timeframe, I ask of you
all to tell me what obvious things I am missing completely and where I did
a wrong turn in my reasoning :-)

I copy and paste:

Why?

- It leaves the way open for a hassle-free operator overloading syntax -
use the same operator overloading conventions that Python use even for
wrapped C library types without worrying about performance.

- A convenient tool for doing compile-time calculations and having
parametrized code written at compile-time. The creative use C++'s template
syntax has gotten over the years should demonstrate that the inlining the
GCC compiler does is not sufficient for advanced use cases (see
http://ubiety.uwaterloo.ca/~tveldhui/papers/Expression-Templates/exprtmpl.html,
Blitz++ etc., basically using the C++ template system to inline vector
multiplications etc. that's written dynamically according to vector
sizes).

Dag Sverre

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

Reply via email to