Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread Dag Sverre Seljebotn
On 04/05/2011 11:01 AM, Stefan Behnel wrote: mark florisson, 05.04.2011 10:44: On 5 April 2011 10:34, Stefan Behnel wrote: mark florisson, 05.04.2011 10:26: On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: Justification for Cython-specific syntax: This is something that is really only use

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 11:01, Stefan Behnel wrote: > mark florisson, 05.04.2011 10:44: >> >> On 5 April 2011 10:34, Stefan Behnel wrote: >>> >>> mark florisson, 05.04.2011 10:26: On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: > > Justification for Cython-specific syntax: This is som

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread Stefan Behnel
mark florisson, 05.04.2011 10:44: On 5 April 2011 10:34, Stefan Behnel wrote: mark florisson, 05.04.2011 10:26: On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: Justification for Cython-specific syntax: This is something that is really only useful if you can release the GIL *outside* of th

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 10:44, mark florisson wrote: > On 5 April 2011 10:34, Stefan Behnel wrote: >> mark florisson, 05.04.2011 10:26: >>> >>> On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: Justification for Cython-specific syntax: This is something that is really only useful if

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 10:34, Stefan Behnel wrote: > mark florisson, 05.04.2011 10:26: >> >> On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: >>> >>> Justification for Cython-specific syntax: This is something that is >>> really >>> only useful if you can release the GIL *outside* of the loop. So I fee

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread Stefan Behnel
mark florisson, 05.04.2011 10:26: On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: Justification for Cython-specific syntax: This is something that is really only useful if you can release the GIL *outside* of the loop. So I feel this is an area where a custom Cython solution is natural, sort

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: > There's a (much shorter) proposal for a more explicit parallelism construct > at > > http://wiki.cython.org/enhancements/parallelblock > > This is a little more verbose for the simplest case, but makes the > medium-cases that needs work buffers

[Cython] Another CEP: Parallel block

2011-04-05 Thread Dag Sverre Seljebotn
There's a (much shorter) proposal for a more explicit parallelism construct at http://wiki.cython.org/enhancements/parallelblock This is a little more verbose for the simplest case, but makes the medium-cases that needs work buffers much simpler, and is also more explicit and difficult to get