Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Greg Ewing
Robert Bradshaw wrote: Brevity, especially if the signature is inlined. (Encoding could take care of this by, e.g. ignoring the redundant opening, or we could just write di=d.) Yes, I was thinking in terms of replacing the paren with some other character, rather than inserting more parens. --

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Greg Ewing
Stefan Behnel wrote: It wasn't really a proposed syntax, I guess, more of a way to write down an example. That's okay, although you might want to mention in the PEP that the actual syntax is yet to be determined. Being a PEP, anything it says tends to come across as being a specification other

[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] 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 need to own it (or be slower

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Stefan Behnel
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 need to own it (or be slower > and always own it), and acquire the buffer throu

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    (so that arrays with strides and shape can

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Dag Sverre Seljebotn
Nathaniel Smith wrote: >On Sun, Apr 15, 2012 at 9:07 AM, Dag Sverre Seljebotn > wrote: >> On 04/15/2012 09:30 AM, Stefan Behnel wrote: >>> >>> Dag Sverre Seljebotn, 15.04.2012 08:58: Ah, Cython objects. Didn't think of that. More below. On 04/14/2012 11:02 PM, Stefan Behnel

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Dag Sverre Seljebotn
Nathaniel Smith wrote: >On Sun, Apr 15, 2012 at 9:15 AM, Dag Sverre Seljebotn > wrote: >> Do you really think it complicates the spec? SHA-1 is pretty >standard, and >> Python ships with hashlib (the hashing part isn't performance >critical). >> >> I prefer hashing to string-interning as it can

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Nathaniel Smith
On Sun, Apr 15, 2012 at 9:07 AM, Dag Sverre Seljebotn wrote: > On 04/15/2012 09:30 AM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 15.04.2012 08:58: >>> >>> Ah, Cython objects. Didn't think of that. More below. >>> >>> On 04/14/2012 11:02 PM, Stefan Behnel wrote: thanks for writing

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Nathaniel Smith
On Sun, Apr 15, 2012 at 9:15 AM, Dag Sverre Seljebotn wrote: > Do you really think it complicates the spec? SHA-1 is pretty standard, and > Python ships with hashlib (the hashing part isn't performance critical). > > I prefer hashing to string-interning as it can still be done compile-time > etc.

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Dag Sverre Seljebotn
On 04/15/2012 10:07 AM, Dag Sverre Seljebotn wrote: On 04/15/2012 09:30 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 15.04.2012 08:58: Ah, Cython objects. Didn't think of that. More below. On 04/14/2012 11:02 PM, Stefan Behnel wrote: thanks for writing this up. Comments inline as I read thr

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Dag Sverre Seljebotn
On 04/15/2012 09:39 AM, Robert Bradshaw wrote: On Sat, Apr 14, 2012 at 11:58 PM, Dag Sverre Seljebotn wrote: Ah, Cython objects. Didn't think of that. More below. On 04/14/2012 11:02 PM, Stefan Behnel wrote: Hi, thanks for writing this up. Comments inline as I read through it. Dag Sverre

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Dag Sverre Seljebotn
On 04/15/2012 09:30 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 15.04.2012 08:58: Ah, Cython objects. Didn't think of that. More below. On 04/14/2012 11:02 PM, Stefan Behnel wrote: thanks for writing this up. Comments inline as I read through it. Dag Sverre Seljebotn, 14.04.2012 21:08: ea

Re: [Cython] [cython-users] Cython 0.16 RC 1

2012-04-15 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 9:14 PM, Al Danial wrote: > On Thu, Apr 12, 2012 at 7: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 > >> If there are an

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 11:58 PM, Dag Sverre Seljebotn wrote: > Ah, Cython objects. Didn't think of that. More below. > > > On 04/14/2012 11:02 PM, Stefan Behnel wrote: >> >> Hi, >> >> thanks for writing this up. Comments inline as I read through it. >> >> Dag Sverre Seljebotn, 14.04.2012 21:08: >

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Stefan Behnel
Dag Sverre Seljebotn, 15.04.2012 08:58: > Ah, Cython objects. Didn't think of that. More below. > > On 04/14/2012 11:02 PM, Stefan Behnel wrote: >> thanks for writing this up. Comments inline as I read through it. >> >> Dag Sverre Seljebotn, 14.04.2012 21:08: >>> each described by a function point

Re: [Cython] CEP1000: Native dispatch through callables

2012-04-15 Thread Robert Bradshaw
On Sat, Apr 14, 2012 at 11:39 PM, Stefan Behnel wrote: > Robert Bradshaw, 15.04.2012 08:32: >> On Sat, Apr 14, 2012 at 11:16 PM, Stefan Behnel wrote: >>> Robert Bradshaw, 15.04.2012 07:59: On Sat, Apr 14, 2012 at 2:00 PM, mark florisson wrote: > There may be a lot of promotion/demotion (y