Re: [Cython] Improving compile times for Cython extensions with C sources

2013-09-17 Thread Wes McKinney
On Mon, Sep 16, 2013 at 1:12 PM, Robert Bradshaw wrote: > > On Mon, Sep 16, 2013 at 11:48 AM, Wes McKinney wrote: > > I haven't been able to find an easy answer to this question, but here is my > > problem: > > > > Cython file: extension.pyx > > Decl

[Cython] Improving compile times for Cython extensions with C sources

2013-09-16 Thread Wes McKinney
I haven't been able to find an easy answer to this question, but here is my problem: Cython file: extension.pyx Declarations / C imports: extension.pxd C dependencies: a.c b.c c.c These are all compiled together to produce extension.so. The problem is, when I modify extension.pyx, all 4 C files

[Cython] Hitting gcc 4.6 bug with Cython 0.17 and pandas

2012-09-10 Thread Wes McKinney
This issue came up earlier today. Everything works fine for me with gcc 4.6.1 and Cython 0.17, but maybe there is a bug being hit in gcc 4.6. Any debugging help would be appreciated (since this affects EC2 AMIs...) http://github.com/pydata/pandas/issues/1880 thanks, Wes __

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread Wes McKinney
On Mon, Apr 30, 2012 at 5:36 PM, William Stein wrote: > On Mon, Apr 30, 2012 at 2:32 PM, Dag Sverre Seljebotn > wrote: >> >> >> Wes McKinney wrote: >> >>>On Mon, Apr 30, 2012 at 4:55 PM, Nathaniel Smith wrote: >>>> On Mon, Apr 30, 2012 at 9:49

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread Wes McKinney
On Mon, Apr 30, 2012 at 4:55 PM, Nathaniel Smith wrote: > On Mon, Apr 30, 2012 at 9:49 PM, Dag Sverre Seljebotn > wrote: >> JIT is really the way to go. It is one thing that a JIT could optimize the >> case where you pass a callback to a function and inline it run-time. But >> even if it doesn't

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread Wes McKinney
On Mon, Apr 30, 2012 at 4:49 PM, Dag Sverre Seljebotn wrote: > On 04/30/2012 06:30 PM, Wes McKinney wrote: >> >> On Mon, Apr 30, 2012 at 11:19 AM, mark florisson >>  wrote: >>> >>> On 30 April 2012 14:49, Wes McKinney  wrote: >>>> >>>&g

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread Wes McKinney
On Mon, Apr 30, 2012 at 11:19 AM, mark florisson wrote: > On 30 April 2012 14:49, Wes McKinney wrote: >> On Sun, Apr 29, 2012 at 5:56 AM, mark florisson >> wrote: >>> On 29 April 2012 08:42, Nathaniel Smith wrote: >>>> On Sat, Apr 28, 2012 at 10:25 PM, mar

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread Wes McKinney
On Sun, Apr 29, 2012 at 5:56 AM, mark florisson wrote: > On 29 April 2012 08:42, Nathaniel Smith wrote: >> On Sat, Apr 28, 2012 at 10:25 PM, mark florisson >> wrote: >>> On 28 April 2012 22:04, Nathaniel Smith wrote: Was chatting with Wes today about the usual problem many of us have

Re: [Cython] Wacky idea: proper macros

2012-04-28 Thread Wes McKinney
On Sat, Apr 28, 2012 at 5:25 PM, mark florisson wrote: > On 28 April 2012 22:04, Nathaniel Smith wrote: >> Was chatting with Wes today about the usual problem many of us have >> encountered with needing to use some sort of templating system to >> generate code handling multiple types, operations,

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread Wes McKinney
On Sat, Apr 14, 2012 at 11:32 AM, mark florisson wrote: > On 14 April 2012 14:57, Dag Sverre Seljebotn > wrote: >> On 04/14/2012 12:46 PM, mark florisson wrote: >>> >>> On 12 April 2012 22:00, Wes McKinney  wrote: >>>> >>>> On Thu,

Re: [Cython] Cython 0.16 RC 1

2012-04-12 Thread Wes McKinney
On Thu, Apr 12, 2012 at 10:38 AM, mark florisson wrote: > Yet another release candidate, this will hopefully be the last before > the 0.16 release. You can grab it from here: > http://wiki.cython.org/ReleaseNotes-0.16 > > There were several fixes for the numpy attribute rewrite, memoryviews > and

[Cython] Bug report with 0.16 RC

2012-04-03 Thread Wes McKinney
I don't have a Trac account yet, but wanted to report this bug with the 0.16 RC. This function worked fine under 0.15.1: @cython.wraparound(False) @cython.boundscheck(False) def is_lexsorted(list list_of_arrays): cdef: int i Py_ssize_t n, nlevels int32_t k, cur, pre

Re: [Cython] Slow traceback reconstruction in IPython between 0.15.1 and master

2012-01-29 Thread Wes McKinney
On Fri, Jan 27, 2012 at 2:40 AM, Stefan Behnel wrote: > Wes McKinney, 26.01.2012 18:56: >> Just wanted to bring this issue to your guys' attention in case you >> knew what was responsible for this: >> >> https://github.com/ipython/ipython/issues/1317#issuecomment

Re: [Cython] Slow traceback reconstruction in IPython between 0.15.1 and master

2012-01-26 Thread Wes McKinney
On Thu, Jan 26, 2012 at 2:21 PM, mark florisson wrote: > On 26 January 2012 19:10, Fernando Perez wrote: >> On Thu, Jan 26, 2012 at 10:37 AM, mark florisson >> wrote: >>> On a side note, ipython is not something I usually trust to test >>> things out, as it gets things wrong sometimes which can

[Cython] Slow traceback reconstruction in IPython between 0.15.1 and master

2012-01-26 Thread Wes McKinney
Just wanted to bring this issue to your guys' attention in case you knew what was responsible for this: https://github.com/ipython/ipython/issues/1317#issuecomment-3652550 I traced down the problem (with git bisect) to a seemingly innocuous commit referenced in that GitHub thread. The issue seeme

Re: [Cython] Distributing Windows binary using OpenMP / cython.parallel

2011-12-13 Thread Wes McKinney
On Tue, Dec 13, 2011 at 6:47 AM, Sturla Molden wrote: > Den 12.12.2011 21:09, skrev Wes McKinney: > >> I'm interested in using the Cython OpenMP extensions in pandas for >> various calculations, but I'm concerned about cross-platform issues, >> especially

[Cython] Distributing Windows binary using OpenMP / cython.parallel

2011-12-12 Thread Wes McKinney
I'm interested in using the Cython OpenMP extensions in pandas for various calculations, but I'm concerned about cross-platform issues, especially distributing built binaries of the extensions to Windows users. Is there a clean way to bundle the relevant OpenMP DLLs in distutils? thanks, Wes _

Re: [Cython] Buffer interface to boolean arrays with cast=True on Python 2.5 failing

2011-10-24 Thread Wes McKinney
On Mon, Oct 24, 2011 at 4:09 PM, Dag Sverre Seljebotn wrote: > On 10/24/2011 09:40 PM, Wes McKinney wrote: >> >> On Mon, Oct 24, 2011 at 3:37 PM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 10/24/2011 09:26 PM, Wes McKinney wrote: >>>> >&g

Re: [Cython] Buffer interface to boolean arrays with cast=True on Python 2.5 failing

2011-10-24 Thread Wes McKinney
On Mon, Oct 24, 2011 at 2:40 PM, Wes McKinney wrote: > On Mon, Oct 24, 2011 at 3:37 PM, Dag Sverre Seljebotn > wrote: >> On 10/24/2011 09:26 PM, Wes McKinney wrote: >>> >>> I've been using >>> >>> ndarray[uint8_t, cast=True] bool_arr >>

Re: [Cython] Buffer interface to boolean arrays with cast=True on Python 2.5 failing

2011-10-24 Thread Wes McKinney
On Mon, Oct 24, 2011 at 3:37 PM, Dag Sverre Seljebotn wrote: > On 10/24/2011 09:26 PM, Wes McKinney wrote: >> >> I've been using >> >> ndarray[uint8_t, cast=True] bool_arr >> >> to work with dtype=bool arrays in Cython lately. When testing using >>

[Cython] Buffer interface to boolean arrays with cast=True on Python 2.5 failing

2011-10-24 Thread Wes McKinney
I've been using ndarray[uint8_t, cast=True] bool_arr to work with dtype=bool arrays in Cython lately. When testing using Python 2.5 / NumPy 1.6.1 on Windows, I'm getting "unknown dtype code in numpy.pxd (0)". Everything works fine with Python 2.6/2.7 and NumPy 1.6.1. This is with Cython 0.15.1.

Re: [Cython] Cython problems on OS X Lion

2011-09-10 Thread Wes McKinney
you? > > On Fri, Sep 9, 2011 at 3:09 PM, Wes McKinney wrote: >> Multiple users have reporting being unable to get the Cython >> extensions in pandas to work: >> >> http://github.com/wesm/pandas >

[Cython] Cython problems on OS X Lion

2011-09-09 Thread Wes McKinney
Multiple users have reporting being unable to get the Cython extensions in pandas to work: http://github.com/wesm/pandas Here is the traceback: In [1]: import pandas --- ImportError Traceback (most recent call last) /Users/f