Re: [Cython] Multiple modules in one compilation unit

2011-03-03 Thread mark florisson
On 3 March 2011 10:48, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/3/3 mark florisson markflorisso...@gmail.com: On 3 March 2011 07:43, Stefan Behnel stefan...@behnel.de wrote: Lisandro Dalcin, 03.03.2011 05:38: On 2 March 2011 21:01, Greg Ewinggreg.ew...@canterbury.ac.nz  wrote

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 01:46, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Mar 8, 2011 at 11:16 AM, Francesc Alted fal...@pytables.org wrote: A Tuesday 08 March 2011 18:50:15 Stefan Behnel escrigué: mark florisson, 08.03.2011 18:00: What I meant was that the wrapper returned

[Cython] PyCharm

2011-03-16 Thread mark florisson
The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the Cython project a free Open Source license, which means that anyone developing Cython may freely use PyCharm to develop Cython. They prefer to license to remain unpublic, so if you develop Cython and want a free PyCharm license,

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
Another feedback is that I wonder whether we should put the gil and nogil psuedo-context managers both in cython namespace, and sort of deprecate the global nogil, rather than introduce yet another name that can't be used safely for all kinds of variables. Hmm, good catch. Actually, 'with

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 13:37, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 03/16/2011 12:54 PM, mark florisson wrote: On 16 March 2011 11:58, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 03/16/2011 11:28 AM, mark florisson wrote: I implemented the 'with gil:' statement

Re: [Cython] PyCharm

2011-03-16 Thread mark florisson
On 16 March 2011 15:26, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 16.03.2011 11:33: The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the Cython project a free Open Source license, which means that anyone developing Cython may freely use PyCharm to develop Cython

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 15:07, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 16.03.2011 13:28: On 16 March 2011 13:01, mark florisson wrote: Another feedback is that I wonder whether we should put the gil and nogil psuedo-context managers both in cython namespace, and sort of deprecate

Re: [Cython] 'with gil:' statement

2011-03-17 Thread mark florisson
On 16 March 2011 20:16, mark florisson markflorisso...@gmail.com wrote: Could someone review the patch (which is attached)? Maybe check if I haven't missed any side cases and such? From a first look, the test file you added seems far too short. I would expect that this feature requires a lot

Re: [Cython] cygdb gdb script problem

2011-03-29 Thread mark florisson
On 29 March 2011 21:11, Vitja Makarov vitja.maka...@gmail.com wrote: Running cygdb with Cython installed in the system leads to the following problem: vitja@vitja-laptop:~/work/cython-vitek-git/zzz$ python ../cygdb.py GNU gdb (GDB) 7.2-ubuntu Copyright (C) 2010 Free Software Foundation, Inc.

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread mark florisson
On 4 April 2011 13:53, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no 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

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread mark florisson
On 4 April 2011 19:18, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/04/2011 05:22 PM, mark florisson wrote: On 4 April 2011 13:53, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 10:34, Stefan Behnel stefan...@behnel.de 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

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 10:44, mark florisson markflorisso...@gmail.com wrote: On 5 April 2011 10:34, Stefan Behnel stefan...@behnel.de 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

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 11:01, Stefan Behnel stefan...@behnel.de 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

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
On 5 April 2011 12:51, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 04.04.2011 21:26: For clarity, I'll add an example: def f(np.ndarray[double] x, double alpha):     cdef double s = 0     cdef double tmp = 2     cdef double other = 6.6     with nogil:         for i

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
On 5 April 2011 14:55, Pauli Virtanen p...@iki.fi wrote: Mon, 04 Apr 2011 21:26:34 +0200, mark florisson wrote: [clip] For clarity, I'll add an example: [clip] How about making all the special declarations explicit? The automatic inference of variables has a problem in that a small change

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
On 5 April 2011 15:10, Pauli Virtanen p...@iki.fi wrote: Tue, 05 Apr 2011 12:55:36 +, Pauli Virtanen wrote: [clip]             # Assignment to non-private variables causes a compile-time             # error; this avoids common mistakes, such as forgetting to             # declare the

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
, Robert Bradshaw wrote: On Tue, Apr 5, 2011 at 3:51 AM, Stefan Behnelstefan...@behnel.de  wrote: mark florisson, 04.04.2011 21:26: For clarity, I'll add an example: def f(np.ndarray[double] x, double alpha):     cdef double s = 0     cdef double tmp = 2     cdef double other = 6.6

Re: [Cython] GSoC Proposal - Reimplement C modules in CPython's standard library in Cython.

2011-04-08 Thread mark florisson
On 8 April 2011 19:59, Arthur de Souza Ribeiro arthurdesribe...@gmail.com wrote: The moduels suggested for the first two milestones you think are ok? Best Regards.. []s Arthur You mention the 'dis' module, but isn't that one (and 'opcode' too) entirely written in Python?

Re: [Cython] prange CEP updated

2011-04-11 Thread mark florisson
On 11 April 2011 11:10, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/11/2011 10:45 AM, mark florisson wrote: On 5 April 2011 22:29, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: I've done a pretty major revision to the prange CEP, bringing in a lot of the feedback

Re: [Cython] prange CEP updated

2011-04-11 Thread mark florisson
On 11 April 2011 12:08, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/11/2011 11:41 AM, mark florisson wrote: On 11 April 2011 11:10, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 04/11/2011 10:45 AM, mark florisson wrote: On 5 April 2011 22:29, Dag Sverre

[Cython] Test runner

2011-04-11 Thread mark florisson
Can we select tests in the tests directory selectively? I see the -T or --ticket option, but it doens't seem to find the test tagged with # ticket: number here. I can select unit tests using python runtests.py Cython.SubPackage.Tests.SomeTest, but I can't seem to do the same thing for tests in

Re: [Cython] Test runner

2011-04-11 Thread mark florisson
On 11 April 2011 12:45, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 11.04.2011 12:26: Can we select tests in the tests directory selectively? I see the -T or --ticket option, but it doens't seem to find the test tagged with # ticket:number here. I can select unit tests using

Re: [Cython] Test runner

2011-04-11 Thread mark florisson
On 11 April 2011 12:53, mark florisson markflorisso...@gmail.com wrote: On 11 April 2011 12:45, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 11.04.2011 12:26: Can we select tests in the tests directory selectively? I see the -T or --ticket option, but it doens't seem to find

Re: [Cython] prange CEP updated

2011-04-13 Thread mark florisson
On 13 April 2011 21:57, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/13/2011 09:31 PM, mark florisson wrote: On 5 April 2011 22:29, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: I've done a pretty major revision to the prange CEP, bringing in a lot of the feedback

Re: [Cython] prange CEP updated

2011-04-13 Thread mark florisson
On 13 April 2011 22:53, mark florisson markflorisso...@gmail.com wrote: On 13 April 2011 21:57, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/13/2011 09:31 PM, mark florisson wrote: On 5 April 2011 22:29, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: I've done

Re: [Cython] prange CEP updated

2011-04-14 Thread mark florisson
On 14 April 2011 21:37, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/14/2011 09:08 PM, mark florisson wrote: On 14 April 2011 20:58, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 04/14/2011 08:42 PM, mark florisson wrote: On 14 April 2011 20:29, Dag Sverre

[Cython] gilnanny

2011-04-18 Thread mark florisson
Can I add a gilnanny to refnanny? I want to do a PyThreadState_Get() for every refnanny inc- and decref, so that it will issue a fatal error whenever reference counting is done without the gil, to make sure we never do any illegal things in nogil code blocks. While I'm at it, I also want to add a

Re: [Cython] gilnanny

2011-04-19 Thread mark florisson
On 18 April 2011 22:26, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, Apr 18, 2011 at 12:08 PM, mark florisson markflorisso...@gmail.com wrote: Can I add a gilnanny to refnanny? I want to do a PyThreadState_Get() for every refnanny inc- and decref, so that it will issue a fatal

[Cython] Hudson account

2011-04-19 Thread mark florisson
Can I get a Hudson account so I can setup my branches there? I can't seem to login using my trac credentials. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Hudson account

2011-04-19 Thread mark florisson
On 19 April 2011 12:19, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 19.04.2011 11:14: Can I get a Hudson account so I can setup my branches there? I've created one for you. Please tell me when you have changed your password, so that I can give you write access. Done. Please

Re: [Cython] Fused Types

2011-04-28 Thread mark florisson
On 28 April 2011 22:10, mark florisson markflorisso...@gmail.com wrote: On 28 April 2011 21:58, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 28.04.2011 21:48: I'm currently wondering about the proposed cython.typeof(). I believe it currently returns a string with the type name

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 28 April 2011 23:30, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Apr 28, 2011 at 1:31 PM, mark florisson markflorisso...@gmail.com wrote: On 28 April 2011 22:12, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Apr 28, 2011 at 12:48 PM, mark florisson

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 28 April 2011 23:59, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Apr 28, 2011 at 2:29 PM, mark florisson markflorisso...@gmail.com wrote: On 28 April 2011 22:31, mark florisson markflorisso...@gmail.com wrote: On 28 April 2011 22:12, Robert Bradshaw rober

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 06:32, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 28.04.2011 23:29: On 28 April 2011 22:31, mark florisson wrote: On 28 April 2011 22:12, Robert Bradshaw wrote: On Thu, Apr

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 11:03, Pauli Virtanen p...@iki.fi wrote: Fri, 29 Apr 2011 10:23:55 +0200, mark florisson wrote: [clip] Ok, branching on the type sounds fine to me. It brings one problem though: because you cannot declare the variables of your variable type (the type of say, mystruct.attrib

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 12:28, Pauli Virtanen p...@iki.fi wrote: Fri, 29 Apr 2011 11:30:19 +0200, mark florisson wrote: On 29 April 2011 11:03, Pauli Virtanen p...@iki.fi wrote: [clip] Are you planning to special-case the real_t complex syntax? Shooting from the sidelines, one more generic solution

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 06:32, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 28.04.2011 23:29: On 28 April 2011 22:31, mark florisson wrote: On 28 April 2011 22:12, Robert Bradshaw wrote: On Thu, Apr

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 00:21, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, May 2, 2011 at 1:56 PM, mark florisson markflorisso...@gmail.com wrote: On 2 May 2011 18:24, Robert Bradshaw rober...@math.washington.edu wrote: On Sun, May 1, 2011 at 2:38 AM, mark florisson markflorisso

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 10:07, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/03/2011 09:59 AM, mark florisson wrote: On 3 May 2011 00:21, Robert Bradshawrober...@math.washington.edu  wrote: On Mon, May 2, 2011 at 1:56 PM, mark florisson markflorisso...@gmail.com  wrote: On 2 May 2011

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 10:44, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/03/2011 10:42 AM, mark florisson wrote: On 3 May 2011 10:07, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 05/03/2011 09:59 AM, mark florisson wrote: On 3 May 2011 00:21, Robert Bradshawrober

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 07:47, Greg Ewing greg.ew...@canterbury.ac.nz wrote: I'm a bit confused about how fused types combine to create further fused types. If you have something like  ctypedef struct Vector:    floating x    floating y    floating z then is it going to generate code for all

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 15:17, mark florisson markflorisso...@gmail.com wrote: On 3 May 2011 07:47, Greg Ewing greg.ew...@canterbury.ac.nz wrote: I'm a bit confused about how fused types combine to create further fused types. If you have something like  ctypedef struct Vector:    floating x

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 18:00, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, May 3, 2011 at 12:59 AM, mark florisson markflorisso...@gmail.com wrote: On 3 May 2011 00:21, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, May 2, 2011 at 1:56 PM, mark florisson markflorisso

Re: [Cython] Fused Types

2011-05-04 Thread mark florisson
On 4 May 2011 01:07, Greg Ewing greg.ew...@canterbury.ac.nz wrote: mark florisson wrote: cdef func(floating x, floating y):    ... you get a float, float version, and a double, double version, but not float, double or double, float. It's hard to draw conclusions from this example because

Re: [Cython] Fused Types

2011-05-04 Thread mark florisson
On 4 May 2011 10:24, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/04/2011 01:07 AM, Greg Ewing wrote: mark florisson wrote: cdef func(floating x, floating y): ... you get a float, float version, and a double, double version, but not float, double or double, float. It's

Re: [Cython] prange CEP updated

2011-05-04 Thread mark florisson
On 21 April 2011 20:13, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/21/2011 10:37 AM, Robert Bradshaw wrote: On Mon, Apr 18, 2011 at 7:51 AM, mark florisson markflorisso...@gmail.com  wrote: On 18 April 2011 16:41, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote

Re: [Cython] prange CEP updated

2011-05-04 Thread mark florisson
On 4 May 2011 12:45, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/04/2011 12:00 PM, mark florisson wrote: On 21 April 2011 20:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 04/21/2011 10:37 AM, Robert Bradshaw wrote: On Mon, Apr 18, 2011 at 7:51 AM, mark

Re: [Cython] prange CEP updated

2011-05-04 Thread mark florisson
On 4 May 2011 13:39, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/04/2011 01:30 PM, mark florisson wrote: On 4 May 2011 13:15, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 05/04/2011 12:59 PM, mark florisson wrote: On 4 May 2011 12:45, Dag Sverre

Re: [Cython] prange CEP updated

2011-05-04 Thread mark florisson
On 4 May 2011 13:45, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/04/2011 01:41 PM, mark florisson wrote: On 4 May 2011 13:39, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: On 05/04/2011 01:30 PM, mark florisson wrote: On 4 May 2011 13:15, Dag Sverre

Re: [Cython] Git workflow, branches, pull requests

2011-05-05 Thread mark florisson
On 5 May 2011 21:52, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: There was just a messup in git history: Mark's OpenMP pull request got merged twice; all commits show up two times. It doesn't matter, since the two openmp branches with the same changes merged OK, but we shouldn't

Re: [Cython] Git workflow, branches, pull requests

2011-05-05 Thread mark florisson
On 5 May 2011 22:22, Stefan Behnel stefan...@behnel.de wrote: Dag Sverre Seljebotn, 05.05.2011 21:52: There was just a messup in git history: Mark's OpenMP pull request got merged twice; all commits show up two times. What (I think) happened, was that Vitja pulled in Mark's changes into his

Re: [Cython] [GSoC] Blog post regarding the Cython backend aiming PyPy

2011-05-31 Thread mark florisson
On 30 May 2011 23:31, Romain Guillebert romain...@gmail.com wrote: Hi I've posted and article on my blog that explains what I've done during the community bonding period and the first week of the Google Summer of Code :

Re: [Cython] Bindings performance issue

2011-06-02 Thread mark florisson
On 2 June 2011 23:59, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Jun 2, 2011 at 2:45 PM, mark florisson markflorisso...@gmail.com wrote: On 2 June 2011 23:34, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Jun 2, 2011 at 2:21 PM, mark florisson markflorisso

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread mark florisson
On 6 July 2011 10:01, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/6 Stefan Behnel stefan...@behnel.de: Vitja Makarov, 06.07.2011 09:05: 2011/7/6 Stefan Behnelstefan...@behnel.de: Stefan Behnel, 05.07.2011 10:04: Vitja Makarov, 05.07.2011 09:17: 2011/7/5 Stefan Behnel: Vitja

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread mark florisson
On 7 July 2011 17:09, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/6 Vitja Makarov vitja.maka...@gmail.com: 2011/7/6 Stefan Behnel stefan...@behnel.de: Vitja Makarov, 06.07.2011 09:05: 2011/7/6 Stefan Behnelstefan...@behnel.de: Stefan Behnel, 05.07.2011 10:04: Vitja Makarov,

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread mark florisson
On 7 July 2011 22:15, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/7 mark florisson markflorisso...@gmail.com On 6 July 2011 10:01, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/6 Stefan Behnel stefan...@behnel.de: Vitja Makarov, 06.07.2011 09:05: 2011/7/6 Stefan

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread mark florisson
On 7 July 2011 22:39, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/8 mark florisson markflorisso...@gmail.com On 7 July 2011 22:15, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/7 mark florisson markflorisso...@gmail.com On 6 July 2011 10:01, Vitja Makarov vitja.maka

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread mark florisson
On 12 July 2011 11:46, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/12 Stefan Behnel stefan...@behnel.de Vitja Makarov, 12.07.2011 09:46: About cdef classes: probably it's better to transform super().method(...) into direct form, e.g. BaseClass.method(self, ...) Except when it

[Cython] runtests libgomp fail

2011-07-14 Thread mark florisson
I added a test for nested parallelism with exceptions (with OpenMP nesting explicitly enabled), however if libgomp cannot create more threads it exits the process with exit status 1 and the message libgomp: Thread creation failed: Resource temporarily unavailable. This then results in a red Hudson

Re: [Cython] Cython 0.15 release

2011-07-20 Thread mark florisson
On 20 July 2011 11:47, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 20.07.2011 11:40: On 20 July 2011 11:26, Stefan Behnel wrote: mark florisson, 20.07.2011 10:51: On 20 July 2011 02:32, Robert Bradshaw wrote: We're long overdue for a release, and this week would be a good one

Re: [Cython] How to define C-consts in python module scope

2011-07-20 Thread mark florisson
On 20 July 2011 18:06, Lisandro Dalcin dalc...@gmail.com wrote: On 19 July 2011 20:48, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Jul 19, 2011 at 3:02 PM, Lisandro Dalcin dalc...@gmail.com wrote: On 19 July 2011 02:24, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/18

Re: [Cython] How to define C-consts in python module scope

2011-07-20 Thread mark florisson
On 20 July 2011 20:04, Lisandro Dalcin dalc...@gmail.com wrote: On 20 July 2011 13:51, mark florisson markflorisso...@gmail.com wrote: On 20 July 2011 18:06, Lisandro Dalcin dalc...@gmail.com wrote: On 19 July 2011 20:48, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Jul 19, 2011

Re: [Cython] How to define C-consts in python module scope

2011-07-20 Thread mark florisson
On 20 July 2011 21:13, Lisandro Dalcin dalc...@gmail.com wrote: On 20 July 2011 15:32, mark florisson markflorisso...@gmail.com wrote: On 20 July 2011 20:04, Lisandro Dalcin dalc...@gmail.com wrote: On 20 July 2011 13:51, mark florisson markflorisso...@gmail.com wrote: On 20 July 2011 18:06

Re: [Cython] Cython 0.15 release candidate

2011-07-22 Thread mark florisson
On 22 July 2011 04:43, Christoph Gohlke cgoh...@uci.edu wrote: On 7/21/2011 4:14 PM, Robert Bradshaw wrote: Cython has seen an enormous amount of development since 0.14.1. If you are not already using the latest version from the development repository, we encourage you to try out the

Re: [Cython] Cython 0.15 release candidate

2011-07-22 Thread mark florisson
On 22 July 2011 04:43, Christoph Gohlke cgoh...@uci.edu wrote: On 7/21/2011 4:14 PM, Robert Bradshaw wrote: Cython has seen an enormous amount of development since 0.14.1. If you are not already using the latest version from the development repository, we encourage you to try out the

Re: [Cython] Utility Codes and templates

2011-07-22 Thread mark florisson
On 22 July 2011 13:31, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 07/22/2011 01:10 PM, Stefan Behnel wrote: mark florisson, 22.07.2011 12:12: For my work on the _memview branch (and also on fused types) I noticed that UtilityCodes started weighing heavily on me

Re: [Cython] Utility Codes and templates

2011-07-22 Thread mark florisson
On 22 July 2011 14:38, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 22.07.2011 13:45: On 22 July 2011 13:10, Stefan Behnel wrote: mark florisson, 22.07.2011 12:12: For my work on the _memview branch (and also on fused types) I noticed that UtilityCodes started weighing heavily

Re: [Cython] Utility Codes and templates

2011-07-22 Thread mark florisson
On 22 July 2011 15:54, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 22.07.2011 15:07: On 22 July 2011 14:38, Stefan Behnel wrote: mark florisson, 22.07.2011 13:45: On 22 July 2011 13:10, Stefan Behnel wrote: mark florisson, 22.07.2011 12:12: For my work on the _memview

Re: [Cython] Utility Codes and templates

2011-07-22 Thread mark florisson
On 22 July 2011 16:31, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 22.07.2011 16:11: On 22 July 2011 15:54, Stefan Behnel wrote: mark florisson, 22.07.2011 15:07: On 22 July 2011 14:38, Stefan Behnel wrote: mark florisson, 22.07.2011 13:45: On 22 July 2011 13:10, Stefan

Re: [Cython] Utility Codes and templates

2011-07-22 Thread mark florisson
On 22 July 2011 16:49, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 22.07.2011 16:13: On 22 July 2011 16:08, Stefan Behnel wrote: Stefan Behnel, 22.07.2011 15:54: However, given that you always need to express metadata in some way (e.g. for dependencies), I don't think you can

Re: [Cython] Utility Codes and templates

2011-07-22 Thread mark florisson
On 22 July 2011 22:05, Robert Bradshaw rober...@math.washington.edu wrote: On Fri, Jul 22, 2011 at 3:12 AM, mark florisson markflorisso...@gmail.com wrote: For my work on the _memview branch (and also on fused types) I noticed that UtilityCodes started weighing heavily on me in their current

Re: [Cython] Utility Codes and templates

2011-07-23 Thread mark florisson
On 23 July 2011 09:37, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 22.07.2011 23:44: On Fri, Jul 22, 2011 at 1:39 PM, mark florisson markflorisso...@gmail.com  wrote: On 22 July 2011 22:05, Robert Bradshawrober...@math.washington.edu  wrote: On Fri, Jul 22, 2011 at 3:12 AM

Re: [Cython] Utility Codes and templates

2011-07-25 Thread mark florisson
On 25 July 2011 12:00, Stefan Behnel stefan...@behnel.de wrote: Vitja Makarov, 25.07.2011 10:25: 2011/7/25 Stefan Behnelstefan...@behnel.de: Vitja Makarov, 25.07.2011 08:41: 2011/7/23 Robert Bradshawrober...@math.washington.edu: On Fri, Jul 22, 2011 at 3:12 AM, mark florisson

Re: [Cython] Utility Codes and templates

2011-07-26 Thread mark florisson
On 26 July 2011 08:46, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, Jul 25, 2011 at 11:39 PM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 26.07.2011 06:29: On Mon, Jul 25, 2011 at 3:07 AM, mark florisson It's now 'MyUtility' and 'MyUtility.proto'. If there's

Re: [Cython] Utility Codes and templates

2011-07-26 Thread mark florisson
On 26 July 2011 11:26, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 26.07.2011 10:57: On 26 July 2011 08:46, Robert Bradshawrober...@math.washington.edu  wrote: On Mon, Jul 25, 2011 at 11:39 PM, Stefan Behnelstefan...@behnel.de  wrote: Robert Bradshaw, 26.07.2011 06:29

Re: [Cython] Cython 0.15 release candidate

2011-07-26 Thread mark florisson
On 25 July 2011 08:08, Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com wrote: There are 4 NumPy-related test errors with Python 3.1 and 3.2. Output with Python 3.2: == ERROR: runTest (__main__.CythonRunTestCase)

Re: [Cython] Should we drop support for CPython 2.3? (and maybe even 2.4?)

2011-07-27 Thread mark florisson
On 27 July 2011 18:46, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/27 Stefan Behnel stefan...@behnel.de: Hi, quick question before raising a poll on the users mailing list. Would anyone mind dropping support for CPython 2.3? 1) it's long out of maintenance, even the last security

Re: [Cython] Cython 0.15 release candidate

2011-07-29 Thread mark florisson
On 25 July 2011 08:03, Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com wrote: There are 4 test failures with Python 2.6, 2.7, 3.1 and 3.2. Output with Python 2.7: == FAIL: test_nested_break_continue (line 331)

Re: [Cython] OpenMP problem

2011-07-31 Thread mark florisson
2011/7/31 Vitja Makarov vitja.maka...@gmail.com: I've tried openmp support with simple example: from cython.parallel cimport prange def mul(values):    ret = 1    for i in prange(values):        ret *= i    return ret And cython crashes: ((b04e040...))

Re: [Cython] OpenMP problem

2011-07-31 Thread mark florisson
On 31 July 2011 21:49, mark florisson markflorisso...@gmail.com wrote: 2011/7/31 Vitja Makarov vitja.maka...@gmail.com: I've tried openmp support with simple example: from cython.parallel cimport prange def mul(values):    ret = 1    for i in prange(values):        ret *= i    return ret

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread mark florisson
On 3 August 2011 14:18, Francesc Alted fal...@pytables.org 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

[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

Re: [Cython] object to struct conversion

2011-08-03 Thread mark florisson
On 3 August 2011 19:36, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel stefan...@behnel.de 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

Re: [Cython] object to struct conversion

2011-08-05 Thread mark florisson
On 5 August 2011 08:53, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Aug 3, 2011 at 2:09 PM, mark florisson markflorisso...@gmail.com wrote: On 3 August 2011 19:36, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel stefan

Re: [Cython] object to struct conversion

2011-08-05 Thread mark florisson
On 5 August 2011 11:05, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 05.08.2011 08:53: On Wed, Aug 3, 2011 at 2:09 PM, mark florisson wrote: my hudson sdist keeps failing with writing manifest file 'MANIFEST' making hard links in Cython-0.14.1+... hard linking COPYING.txt

Re: [Cython] [cython-users] Re: Segfault in PyThread_release_lock

2011-08-15 Thread mark florisson
On 15 August 2011 02:22, Nikolaus Rath nikol...@rath.org wrote: mark florisson markflorisso...@gmail.com writes: On 14 August 2011 17:50, Nikolaus Rath nikol...@rath.org wrote: mark florisson markflorisso...@gmail.com writes: On 12 August 2011 20:23, Nikolaus Rath nikol...@rath.org wrote

Re: [Cython] [cython-users] Segfault in PyThread_release_lock

2011-08-15 Thread mark florisson
On Monday, 15 August 2011, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 08/15/2011 11:42 AM, mark florisson wrote: On 15 August 2011 02:22, Nikolaus Rathnikol...@rath.org  wrote: mark florissonmarkflorisso...@gmail.com  writes: On 14 August 2011 17:50, Nikolaus Rathnikol

Re: [Cython] Segfault in PyThread_release_lock

2011-08-16 Thread mark florisson
Seljebotn, 15.08.2011 11:54: On 08/15/2011 11:42 AM, mark florisson wrote: @Cython-dev: Do we merely want to update the docs, or do we want to initialize the GIL for either case, or only for the with gil functions? I'm not entirely sure what the overhead is for single-threaded code

Re: [Cython] Segfault in PyThread_release_lock

2011-08-16 Thread mark florisson
some tests later today and report back. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Stefan Behnel stefan...@behnel.de wrote: Dag Sverre Seljebotn, 15.08.2011 11:54: On 08/15/2011 11:42 AM, mark florisson wrote: @Cython-dev: Do we merely want to update the docs

Re: [Cython] Segfault in PyThread_release_lock

2011-08-16 Thread mark florisson
On 16 August 2011 12:49, mark florisson markflorisso...@gmail.com wrote: On 16 August 2011 11:39, mark florisson markflorisso...@gmail.com wrote: On 15 August 2011 23:33, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: Would it be horribly expensive to generate a better runtime error

Re: [Cython] except clause on nogil functions

2011-08-20 Thread mark florisson
On 20 August 2011 00:34, mark florisson markflorisso...@gmail.com wrote: Hey, I think I found a rather serious bug: if an error label is used in a nogil function, it tries to build a traceback. So if the GIL is released you will immediately segfault, and otherwise it will work fine! Here

Re: [Cython] Bugfix release

2011-09-11 Thread mark florisson
On 11 September 2011 07:54, Robert Bradshaw rober...@math.washington.edu wrote: +1 to another release soon. Is there anything in the devel branch that's not ready to go out? (I was also thinking of doing a release as soon as fused functions and memory views got in.) On Sat, Sep 10, 2011 at

Re: [Cython] Bugfix release

2011-09-11 Thread mark florisson
On 11 September 2011 11:33, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 11.09.2011 07:54: On Sat, Sep 10, 2011 at 10:32 PM, Vitja Makarov wrote: Are we going to make a bugfix release? There are some critical bugs in 0.15, T725 for example. Yes, and some others. Think we

Re: [Cython] Cython 0.15.1 release candidate

2011-09-16 Thread mark florisson
On 16 September 2011 22:03, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 15.09.2011 22:33: See http://wiki.cython.org/ReleaseNotes-0.15.1 This is a bugfix only release, we hope to get it out shortly. I've added ticket 736 as a blocker, at least until I know what it takes to fix

Re: [Cython] Cython 0.15.1 release candidate

2011-09-16 Thread mark florisson
On 16 September 2011 22:29, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 16.09.2011 23:21: On 16 September 2011 22:20, mark florisson wrote: On 16 September 2011 22:03, Stefan Behnel wrote: Robert Bradshaw, 15.09.2011 22:33: See http://wiki.cython.org/ReleaseNotes-0.15.1

Re: [Cython] 'local variable referenced before assignment' warnings

2011-09-23 Thread mark florisson
On 23 September 2011 06:02, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Sep 22, 2011 at 9:36 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/9/23 Robert Bradshaw rober...@math.washington.edu: On Thu, Sep 22, 2011 at 5:08 AM, Vitja Makarov vitja.maka...@gmail.com wrote:

Re: [Cython] 'local variable referenced before assignment' warnings

2011-09-23 Thread mark florisson
On 23 September 2011 06:02, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Sep 22, 2011 at 9:36 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/9/23 Robert Bradshaw rober...@math.washington.edu: On Thu, Sep 22, 2011 at 5:08 AM, Vitja Makarov vitja.maka...@gmail.com wrote:

Re: [Cython] [cython-users] Re: callback function pointer problem

2011-09-30 Thread mark florisson
On 29 September 2011 22:48, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Sep 29, 2011 at 5:29 AM, mark florisson markflorisso...@gmail.com wrote: On 29 September 2011 13:13, Miguel Angel skud...@gmail.com wrote: Structs already coerce to python dicts. In the memoryview branch

Re: [Cython] [cython-users] Re: callback function pointer problem

2011-09-30 Thread mark florisson
or whatever (and by casting like int[:variable_length] mystruct.my_last_overallocated_field). mark florisson markflorisso...@gmail.com wrote: On 29 September 2011 22:48, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Sep 29, 2011 at 5:29 AM, mark florisson markflorisso

  1   2   3   4   5   >