[Numpy-discussion] creating/working NumPy-ndarrays in C++

Dag Sverre Seljebotn d.s.seljebotn at astro.uio.no
Wed Apr 4 14:34:13 EDT 2012


On 04/03/2012 04:45 PM, srean wrote:
> This makes me ask something that I always wanted to know: why is weave
> not the preferred or encouraged way ?
>
> Is it because no developer has interest in maintaining it or is it too
> onerous to maintain ? I do not know enough of its internals  to guess
> an answer. I think it would be fair to say that weave has languished a
> bit over the years.

I think the story is that Cython overlaps enough with Weave that Weave 
doesn't get any new users or developers.

Which isn't to say that Cython is always superior to the Weave approach 
(for one thing, embedding Cython code in Python source code files could 
have been a better experience), just that it overlaps enough, and since 
it has

I honestly don't believe Weave has a chance of getting resurrected from 
the dead -- my bets for the future are on Cython, Travis' numba, and 
perhaps some combination or amalgamation of the two (note that I'm a 
Cython dev and so rather biased).

> What I like about weave is that even when I drop into the C++ mode I
> can pretty much use the same numpy'ish syntax and with no overhead of
> calling back into the numpy c functions. From the sourceforge forum it
> seems the new Blitz++ is quite competitive with intel fortran in SIMD
> vectorization as well, which does sound attractive.

Cython seems likely to be pushed further in this area over the next half 
year so that it can grow up to become more of a Fortran competitor.

Dag



More information about the NumPy-Discussion mailing list