Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-03 Thread Stefan Behnel
Vitja Makarov, 03.08.2011 21:07: Stefan, do you know why skip_dispatch argument is used for module-level cpdef function? There is warning about that too. It seems you already found a way to handle it. And here is my branch for unused_arg: https://github.com/vitek/cython/commits/_unused_arg

Re: [Cython] Willing to contribute

2011-08-03 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 1:53 PM, Stefano wrote: > Hi everybody, > > I've been a enthusiast Python programmer for 3 years now, and I've hailed > Cython project with great interest. Now, I'm willing to contribute. I've would > say I'm an quite an expert Python programmer and I've some-year-long > exp

Re: [Cython] Willing to contribute

2011-08-03 Thread Lisandro Dalcin
On 3 August 2011 17:53, Stefano wrote: > > Everything started with trying to speed up a Mandelbrot generator, which > heavily relies on complex numbers. Eventually I've found in "Mini Projects (or > something similar)" wiki that C99 `complex' is still to be implemented. So, I > decide to make a st

Re: [Cython] object to struct conversion

2011-08-03 Thread mark florisson
On 3 August 2011 19:36, Robert Bradshaw wrote: > On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel wrote: >> mark florisson, 03.08.2011 16:28: >>> >>> Is there any specific reason objects cannot coerce to structs (from >>> e.g. dicts?). It would be convenient for memoryviews, then you could >>> assig

[Cython] Willing to contribute

2011-08-03 Thread Stefano
Hi everybody, I've been a enthusiast Python programmer for 3 years now, and I've hailed Cython project with great interest. Now, I'm willing to contribute. I've would say I'm an quite an expert Python programmer and I've some-year-long experience with C, modern C++ and its cousin Java. Sidenote

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-03 Thread Vitja Makarov
2011/8/2 Vitja Makarov : > 2011/8/2 Vitja Makarov : >> 2011/8/2 Vitja Makarov : >>> 2011/7/29 Stefan Behnel : Vitja Makarov, 29.07.2011 10:55: > > 2011/7/29 Stefan Behnel: >> >> Vitja Makarov, 29.07.2011 10:44: >>> >>> 2011/7/29 Stefan Behnel: Vitja Ma

Re: [Cython] object to struct conversion

2011-08-03 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel wrote: > mark florisson, 03.08.2011 16:28: >> >> Is there any specific reason objects cannot coerce to structs (from >> e.g. dicts?). It would be convenient for memoryviews, then you could >> assign dicts (or any mapping) to items in the memoryview fro

Re: [Cython] object to struct conversion

2011-08-03 Thread Stefan Behnel
mark florisson, 03.08.2011 16:28: Is there any specific reason objects cannot coerce to structs (from e.g. dicts?). It would be convenient for memoryviews, then you could assign dicts (or any mapping) to items in the memoryview from Python space. You could also have structs as argument to def fun

[Cython] object to struct conversion

2011-08-03 Thread mark florisson
Is there any specific reason objects cannot coerce to structs (from e.g. dicts?). It would be convenient for memoryviews, then you could assign dicts (or any mapping) to items in the memoryview from Python space. You could also have structs as argument to def functions etc. Any objection to this ad

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread mark florisson
On 3 August 2011 14:33, Francesc Alted wrote: > Sure.  And I'm seeing a good speed-up on my 2-core machine indeed: > > Without parallel loop: > > real    0m0.923s > user    0m0.875s > sys     0m0.045s > > With parallel loop: > > real    0m0.544s > user    0m0.876s > sys     0m0.045s > > Which is p

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Francesc Alted
Hey Mark, Sure. And I'm seeing a good speed-up on my 2-core machine indeed: Without parallel loop: real0m0.923s user0m0.875s sys 0m0.045s With parallel loop: real0m0.544s user0m0.876s sys 0m0.045s Which is pretty awesome, given the simplicity of the Cython parallel im

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Francesc Alted
Sure. And I'm seeing a good speed-up on my 2-core machine indeed: Without parallel loop: real0m0.923s user0m0.875s sys 0m0.045s With parallel loop: real0m0.544s user0m0.876s sys 0m0.045s Which is pretty awesome, given the simplicity of Cython parallel implementation :)

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Stefan Behnel
Francesc Alted, 03.08.2011 14:18: I'm trying to take advantage of the exciting new parallelizing capabilities recently introduced in forthcoming 0.15 version, but I'm having a small difficulty. When I try to compile a small demo routing (attached), I'm getting this error: $ cython -a mandel.pyx

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread mark florisson
On 3 August 2011 14:18, Francesc Alted wrote: > Hi, > > I'm trying to take advantage of the exciting new parallelizing > capabilities recently introduced in forthcoming 0.15 version, but I'm > having a small difficulty.  When I try to compile a small demo routing > (attached), I'm getting this err

[Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Francesc Alted
Hi, I'm trying to take advantage of the exciting new parallelizing capabilities recently introduced in forthcoming 0.15 version, but I'm having a small difficulty. When I try to compile a small demo routing (attached), I'm getting this error: $ cython -a mandel.pyx Error compiling Cython file: