Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
Ah, Cython objects. Didn't think of that. More below. On 04/14/2012 11:02 PM, Stefan Behnel wrote: Hi, thanks for writing this up. Comments inline as I read through it. Dag Sverre Seljebotn, 14.04.2012 21:08: each described by a function pointer and a signature specification string, such as "

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
Robert Bradshaw, 15.04.2012 08:32: > On Sat, Apr 14, 2012 at 11:16 PM, Stefan Behnel wrote: >> Robert Bradshaw, 15.04.2012 07:59: >>> On Sat, Apr 14, 2012 at 2:00 PM, mark florisson wrote: There may be a lot of promotion/demotion (you likely only want the former) combinations, especially

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
Robert Bradshaw, 15.04.2012 08:27: > On Sat, Apr 14, 2012 at 2:02 PM, Stefan Behnel wrote: >> While overloaded signatures are great for the callee, they make things much >> more complicated for the caller. It's no longer just one signature that >> either matches or not. Especially when we allow mor

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
On 04/15/2012 08:16 AM, Stefan Behnel wrote: Robert Bradshaw, 15.04.2012 07:59: On Sat, Apr 14, 2012 at 2:00 PM, mark florisson wrote: There may be a lot of promotion/demotion (you likely only want the former) combinations, especially for multiple arguments, so perhaps it makes sense to limit o

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 11:16 PM, Stefan Behnel wrote: > Robert Bradshaw, 15.04.2012 07:59: >> On Sat, Apr 14, 2012 at 2:00 PM, mark florisson wrote: >>> There may be a lot of promotion/demotion (you likely only want the >>> former) combinations, especially for multiple arguments, so perhaps it >>

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
Greg Ewing, 15.04.2012 03:07: > Dag Sverre Seljebotn wrote: > >> if (obj has signature "id)i") { > > This is an aside, but is it really necessary to define the > signature syntax in a way that involves unmatched parens? > Some editors (such as the one I like to use) get confused > by this, even w

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 2:02 PM, Stefan Behnel wrote: > Hi, > > thanks for writing this up. Comments inline as I read through it. > > Dag Sverre Seljebotn, 14.04.2012 21:08: >> === GIL-less accesss === >> >> It is OK to access the native-call table without holding the GIL. This >> should of course

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
mark florisson, 14.04.2012 23:15: > On 14 April 2012 22:02, Stefan Behnel wrote: >> Dag Sverre Seljebotn, 14.04.2012 21:08: >>> * TBD: Support for Cython-specific constructs like memoryview slices >>>(so that arrays with strides and shape can be passed faster than >>>passing an {{{"O"}}}).

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
Robert Bradshaw, 15.04.2012 07:59: > On Sat, Apr 14, 2012 at 2:00 PM, mark florisson wrote: >> There may be a lot of promotion/demotion (you likely only want the >> former) combinations, especially for multiple arguments, so perhaps it >> makes sense to limit ourselves a bit. For instance for numer

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 5:28 PM, Greg Ewing wrote: > Robert Bradshaw wrote: > >> Has anyone done any experiments/timings to see if having constants vs. >> globals even matters? > > > My gut feeling is that one extra memory read is going to be > insignificant compared to the time taken by the call

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 2:00 PM, mark florisson wrote: > On 14 April 2012 20:08, Dag Sverre Seljebotn > wrote: >> On 04/13/2012 12:11 AM, Dag Sverre Seljebotn wrote: >>> >>> Travis Oliphant recently raised the issue on the NumPy list of what >>> mechanisms to use to box native functions produced

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Greg Ewing
Dag Sverre Seljebotn wrote: if (obj has signature "id)i") { This is an aside, but is it really necessary to define the signature syntax in a way that involves unmatched parens? Some editors (such as the one I like to use) get confused by this, even when they're inside quotes. The answer "get

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Greg Ewing
Robert Bradshaw wrote: Has anyone done any experiments/timings to see if having constants vs. globals even matters? My gut feeling is that one extra memory read is going to be insignificant compared to the time taken by the call itself and whatever it does. But of course gut feelings are alway

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
Stefan Behnel wrote: >mark florisson, 14.04.2012 23:00: >> On 14 April 2012 20:08, Dag Sverre Seljebotn wrote: >>> * TBD: Information about GIL requirements (nogil, with gil?), how >>> exceptions are reported >> >> Maybe that could be a separate list, to be consulted mostly for >> explicit

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread mark florisson
On 14 April 2012 22:21, mark florisson wrote: > On 14 April 2012 22:13, Wes McKinney wrote: >> 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

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread mark florisson
On 14 April 2012 22:13, Wes McKinney wrote: > 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, Apr 12,

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread mark florisson
On 14 April 2012 22:02, Stefan Behnel wrote: > Hi, > > thanks for writing this up. Comments inline as I read through it. > > Dag Sverre Seljebotn, 14.04.2012 21:08: >> === GIL-less accesss === >> >> It is OK to access the native-call table without holding the GIL. This >> should of course only be

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, Apr 12, 2012 at 10:38 AM, mark florisson  wrote: > >>>

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
mark florisson, 14.04.2012 23:00: > On 14 April 2012 20:08, Dag Sverre Seljebotn wrote: >> * TBD: Information about GIL requirements (nogil, with gil?), how >> exceptions are reported > > Maybe that could be a separate list, to be consulted mostly for > explicit casts (I think PyErr_Occurred()

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
Hi, thanks for writing this up. Comments inline as I read through it. Dag Sverre Seljebotn, 14.04.2012 21:08: > === GIL-less accesss === > > It is OK to access the native-call table without holding the GIL. This > should of course only be used to call functions that state in their > signature th

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread mark florisson
On 14 April 2012 20:08, Dag Sverre Seljebotn wrote: > On 04/13/2012 12:11 AM, Dag Sverre Seljebotn wrote: >> >> Travis Oliphant recently raised the issue on the NumPy list of what >> mechanisms to use to box native functions produced by his Numba so that >> SciPy functions can call it, e.g. (I'm m

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
On 04/13/2012 12:11 AM, Dag Sverre Seljebotn wrote: Travis Oliphant recently raised the issue on the NumPy list of what mechanisms to use to box native functions produced by his Numba so that SciPy functions can call it, e.g. (I'm making the numba part up): This thread is turning into one of t

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
On 04/14/2012 08:10 PM, Robert Bradshaw wrote: On Sat, Apr 14, 2012 at 1:56 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 14.04.2012 10:41: Greg Ewing wrote: Dag Sverre Seljebotn wrote: 1) It doesn't work well with multiple interpreter states. Ok, nothing works with that at the moment, but

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 1:56 AM, Stefan Behnel wrote: > Dag Sverre Seljebotn, 14.04.2012 10:41: >> Greg Ewing wrote: >>> Dag Sverre Seljebotn wrote: >>> 1) It doesn't work well with multiple interpreter states. Ok, nothing works with that at the moment, but it is on the roadmap for Pytho

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread mark florisson
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, Apr 12, 2012 at 10:38 AM, mark florisson >>>  wrote: Yet another release candidate, this will hopefully be the last befo

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread Stefan Behnel
mark florisson, 14.04.2012 13:02: > I just pushed a fix here: > https://github.com/markflorisson88/cython/tree/release Note that I had already pushed a couple of other fixes into the release branch of the main repo. Stefan ___ cython-devel mailing list

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread Dag Sverre Seljebotn
On 04/14/2012 12:46 PM, mark florisson wrote: On 12 April 2012 22:00, Wes McKinney wrote: 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/ReleaseN

[Cython] Fwd: sage.math cluster OFF until about 9:30am.

2012-04-14 Thread Stefan Behnel
Original-Message From: William Stein (wstein a gmail.com) Hi, As previously announced a few times, the sage.math cluster is OFF, due to a electrical work that is being done in the building that houses the server room. I expect the machines to be off until about 9:30am. Obviou

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread mark florisson
On 14 April 2012 12:00, Stefan Behnel wrote: > Arfrever Frehtes Taifersar Arahesis, 14.04.2012 12:16: >> 4 tests still fail with Python 3.2 (currently 3.2.3). >> All tests pass with Python 2.6.8, 2.7.3 and 3.1.5. > > Thanks for the report. > Indeed, I just pushed a fix here: https://github.com/ma

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread Stefan Behnel
Arfrever Frehtes Taifersar Arahesis, 14.04.2012 12:16: > 4 tests still fail with Python 3.2 (currently 3.2.3). > All tests pass with Python 2.6.8, 2.7.3 and 3.1.5. Thanks for the report. > Failures with Python 3.2: > > == > FAI

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread mark florisson
On 12 April 2012 22:00, Wes McKinney wrote: > 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 fix

Re: [Cython] Cython 0.16 RC 1

2012-04-14 Thread Arfrever Frehtes Taifersar Arahesis
2012-04-12 16:38:37 mark florisson napisał(a): > 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 fused typ

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Stefan Behnel
Dag Sverre Seljebotn, 14.04.2012 10:41: > Greg Ewing wrote: >> Dag Sverre Seljebotn wrote: >> >>> 1) It doesn't work well with multiple interpreter states. Ok, nothing >>> works with that at the moment, but it is on the roadmap for Python >> >> Is it really? I got the impression that it's not consi

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
Greg Ewing wrote: >Dag Sverre Seljebotn wrote: > >> 1) It doesn't work well with multiple interpreter states. Ok, nothing >works >> with that at the moment, but it is on the roadmap for Python > >Is it really? I got the impression that it's not considered feasible, >since it would require massi

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-14 Thread Dag Sverre Seljebotn
Nathaniel Smith wrote: >On Fri, Apr 13, 2012 at 11:22 PM, Dag Sverre Seljebotn > wrote: >> >> >> Robert Bradshaw wrote: >> >>>On Fri, Apr 13, 2012 at 2:24 PM, Nathaniel Smith >wrote: On Fri, Apr 13, 2012 at 9:27 PM, Dag Sverre Seljebotn wrote: > Ah, I didn't think about 6-bit o