Re: [Python-Dev] reference counting in Py3K

2005-09-08 Thread Josiah Carlson
Fernando Perez [EMAIL PROTECTED] wrote: Josiah Carlson wrote: Here's a perspective from the trenches as it were. I've been writing quite a bit of code, initially all in Python (27k lines in the last year or so). It worked reasonably well and fast. It wasn't fast enough. I needed a

Re: [Python-Dev] reference counting in Py3K

2005-09-08 Thread Fernando Perez
Josiah Carlson wrote: Fernando Perez [EMAIL PROTECTED] wrote: Would you care to elaborate on the reasons behind the 'ick'? I'm a big fan of weave.inline and have used it very successfully for my own needs, so I'm genuinely curious (as I tend to teach its use, I like to know of potential

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Phillip J. Eby
At 09:58 PM 9/6/2005 -0700, Guido van Rossum wrote: On 9/6/05, Greg Ewing [EMAIL PROTECTED] wrote: A better plan would be to build something akin to Pyrex into the scheme of things, so that all the refcount/GC issues are taken care of automatically. That sounds exciting. I have to admit

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Michael Hudson
Greg Ewing [EMAIL PROTECTED] writes: Guido van Rossum wrote: While we're on the subject of Python 3000, what's the chance that reference counting when calling C functions from Python will go away? We'd have to completely change the implementation. We're not planning on that. Also, the

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Josiah Carlson
Guido van Rossum [EMAIL PROTECTED] wrote: On 9/6/05, Greg Ewing [EMAIL PROTECTED] wrote: A better plan would be to build something akin to Pyrex into the scheme of things, so that all the refcount/GC issues are taken care of automatically. That sounds exciting. I have to admit that

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Fredrik Lundh
Josiah Carlson wrote: Perhaps a bit into the future, extending import semantics to notice .pyx files, compare their checksum against a stored md5 in the compiled .pyd/.so, and automatically recompiling them if they (or their includes) have changed: +10 (I end up doing this kind of thing by

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Donovan Baarda
On Wed, Sep 07, 2005 at 02:01:01AM -0400, Phillip J. Eby wrote: [...] Just an FYI; Pyrex certainly makes it relatively painless to write code that interfaces with C, but it doesn't do much for performance, and naively-written Pyrex code can actually be slower than carefully-optimized Python

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Christopher Armstrong
On 9/7/05, Josiah Carlson [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] wrote: On 9/6/05, Greg Ewing [EMAIL PROTECTED] wrote: A better plan would be to build something akin to Pyrex into the scheme of things, so that all the refcount/GC issues are taken care of

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Josiah Carlson
Christopher Armstrong [EMAIL PROTECTED] wrote: On 9/7/05, Josiah Carlson [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] wrote: On 9/6/05, Greg Ewing [EMAIL PROTECTED] wrote: A better plan would be to build something akin to Pyrex into the scheme of things, so that all

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Greg Ewing
Guido van Rossum wrote: How stable is Pyrex? Would you be willing to integrate it thoroughly with the Python source tree, to the point of contributing the code to the PSF? (Without giving up ownership or responsibility for its maintenance.) It's reasonably stable now, I think, although some

Re: [Python-Dev] reference counting in Py3K

2005-09-07 Thread Greg Ewing
Phillip J. Eby wrote: Just an FYI; Pyrex certainly makes it relatively painless to write code that interfaces with C, but it doesn't do much for performance, and naively-written Pyrex code can actually be slower than carefully-optimized Python code. So, for existing modules that were

[Python-Dev] reference counting in Py3K

2005-09-06 Thread Nick Jacobson
While we're on the subject of Python 3000, what's the chance that reference counting when calling C functions from Python will go away? To me this is one of the few annoyances I have with Python. I know that Ruby somehow gets around the need for ref. counting.

Re: [Python-Dev] reference counting in Py3K

2005-09-06 Thread Guido van Rossum
On 9/6/05, Nick Jacobson [EMAIL PROTECTED] wrote: While we're on the subject of Python 3000, what's the chance that reference counting when calling C functions from Python will go away? We'd have to completely change the implementation. We're not planning on that. To me this is one of the

Re: [Python-Dev] reference counting in Py3K

2005-09-06 Thread Steve Holden
Nick Jacobson wrote: While we're on the subject of Python 3000, what's the chance that reference counting when calling C functions from Python will go away? To me this is one of the few annoyances I have with Python. I know that Ruby somehow gets around the need for ref. counting.

Re: [Python-Dev] reference counting in Py3K

2005-09-06 Thread Bob Ippolito
On Sep 6, 2005, at 12:13 PM, Steve Holden wrote: Nick Jacobson wrote: While we're on the subject of Python 3000, what's the chance that reference counting when calling C functions from Python will go away? To me this is one of the few annoyances I have with Python. I know that Ruby

Re: [Python-Dev] reference counting in Py3K

2005-09-06 Thread Greg Ewing
Guido van Rossum wrote: While we're on the subject of Python 3000, what's the chance that reference counting when calling C functions from Python will go away? We'd have to completely change the implementation. We're not planning on that. Also, the refcounting would have to be replaced by

Re: [Python-Dev] reference counting in Py3K

2005-09-06 Thread Guido van Rossum
On 9/6/05, Greg Ewing [EMAIL PROTECTED] wrote: A better plan would be to build something akin to Pyrex into the scheme of things, so that all the refcount/GC issues are taken care of automatically. That sounds exciting. I have to admit that despite hearing many enthusiastic reviews, I've never

Re: [Python-Dev] reference counting in Py3K

2005-09-06 Thread Delaney, Timothy (Tim)
Guido van Rossum wrote: How stable is Pyrex? Would you be willing to integrate it thoroughly with the Python source tree, to the point of contributing the code to the PSF? (Without giving up ownership or responsibility for its maintenance.) +100 I would be *strongly* in favour of this.