Re: [Cython] funding (Re: sage.math problems?)

2012-03-23 Thread mark florisson
On 23 March 2012 14:24, Stefan Behnel wrote: > mark florisson, 23.03.2012 15:09: >> I also changed the cython-sdist to pull from the release0.16 branch, >> to make sure things work in the release. > > There are dedicated cython-release jobs for that. Not sure in what stat

Re: [Cython] NumPy test failures in Py2.4

2012-03-24 Thread mark florisson
On 23 March 2012 19:40, Stefan Behnel wrote: > Hi, > > after re-enabling the NumPy tests, I'm getting two NumPy (1.6.1) test > failure in Py2.4 (2.7 is ok): > > https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/BACKEND=c,PYVERSION=py24-ext/224/testReport/junit/doctest/DocTestCase

Re: [Cython] NumPy dependency in Jenkins builds

2012-03-24 Thread mark florisson
On 23 March 2012 19:48, Stefan Behnel wrote: > Stefan Behnel, 23.03.2012 15:26: >> mark florisson, 23.03.2012 14:26: >>> This may be OT for this thread >> >> ... in which case it's quite common to start a new one ... >> >>> but sas numpy remov

Re: [Cython] NumPy test failures in Py2.4

2012-03-26 Thread mark florisson
On 24 March 2012 22:24, mark florisson wrote: > On 23 March 2012 19:40, Stefan Behnel wrote: >> Hi, >> >> after re-enabling the NumPy tests, I'm getting two NumPy (1.6.1) test >> failure in Py2.4 (2.7 is ok): >> >> https://sage.math.washington.edu:

Re: [Cython] NumPy test failures in Py2.4

2012-03-26 Thread mark florisson
On 26 March 2012 14:12, Stefan Behnel wrote: > mark florisson, 26.03.2012 14:13: >>> On 23 March 2012 19:40, Stefan Behnel wrote: >>>> after re-enabling the NumPy tests, I'm getting two NumPy (1.6.1) test >>>> failure in Py2.4 (2.7 is ok): >>>>

Re: [Cython] funding (Re: sage.math problems?)

2012-03-26 Thread mark florisson
On 23 March 2012 14:24, Stefan Behnel wrote: > mark florisson, 23.03.2012 15:09: >> I also changed the cython-sdist to pull from the release0.16 branch, >> to make sure things work in the release. > > There are dedicated cython-release jobs for that. Not sure in what stat

Re: [Cython] 0.16 release

2012-03-27 Thread mark florisson
On 27 March 2012 11:57, Vitja Makarov wrote: > 2012/2/27 Sébastien Sablé Sablé : >> Great, thanks! >> >> >> 2012/2/25 mark florisson >>> >>> 2012/2/24 Sébastien Sablé Sablé : >>> > Hi, >>> > >>> > could you please a

Re: [Cython] Gsoc project

2012-03-29 Thread mark florisson
On 29 March 2012 04:28, Dag Sverre Seljebotn wrote: > On 03/28/2012 07:58 PM, Philip Herron wrote: >> >> Hey all >> >> I am implemented a very crude and simplistic and very badly programmed >> version of a pxd generator i think i understand what were after now >> but i would appreciate if you look

Re: [Cython] weird code in argument unpacking (memoryview related?)

2012-03-30 Thread mark florisson
On 30 March 2012 12:19, Stefan Behnel wrote: > Hi, > > this code in Nodes.py around line 3950, at the end of the DefNodeWrapper's > method generate_keyword_unpacking_code(), was added as part of the memory > view changes, back in July last year: > > """ >        # convert arg values to their final

Re: [Cython] 0.16 release

2012-03-30 Thread mark florisson
On 27 March 2012 12:58, Stefan Behnel wrote: > mark florisson, 27.03.2012 13:20: >> I tested the release in my own branch and jenkins was blue, but >> the release build seems to disagree. > > The release (and master) branch is tested against the "-ext" build

Re: [Cython] 0.16 release

2012-03-31 Thread mark florisson
On 31 March 2012 10:14, Stefan Behnel wrote: > mark florisson, 30.03.2012 19:24: >> The release build looks good now, I'm thinking of pushing a second and >> final beta out there tomorrow. If anyone wants to get something in, >> now is the time to raise voice.

Re: [Cython] 0.16 release

2012-03-31 Thread mark florisson
On 31 March 2012 17:15, Stefan Behnel wrote: > mark florisson, 31.03.2012 11:31: >> On 31 March 2012 10:14, Stefan Behnel wrote: >>> mark florisson, 30.03.2012 19:24: >>>> The release build looks good now, I'm thinking of pushing a second and >>>> fi

[Cython] Cython 0.16 Release Candidate

2012-03-31 Thread mark florisson
We are happy to announce the first release candidate for Cython 0.16, you can grab it from here: http://wiki.cython.org/ReleaseNotes-0.16 Since the beta last month several issues have been fixed, including the NumPy array attribute access deprecation, which are now rewritten to use the NumPy macro

Re: [Cython] NumPy dependency in Jenkins builds

2012-04-11 Thread mark florisson
On 23 March 2012 19:48, Stefan Behnel wrote: > Stefan Behnel, 23.03.2012 15:26: > > mark florisson, 23.03.2012 14:26: > >> This may be OT for this thread > > > > ... in which case it's quite common to start a new one ... > > > >> but sas numpy r

Re: [Cython] NumPy dependency in Jenkins builds

2012-04-12 Thread mark florisson
On 11 April 2012 18:04, Stefan Behnel wrote: > mark florisson, 11.04.2012 17:19: >> On 23 March 2012 19:48, Stefan Behnel wrote: >>> Stefan Behnel, 23.03.2012 15:26: >>>> mark florisson, 23.03.2012 14:26: >>>>> Following tests excluded because

[Cython] Cython 0.16 RC 1

2012-04-12 Thread mark florisson
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 types. Accessing the 'base' attribute of a typed ndarray now g

[Cython] pyregr test suite

2012-04-12 Thread mark florisson
Hey, Could we run the pyregr test suite manually instead of automatically? It takes a lot of resources to build, and a single simple push to the cython-devel branch results in the build slots being hogged for hours, making the continuous development a lot less 'continuous'. We could just decide to

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-13 Thread mark florisson
On 13 April 2012 12:38, Stefan Behnel wrote: > Robert Bradshaw, 13.04.2012 12:17: >> On Fri, Apr 13, 2012 at 1:52 AM, Dag Sverre Seljebotn wrote: >>> On 04/13/2012 01:38 AM, Robert Bradshaw wrote: Have you given any thought as to what happens if __call__ is re-assigned for an object (or

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-13 Thread mark florisson
On 13 April 2012 12:59, Dag Sverre Seljebotn wrote: > On 04/13/2012 01:38 PM, Stefan Behnel wrote: >> >> Robert Bradshaw, 13.04.2012 12:17: >>> >>> On Fri, Apr 13, 2012 at 1:52 AM, Dag Sverre Seljebotn wrote: On 04/13/2012 01:38 AM, Robert Bradshaw wrote: > > Have you given any t

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-13 Thread mark florisson
On 13 April 2012 13:48, Stefan Behnel wrote: > Stefan Behnel, 13.04.2012 14:27: >> Dag Sverre Seljebotn, 13.04.2012 13:59: >>> Requiring interning is somewhat less elegant in one way, but it makes a lot >>> of other stuff much simpler. >>> >>> That gives us >>> >>> struct { >>>     void *pointer;

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-13 Thread mark florisson
On 13 April 2012 14:27, Dag Sverre Seljebotn wrote: > On 04/13/2012 03:01 PM, mark florisson wrote: >> >> On 13 April 2012 13:48, Stefan Behnel  wrote: >>> >>> Stefan Behnel, 13.04.2012 14:27: >>>> >>>> Dag Sverre Seljebotn, 13.04.201

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

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 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: >>>> >>>&

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 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 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:

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

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread mark florisson
On 15 April 2012 07:26, Stefan Behnel wrote: > 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 >>>>

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread mark florisson
On 15 April 2012 12:40, Stefan Behnel wrote: > mark florisson, 15.04.2012 13:30: >> Finally, what are the semantics for Py_buffer? Will the callee own the >> buffer, or will it borrow it? If they will borrow, then the compiler >> will have to figure out whether it will

[Cython] Cython 0.16 RC 2

2012-04-15 Thread mark florisson
Hopefully a final release candidate for the 0.16 release can be found here: http://wiki.cython.org/ReleaseNotes-0.16 . This corresponds to the 'release' branch of the cython repository on github. ___ cython-devel mailing list cython-devel@python.org http:

Re: [Cython] [cython-users] buffer access to ndarrays as cdef class attributes

2012-04-16 Thread mark florisson
On 16 April 2012 16:40, becker.nils wrote: > >> > 1. memoryview assignments inside inner loops are not a good idea. >> > although >> > no data is being copied, making a new slice involves quite some error >> > checking overhead >> >> Do you mean assignment to the data or to the slice itself? > > i

Re: [Cython] [cython-users] buffer access to ndarrays as cdef class attributes

2012-04-16 Thread mark florisson
On 16 April 2012 18:56, mark florisson wrote: > On 16 April 2012 16:40, becker.nils wrote: >> >>> > 1. memoryview assignments inside inner loops are not a good idea. >>> > although >>> > no data is being copied, making a new slice involves quite some

Re: [Cython] New early-binding concept [was: CEP1000]

2012-04-19 Thread mark florisson
On 19 April 2012 08:17, Dag Sverre Seljebotn wrote: > On 04/19/2012 08:41 AM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 18.04.2012 23:35: >>> >>> from numpy import sqrt, sin >>> >>> cdef double f(double x): >>>     return sqrt(x * x) # or sin(x * x) >>> >>> Of course, here one could get the

Re: [Cython] Cython 0.16 RC 2

2012-04-21 Thread mark florisson
On 20 April 2012 20:04, Stefan Behnel wrote: > mark florisson, 15.04.2012 20:59: >> Hopefully a final release candidate for the 0.16 release can be found >> here: http://wiki.cython.org/ReleaseNotes-0.16 . This corresponds to >> the 'release' branch of the cyt

Re: [Cython] Cython 0.16 RC 2

2012-04-21 Thread mark florisson
On 20 April 2012 20:04, Stefan Behnel wrote: > mark florisson, 15.04.2012 20:59: >> Hopefully a final release candidate for the 0.16 release can be found >> here: http://wiki.cython.org/ReleaseNotes-0.16 . This corresponds to >> the 'release' branch of the cyt

[Cython] Cython 0.16

2012-04-21 Thread mark florisson
We are pleased to announce a new version of Cython, 0.16 (http://cython.org/release/Cython-0.16.tar.gz). It comes with new features, improvements and bug fixes, including - super() without arguments - fused types - memoryviews - more Python-like functions Many thanks to the many c

Re: [Cython] test crash in Py3.2 (NumPy/memoryview/refcounting related?)

2012-04-22 Thread mark florisson
On 22 April 2012 11:57, Stefan Behnel wrote: > Hi, > > I keep seeing test crashes in Py3.2 debug builds on Jenkins with the latest > master, referring to ref-counting problems. Here, for example: > > https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/BACKEND=c,PYVERSION=py32-ext/3

Re: [Cython] test crash in Py3.2 (NumPy/memoryview/refcounting related?)

2012-04-22 Thread mark florisson
On 22 April 2012 13:34, Stefan Behnel wrote: > mark florisson, 22.04.2012 13:54: >> On 22 April 2012 11:57, Stefan Behnel wrote: >>> I keep seeing test crashes in Py3.2 debug builds on Jenkins with the latest >>> master, referring to ref-counting problems. Here,

Re: [Cython] test crash in Py3.2 (NumPy/memoryview/refcounting related?)

2012-04-22 Thread mark florisson
On 22 April 2012 15:31, mark florisson wrote: > On 22 April 2012 13:34, Stefan Behnel wrote: >> mark florisson, 22.04.2012 13:54: >>> On 22 April 2012 11:57, Stefan Behnel wrote: >>>> I keep seeing test crashes in Py3.2 debug builds on Jenkins with the latest

Re: [Cython] `cdef inline` and typed memory views

2012-04-22 Thread mark florisson
On 21 April 2012 20:17, Dimitri Tcaciuc wrote: > Hey everyone, > > Congratulations on shipping 0.16! I think I found a problem which > seems pretty straight forward. Say I want to factor out inner part of > some N^2 loops over a flow array, I write something like > >  cdef inline float _inner(size

Re: [Cython] `cdef inline` and typed memory views

2012-04-22 Thread mark florisson
On 22 April 2012 19:14, Dimitri Tcaciuc wrote: > On Sat, Apr 21, 2012 at 2:48 PM, Stefan Behnel wrote: >> Dimitri Tcaciuc, 21.04.2012 21:17: >>> On a somewhat relevant node, have you considered enabling Issues page on >>> Github? >> >> It was discussed, but the drawback of having two separate bu

Re: [Cython] test crash in Py3.2 (NumPy/memoryview/refcounting related?)

2012-04-23 Thread mark florisson
On 23 April 2012 09:23, Stefan Behnel wrote: > mark florisson, 22.04.2012 16:41: >> On 22 April 2012 15:31, mark florisson wrote: >>> I think the problem here >>> is that a single memoryview object is traversed multiple times through >>> different traverse func

Re: [Cython] `cdef inline` and typed memory views

2012-04-23 Thread mark florisson
On 23 April 2012 07:24, Stefan Behnel wrote: > mark florisson, 22.04.2012 22:20: >> On 21 April 2012 20:17, Dimitri Tcaciuc wrote: >>> Say I want to factor out inner part of >>> some N^2 loops over a flow array, I write something like >>> >>>  cdef

Re: [Cython] tp_clear() of buffer client objects (was: Re: test crash in Py3.2 (NumPy/memoryview/refcounting related?))

2012-04-23 Thread mark florisson
On 23 April 2012 09:42, Stefan Behnel wrote: > Stefan Behnel, 23.04.2012 10:23: >> mark florisson, 22.04.2012 16:41: >>> On 22 April 2012 15:31, mark florisson wrote: >>>> I think the problem here >>>> is that a single memoryview object is traversed mult

Re: [Cython] dynamically compile and import pure python modules

2012-04-27 Thread mark florisson
On 22 March 2012 20:07, Stefan Behnel wrote: > mark florisson, 22.03.2012 19:50: >> For the fused type runtime dispatch I found it very convenient to use >> the with statement, but that is not supported in Python 2.4. However, >> the compiler could dynamically compile c

Re: [Cython] dynamically compile and import pure python modules

2012-04-27 Thread mark florisson
On 27 April 2012 21:16, Stefan Behnel wrote: > mark florisson, 27.04.2012 21:16: >> On 22 March 2012 20:07, Stefan Behnel wrote: >>> mark florisson, 22.03.2012 19:50: >>>> For the fused type runtime dispatch I found it very convenient to use >>>> the wi

Re: [Cython] dynamically compile and import pure python modules

2012-04-28 Thread mark florisson
On 28 April 2012 18:55, Stefan Behnel wrote: > mark florisson, 27.04.2012 22:38: >> On 27 April 2012 21:16, Stefan Behnel wrote: >>> What about this deal: we remove the hard bootstrap dependency on the fused >>> types code (and maybe other Cython specific features) and

Re: [Cython] dynamically compile and import pure python modules

2012-04-28 Thread mark florisson
On 28 April 2012 19:39, Stefan Behnel wrote: > mark florisson, 28.04.2012 20:18: >> On 28 April 2012 18:55, Stefan Behnel wrote: >>> mark florisson, 27.04.2012 22:38: >>>> On 27 April 2012 21:16, Stefan Behnel wrote: >>>>> What about this deal: we remo

Re: [Cython] Wacky idea: proper macros

2012-04-28 Thread mark florisson
On 28 April 2012 22:04, Nathaniel Smith wrote: > Was chatting with Wes today about the usual problem many of us have > encountered with needing to use some sort of templating system to > generate code handling multiple types, operations, etc., and a wacky > idea occurred to me. So I thought I'd th

Re: [Cython] Wacky idea: proper macros

2012-04-29 Thread mark florisson
On 29 April 2012 08:42, Nathaniel Smith wrote: > On Sat, Apr 28, 2012 at 10:25 PM, mark florisson > wrote: >> On 28 April 2012 22:04, Nathaniel Smith wrote: >>> Was chatting with Wes today about the usual problem many of us have >>> encountered with needing to use

Re: [Cython] dynamically compile and import pure python modules

2012-04-29 Thread mark florisson
On 29 April 2012 05:50, Stefan Behnel wrote: > mark florisson, 28.04.2012 21:55: >> On 28 April 2012 19:39, Stefan Behnel wrote: >>> mark florisson, 28.04.2012 20:18: >>>> On 28 April 2012 18:55, Stefan Behnel wrote: >>>>> mark florisson, 27.04.2012

Re: [Cython] [cython-users] Conditional import in pure Python mode

2012-04-30 Thread mark florisson
On 30 April 2012 13:14, Ian Bell wrote: > > On Sun, Apr 29, 2012 at 10:58 PM, mark florisson > wrote: >> >> On 29 April 2012 01:33, Ian Bell wrote: >> > Hello Cython users, >> > >> > I haven't the foggiest idea how easy this would be to im

Re: [Cython] [cython-users] Conditional import in pure Python mode

2012-04-30 Thread mark florisson
On 30 April 2012 14:55, Stefan Behnel wrote: > mark florisson, 30.04.2012 15:24: >> So lets assume we want to use the following syntax: stdio = >> cython.cimport_module("libc.stdio"). >> >> In the TransformBuiltinMethods you add another case to the >>

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread mark florisson
On 30 April 2012 14:49, Wes McKinney wrote: > On Sun, Apr 29, 2012 at 5:56 AM, mark florisson > wrote: >> On 29 April 2012 08:42, Nathaniel Smith wrote: >>> On Sat, Apr 28, 2012 at 10:25 PM, mark florisson >>> wrote: >>>> On 28 April 2012 22:04, Natha

Re: [Cython] Wacky idea: proper macros

2012-04-30 Thread mark florisson
On 30 April 2012 14:49, Wes McKinney wrote: > On Sun, Apr 29, 2012 at 5:56 AM, mark florisson > wrote: >> On 29 April 2012 08:42, Nathaniel Smith wrote: >>> On Sat, Apr 28, 2012 at 10:25 PM, mark florisson >>> wrote: >>>> On 28 April 2012 22:04, Natha

Re: [Cython] Conditional import in pure Python mode

2012-05-01 Thread mark florisson
On 1 May 2012 20:22, Stefan Behnel wrote: > Stefan Behnel, 01.05.2012 21:14: >> 2) Use math.pxd as an override for the math module. I'm not sure yet how >> that would best be made to work, but it shouldn't be all that complex. It >> already works (mostly?) for numpy.pxd, for example, although that

Re: [Cython] CEP1000: Native dispatch through callables

2012-05-05 Thread mark florisson
On 3 May 2012 13:24, Dag Sverre Seljebotn wrote: > I'm afraid I'm going to try to kick this thread alive again. I want us to > have something that Travis can implement in numba and "his" portion of > SciPy, and also that could be used by NumPy devs. > > Since the decisions are rather arbitrary, pe

Re: [Cython] CEP1000: Native dispatch through callables

2012-05-05 Thread mark florisson
On 5 May 2012 17:27, Dag Sverre Seljebotn wrote: > On 05/05/2012 01:08 PM, mark florisson wrote: >> >> On 3 May 2012 13:24, Dag Sverre Seljebotn >>  wrote: >>> >>> I'm afraid I'm going to try to kick this thread alive again. I want us to >>

Re: [Cython] Python array support (#113)

2012-05-06 Thread mark florisson
On 5 May 2012 20:50, Stefan Behnel wrote: >>   https://github.com/cython/cython/pull/113 > > This looks ok to me now. There have been objections back when we discussed > the initial patch for array.array support, so what do you think about > merging this in? > > Stefan > __

Re: [Cython] Python array support (#113)

2012-05-06 Thread mark florisson
On 6 May 2012 09:56, mark florisson wrote: > On 5 May 2012 20:50, Stefan Behnel wrote: >>>   https://github.com/cython/cython/pull/113 >> >> This looks ok to me now. There have been objections back when we discussed >> the initial patch for array.array suppo

Re: [Cython] Python array support (#113)

2012-05-06 Thread mark florisson
On 6 May 2012 10:05, Stefan Behnel wrote: > mark florisson, 06.05.2012 10:56: >> On 5 May 2012 20:50, Stefan Behnel wrote: >>>>   https://github.com/cython/cython/pull/113 >>> >>> This looks ok to me now. There have been objections back when we discusse

[Cython] 0.17

2012-05-06 Thread mark florisson
Hey, I think we already have quite a bit of functionality (nearly) ready, after merging some pending pull requests maybe it will be a good time for a 0.17 release? I think it would be good to also document to what extent pypy support works, what works and what doesn't. Stefan, since you added a la

Re: [Cython] 0.17

2012-05-06 Thread mark florisson
On 6 May 2012 19:29, Vitja Makarov wrote: > 2012/5/6 Dag Sverre Seljebotn : >> On 05/06/2012 04:28 PM, mark florisson wrote: >>> >>> Hey, >>> >>> I think we already have quite a bit of functionality (nearly) ready, >>> after merging some pend

Re: [Cython] 0.17

2012-05-06 Thread mark florisson
On 6 May 2012 19:38, Stefan Behnel wrote: > mark florisson, 06.05.2012 16:28: >> I think we already have quite a bit of functionality (nearly) ready, >> after merging some pending pull requests maybe it will be a good time >> for a 0.17 release? I think it would be good to

Re: [Cython] 0.17

2012-05-06 Thread mark florisson
On 6 May 2012 20:41, Matthew Brett wrote: > Hi, > > On Sun, May 6, 2012 at 7:28 AM, mark florisson > wrote: >> Hey, >> >> I think we already have quite a bit of functionality (nearly) ready, >> after merging some pending pull requests maybe it will be a good

Re: [Cython] Fwd: Re: [cython-users] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 12:51, Dag Sverre Seljebotn wrote: > On 05/07/2012 01:48 PM, Dag Sverre Seljebotn wrote: >> >> On 05/07/2012 01:10 PM, Stefan Behnel wrote: >>> >>> Dag Sverre Seljebotn, 07.05.2012 12:40: moving to dev list >>> >>> >>> Makes sense. >>> On 05/07/2012 11:17 AM, Stefan Be

Re: [Cython] Fwd: Re: [cython-users] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 12:10, Stefan Behnel wrote: > Dag Sverre Seljebotn, 07.05.2012 12:40: >> moving to dev list > > Makes sense. > >> On 05/07/2012 11:17 AM, Stefan Behnel wrote: >>> Dag Sverre Seljebotn, 07.05.2012 10:44: On 05/07/2012 07:48 AM, Stefan Behnel wrote: > I wonder why a memory vie

Re: [Cython] Fwd: Re: [cython-users] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 16:48, Dag Sverre Seljebotn wrote: > On 05/07/2012 03:04 PM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 07.05.2012 13:48: >> >>> Here you go: >>> >>> def foo(np.ndarray[double] a, np.ndarray[double] out=None): >>>     if out is None: >>>         out = np.empty_like(a) >> >> >>

Re: [Cython] Fwd: Re: [cython-users] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 17:12, Stefan Behnel wrote: > Dag Sverre Seljebotn, 07.05.2012 18:07: >> On 05/07/2012 06:04 PM, mark florisson wrote: >>> On 7 May 2012 12:10, Stefan Behnel wrote: >>>> BTW, is there a reason why we shouldn't allow a "not None" declar

Re: [Cython] Fwd: Re: [cython-users] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 17:16, mark florisson wrote: > On 7 May 2012 17:12, Stefan Behnel wrote: >> Dag Sverre Seljebotn, 07.05.2012 18:07: >>> On 05/07/2012 06:04 PM, mark florisson wrote: >>>> On 7 May 2012 12:10, Stefan Behnel wrote: >>>>> BTW, is ther

Re: [Cython] 0.17

2012-05-07 Thread mark florisson
On 7 May 2012 17:04, Vitja Makarov wrote: > 2012/5/7 mark florisson : >> On 6 May 2012 20:41, Matthew Brett wrote: >>> Hi, >>> >>> On Sun, May 6, 2012 at 7:28 AM, mark florisson >>> wrote: >>>> Hey, >>>> >>>>

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-07 Thread mark florisson
On 7 May 2012 17:00, Dag Sverre Seljebotn wrote: > On 05/07/2012 04:16 PM, Stefan Behnel wrote: >> >> Stefan Behnel, 07.05.2012 15:04: >>> >>> Dag Sverre Seljebotn, 07.05.2012 13:48: BTW, with the coming of memoryviews, me and Mark talked about just deprecating the "mytype[...]" mea

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-07 Thread mark florisson
On 7 May 2012 18:00, Stefan Behnel wrote: > mark florisson, 07.05.2012 18:28: >> On 7 May 2012 17:00, Dag Sverre Seljebotn wrote: >>> On 05/07/2012 04:16 PM, Stefan Behnel wrote: >>>> Stefan Behnel, 07.05.2012 15:04: >>>>> Dag Sverre Seljebotn, 07.

Re: [Cython] Fwd: Re: [cython-users] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 18:06, Stefan Behnel wrote: > mark florisson, 07.05.2012 18:18: >> On 7 May 2012 17:16, mark florisson wrote: >>> On 7 May 2012 17:12, Stefan Behnel wrote: >>>> Dag Sverre Seljebotn, 07.05.2012 18:07: >>>>> On 05/07/2012 06:04 PM, mar

Re: [Cython] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 17:52, Stefan Behnel wrote: > Dag Sverre Seljebotn, 07.05.2012 17:48: >> On 05/07/2012 03:04 PM, Stefan Behnel wrote: >>> Dag Sverre Seljebotn, 07.05.2012 13:48: >> As far as I can remember (which might be biased towards my personal >> view), the conclusion was that we left t

Re: [Cython] checking for "None" in nogil function

2012-05-07 Thread mark florisson
On 7 May 2012 18:18, mark florisson wrote: > On 7 May 2012 17:52, Stefan Behnel wrote: >> Dag Sverre Seljebotn, 07.05.2012 17:48: >>> On 05/07/2012 03:04 PM, Stefan Behnel wrote: >>>> Dag Sverre Seljebotn, 07.05.2012 13:48: >>>>>>> As far

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-07 Thread mark florisson
On 7 May 2012 19:40, Dag Sverre Seljebotn wrote: > > > mark florisson wrote: > >>On 7 May 2012 17:00, Dag Sverre Seljebotn >>wrote: >>> On 05/07/2012 04:16 PM, Stefan Behnel wrote: >>>> >>>> Stefan Behnel, 07.05.2012 15:04: >>>

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-08 Thread mark florisson
On 8 May 2012 09:49, Stefan Behnel wrote: > Dag Sverre Seljebotn, 08.05.2012 10:36: >> On 05/08/2012 10:18 AM, Stefan Behnel wrote: >>> Dag Sverre Seljebotn, 08.05.2012 09:57: >>>> On 05/07/2012 11:21 PM, mark florisson wrote: >>>>> On 7 May 2012 1

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-08 Thread mark florisson
On 8 May 2012 09:36, Dag Sverre Seljebotn wrote: > On 05/08/2012 10:18 AM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 08.05.2012 09:57: >>> >>> On 05/07/2012 11:21 PM, mark florisson wrote: >>>> >>>> On 7 May 2012 19:40, Dag

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-08 Thread mark florisson
On 8 May 2012 10:22, mark florisson wrote: > On 8 May 2012 09:36, Dag Sverre Seljebotn wrote: >> On 05/08/2012 10:18 AM, Stefan Behnel wrote: >>> >>> Dag Sverre Seljebotn, 08.05.2012 09:57: >>>> >>>> On 05/07/2012 11:21 PM, mark florisson

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-08 Thread mark florisson
On 8 May 2012 09:49, Stefan Behnel wrote: > Dag Sverre Seljebotn, 08.05.2012 10:36: >> On 05/08/2012 10:18 AM, Stefan Behnel wrote: >>> Dag Sverre Seljebotn, 08.05.2012 09:57: >>>> On 05/07/2012 11:21 PM, mark florisson wrote: >>>>> On 7 May 2012 1

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-08 Thread mark florisson
On 8 May 2012 10:47, Dag Sverre Seljebotn wrote: > On 05/08/2012 11:30 AM, Dag Sverre Seljebotn wrote: >> >> On 05/08/2012 11:22 AM, mark florisson wrote: >>> >>> On 8 May 2012 09:36, Dag Sverre Seljebotn >>> wrote: >>>> >>>>

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-08 Thread mark florisson
On 8 May 2012 10:48, Stefan Behnel wrote: > mark florisson, 08.05.2012 11:24: >>>>> Dag Sverre Seljebotn, 08.05.2012 09:57: >>>>>>  1) We NEVER deprecate "np.ndarray[double]", we commit to keeping that in >>>>>> the language. It

[Cython] 0.16.1

2012-05-08 Thread mark florisson
Ok, so for the bugfix release 0.16.1 I propose that everyone cherry picks over its own fixes into the release branch (at least Stefan, since your fixes pertain to your newly merged branches and sometimes to the master branch itself). This branch should not be merged back into master, and any additi

Re: [Cython] 0.16.1

2012-05-08 Thread mark florisson
On 8 May 2012 19:36, mark florisson wrote: > Ok, so for the bugfix release 0.16.1 I propose that everyone cherry > picks over its own fixes into the release branch (at least Stefan, > since your fixes pertain to your newly merged branches and sometimes > to the master branch itself).

Re: [Cython] CF based type inference

2012-05-09 Thread mark florisson
On 9 May 2012 09:02, Vitja Makarov wrote: > 2012/5/9 Stefan Behnel : >> Robert Bradshaw, 09.05.2012 00:12: >>> On Tue, May 8, 2012 at 6:47 AM, Vitja Makarov wrote: 2012/5/8 Stefan Behnel: > Vitja has rebased the type inference on the control flow, so I wonder if > this will enable us

Re: [Cython] 0.16.1

2012-05-09 Thread mark florisson
On 9 May 2012 07:41, Stefan Behnel wrote: > Robert Bradshaw, 09.05.2012 00:16: >> On Tue, May 8, 2012 at 12:04 PM, Vitja Makarov wrote: >>> 2012/5/8 mark florisson: >>>> On 8 May 2012 19:36, mark florisson wrote: >>>>> Ok, so for the bugfix

Re: [Cython] 0.16.1

2012-05-09 Thread mark florisson
On 9 May 2012 08:49, Stefan Behnel wrote: > Stefan Behnel, 09.05.2012 08:41: >> Robert Bradshaw, 09.05.2012 00:16: >>> If we're looking at doing 0.17 soon, lets just do that. >> I think it's close enough to be released. > > ... although one thing I just noticed is that the "numpy_memoryview" test

Re: [Cython] callable() optimization

2012-05-09 Thread mark florisson
On 9 May 2012 09:02, Stefan Behnel wrote: > Vitja Makarov, 09.05.2012 09:43: >> 2012/5/9 Stefan Behnel : >>> Vitja Makarov, 08.05.2012 13:27: I've noticed regression related to callable() optimization. https://github.com/cython/cython/commit/a40112b0461eae5ab22fbdd07ae798d4a72ff523

Re: [Cython] CF based type inference

2012-05-09 Thread mark florisson
On 9 May 2012 09:28, mark florisson wrote: > On 9 May 2012 09:02, Vitja Makarov wrote: >> 2012/5/9 Stefan Behnel : >>> Robert Bradshaw, 09.05.2012 00:12: >>>> On Tue, May 8, 2012 at 6:47 AM, Vitja Makarov wrote: >>>>> 2012/5/8 Stefan Behnel: >&

Re: [Cython] CF based type inference

2012-05-09 Thread mark florisson
On 9 May 2012 13:39, Vitja Makarov wrote: > 2012/5/9 Vitja Makarov : >> 2012/5/9 Stefan Behnel : >>> Stefan Behnel, 08.05.2012 14:24: Vitja has rebased the type inference on the control flow >>> >>> On a related note, is this fixable now? >>> >>>  def test(): >>>      x = 1    # inferred as i

Re: [Cython] CF based type inference

2012-05-09 Thread mark florisson
On 9 May 2012 14:16, Vitja Makarov wrote: > 2012/5/9 Vitja Makarov : >> 2012/5/9 Vitja Makarov : >>> 2012/5/9 mark florisson : >>>> On 9 May 2012 13:39, Vitja Makarov wrote: >>>>> 2012/5/9 Vitja Makarov : >>>>>> 2012/5/9 Stefan Behne

Re: [Cython] CF based type inference

2012-05-09 Thread mark florisson
On 9 May 2012 16:13, Stefan Behnel wrote: > Dag Sverre Seljebotn, 08.05.2012 18:52: >> Vitja Makarov wrote: >>> def partial_validity(): >>>   """ >>>   >>> partial_validity() >>>   ('str object', 'double', 'str object') >>>   """ >>>   a_1 = 1.0 >>>   b = a_1 + 2   # definitely double >>>   a_2 =

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-09 Thread mark florisson
On 9 May 2012 19:35, Robert Bradshaw wrote: > On Tue, May 8, 2012 at 2:48 AM, Stefan Behnel wrote: >> mark florisson, 08.05.2012 11:24: >>>>>> Dag Sverre Seljebotn, 08.05.2012 09:57: >>>>>>>  1) We NEVER deprecate "np.ndarray[double]",

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-09 Thread mark florisson
On 9 May 2012 19:55, Stefan Behnel wrote: > mark florisson, 09.05.2012 20:45: >> You can also use newaxis indexing or transpose the view > > What is "newaxis indexing"? > > Stefan > ___ > cython-devel mailing

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-09 Thread mark florisson
On 9 May 2012 19:56, Robert Bradshaw wrote: > On Tue, May 8, 2012 at 3:35 AM, mark florisson > wrote: >> On 8 May 2012 10:47, Dag Sverre Seljebotn wrote: >>> >>> After some thinking I believe I can see more clearly where Mark is coming >>> from. To s

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-09 Thread mark florisson
On 9 May 2012 20:08, mark florisson wrote: > On 9 May 2012 19:56, Robert Bradshaw wrote: >> On Tue, May 8, 2012 at 3:35 AM, mark florisson >> wrote: >>> On 8 May 2012 10:47, Dag Sverre Seljebotn >>> wrote: >>>> >>>> After some think

Re: [Cython] CF based type inference

2012-05-10 Thread mark florisson
On 10 May 2012 08:27, Vitja Makarov wrote: > 2012/5/10 Stefan Behnel : >> Vitja Makarov, 08.05.2012 15:47: >>> 2012/5/8 Stefan Behnel: Vitja has rebased the type inference on the control flow, so I wonder if this will enable us to properly infer this:  def partial_validity(): >

Re: [Cython] buffer syntax vs. memory view syntax

2012-05-10 Thread mark florisson
On 10 May 2012 08:37, Dag Sverre Seljebotn wrote: > On 05/09/2012 09:08 PM, mark florisson wrote: >> >> On 9 May 2012 19:56, Robert Bradshaw  wrote: >>> >>> On Tue, May 8, 2012 at 3:35 AM, mark florisson >>>  wrote: >>>> >

<    1   2   3   4   5   6   7   >