Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/05/2011 07:05 AM, Robert Bradshaw wrote: On Mon, Apr 4, 2011 at 6:04 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 13:53: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange """ Variable

Re: [Cython] Interest in contributing to the project

2011-04-04 Thread Arthur de Souza Ribeiro
Thanks for clarification Sturla, that's just the way I was thinking about some things... I realized that you used some C code that is in _math.h header file, I mean, I was thinking that in the project I should rewrite code that belongs to this file too right? I started coding but I got stucked in

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Robert Bradshaw
On Mon, Apr 4, 2011 at 6:04 AM, Stefan Behnel wrote: > Dag Sverre Seljebotn, 04.04.2011 13:53: >> >> On 04/04/2011 01:23 PM, Stefan Behnel wrote: >>> >>> Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange >>> >>> """ >>> Variable handling >>> >>>

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Greg Ewing
Nathaniel Smith wrote: Surely it should be 'pfor i in range(...)'. Or 'pfhor', just to let you know it's really something out of this world. http://marathongame.wikia.com/wiki/Pfhor_%28Race%29 -- Greg ___ cython-devel mailing list cython-devel@pytho

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 09:26 PM, mark florisson wrote: On 4 April 2011 19:18, Dag Sverre Seljebotn wrote: On 04/04/2011 05:22 PM, mark florisson wrote: On 4 April 2011 13:53, Dag Sverre Seljebotn wrote: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at

Re: [Cython] problem building master with python3

2011-04-04 Thread Vitja Makarov
2011/4/4 Darren Dale : > On Mon, Apr 4, 2011 at 3:32 PM, Darren Dale wrote: >> I'm attempting to install cython from the git repository to benefit >> from this fix: http://trac.cython.org/cython_trac/ticket/597 . When I >> run "python3 setup.py install --user", I get an error: >> >> cythoning /Use

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread mark florisson
On 4 April 2011 19:18, Dag Sverre Seljebotn wrote: > On 04/04/2011 05:22 PM, mark florisson wrote: >> >> On 4 April 2011 13:53, Dag Sverre Seljebotn >>  wrote: >>> >>> On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: > > CEP up at http://wiki.c

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 05:22 PM, mark florisson wrote: On 4 April 2011 13:53, Dag Sverre Seljebotn wrote: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange """ Variable handling Rather than explicit declaration o

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 03:04 PM, Stefan Behnel wrote: That's what I thought, yes. It looks unexpected, sure. That's the clear advantage of using inner functions, which do not add anything new at all. But if we want to add something that looks more like a loop, we should at least make it behave like so

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread mark florisson
On 4 April 2011 13:53, Dag Sverre Seljebotn wrote: > On 04/04/2011 01:23 PM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 04.04.2011 12:17: >>> >>> CEP up at http://wiki.cython.org/enhancements/prange >> >> """ >> Variable handling >> >> Rather than explicit declaration of shared/private varia

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 03:27 PM, Nathaniel Smith wrote: On Mon, Apr 4, 2011 at 3:17 AM, Dag Sverre Seljebotn wrote: * A simple and friendly solution that covers, perhaps, 80% of the cases, based on simply replacing range with prange. This is a "merely" aesthetic objection, while remaining agnostic o

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Sturla Molden
Den 04.04.2011 15:04, skrev Stefan Behnel: What I would like to avoid is having to tell users "and now for something completely different". It looks like a loop, but then there's a whole page of new semantics for it. And this also cannot be used in plain Python code due to the differing scopi

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 03:04 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 13:53: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange """ Variable handling Rather than explicit declaration of shared/pri

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Nathaniel Smith
On Mon, Apr 4, 2011 at 3:17 AM, Dag Sverre Seljebotn wrote: >  * A simple and friendly solution that covers, perhaps, 80% of the cases, > based on simply replacing range with prange. This is a "merely" aesthetic objection, while remaining agnostic on the larger discussion, but -- 'for i in prange

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Stefan Behnel
Dag Sverre Seljebotn, 04.04.2011 13:53: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange """ Variable handling Rather than explicit declaration of shared/private variables we rely on conventions: * Thre

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange """ Variable handling Rather than explicit declaration of shared/private variables we rely on conventions: * Thread-shared: Variables that are only

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Stefan Behnel
Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange """ Variable handling Rather than explicit declaration of shared/private variables we rely on conventions: * Thread-shared: Variables that are only read and not written in the loop body are sha

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
On 04/04/2011 11:43 AM, Dag Sverre Seljebotn wrote: CEP up at http://wiki.cython.org/enhancements/prange """ This spec is the result of a number of discussions at Cython workshop 1. Quite a few different ways of expressing parallelism was looked at, and finally we decided to split the problem

[Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
CEP up at http://wiki.cython.org/enhancements/prange """ This spec is the result of a number of discussions at Cython workshop 1. Quite a few different ways of expressing parallelism was looked at, and finally we decided to split the problem in two: * A simple and friendly solution that cove

[Cython] CEP: prange for parallel loops

2011-04-04 Thread Dag Sverre Seljebotn
CEP up at http://wiki.cython.org/enhancements/prange """ This spec is the result of a number of discussions at Cython workshop 1. Quite a few different ways of expressing parallelism was looked at, and finally we decided to split the problem in two: * A simple and friendly solution that cove