Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
> That would be very neat. I can see how you can get around dynamical > typing in a very nice way using this. As the pypy projects says, giving a > dynamically-typed language to people does not necessarily means they type > dynamically-typed code. > > I must say I like the idea a lot, you are real

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
> (Getting around this is impossible, though we might add a different > syntax for type declaration (using decorators) so that the same code can > also be run using the Python interpreter.) > I meant to say: Getting around this is impossible for functions that are exported from a module and

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Gael Varoquaux
On Tue, Apr 01, 2008 at 10:48:30PM +0200, Dag Sverre Seljebotn wrote: > though we might add a different syntax for type declaration (using > decorators) so that the same code can also be run using the Python > interpreter.) That would be very neat. I can see how you can get around dynamical typing

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
> I can foresee certain situations under which we can predict the type > of the result of operations like this one. Would it be possible to > then handle 'y' as an ndarray as well, instead of reverting to Python > object calls? > Indeed - plans are underway to add automatic type inference to C

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Stéfan van der Walt
Hi Dag On Tue, Apr 1, 2008 at 11:06 AM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > One more comment about the constructor described on the page above. > It would be good if we could have the same syntax as the current > numpy.ndarray, and then simply call through to the underlying C > const

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: http://wiki.cython.org/enhancements/numpy One more comment about the constructor described on the page above. I read this a different way now, if what you meant is the parameters to ndarray in cdef c_numpy.ndarray(c_n

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
http://wiki.cython.org/enhancements/numpy One more comment about the constructor described on the page above. It would be good if we could have the same syntax as the current numpy.ndarray, and then simply call through to the underlying C constructor. We'd also need zeros

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-03-31 Thread Stéfan van der Walt
Hi Dag On Tue, Apr 1, 2008 at 12:52 AM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > > I am going to apply for a Google Summer of Code project about "Developing > > Cython towards better NumPy integration" (Cython: http://cython.org). > > Anyone interested in how this is done can have a loo

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-03-31 Thread Stéfan van der Walt
Hi Dag On Tue, Apr 1, 2008 at 12:52 AM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > > I am going to apply for a Google Summer of Code project about "Developing > > Cython towards better NumPy integration" (Cython: http://cython.org). > > Anyone interested in how this is done can have a loo

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-03-31 Thread Dag Sverre Seljebotn
> I am going to apply for a Google Summer of Code project about "Developing > Cython towards better NumPy integration" (Cython: http://cython.org). > Anyone interested in how this is done can have a look at the links below, > any feedback is welcome. > > The application I am going to submit (to Pyt

[Numpy-discussion] Project for Cython integration with NumPy

2008-03-25 Thread Dag Sverre Seljebotn
I am going to apply for a Google Summer of Code project about "Developing Cython towards better NumPy integration" (Cython: http://cython.org). Anyone interested in how this is done can have a look at the links below, any feedback is welcome. Unfortunately I don't have much time to spare before th