Re: [matplotlib-devel] cxx improvements

2007-08-10 Thread Michael Droettboom
Christopher Barker wrote: >> http://www.artima.com/weblogs/viewpost.jsp?thread=95863 > > Thanks >> (It was in Mike's original message.) > > I must have missed that. Guido says: > > """ > I've yet to see an extension module using SWIG that doesn't make me > think it was a mistake to use SWIG ins

Re: [matplotlib-devel] cxx improvements

2007-08-10 Thread Michael Droettboom
Eric Firing wrote: > Michael Droettboom wrote: >> I appreciate the way it fits so nicely into C++ ideas about RAII and >> exceptions -- but if you're not a C++ guy, that pro is probably a con. > What is RAII? "Resource Aquisition is Initialization" -- It's a C++ memory management technique where

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Christopher Barker
> http://www.artima.com/weblogs/viewpost.jsp?thread=95863 Thanks > (It was in Mike's original message.) I must have missed that. Guido says: """ I've yet to see an extension module using SWIG that doesn't make me think it was a mistake to use SWIG instead of manually written wrappers. The extr

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Eric Firing
Christopher Barker wrote: > > Eric Firing wrote: >> Swig: >> GvR's comments are interesting. > > Do you have a pointer to those? I'd love to see them. http://www.artima.com/weblogs/viewpost.jsp?thread=95863 (It was in Mike's original message.) Eric ---

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Eric Firing
Michael Droettboom wrote: [...] > > I think the small amount of support is a valid concern, particularly as > we move toward Py3k, if no one steps up to the plate to help with the > migration. Do you have a sense of how difficult that migration would be? > > I appreciate the way it fits so ni

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Christopher Barker
Michael Droettboom wrote: > Pyrex is "fun to use" and it allows code to be more gradually migrated > from Python to C. We would need to take care to not add another > run-time dependency for users. There are no run-time dependencies with Pyrex -- it generates C code, which is then compiled. >

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Christopher Barker
Eric Firing wrote: > Swig: > GvR's comments are interesting. Do you have a pointer to those? I'd love to see them. My thoughts on SWIG: It's real strength is that, being automated, it can be used to wrap large libraries, particularly ones that are constantly evolving (wxPython). Another one

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Michael Droettboom
I don't mind this going on the list with the warning that I was not trying to start any sort of anti-SWIG movement -- These are just my first impressions, and at the end of the day I may feel differently. I think you're *dead on* that personal experience and preferences have a lot to do with h

Re: [matplotlib-devel] cxx improvements

2007-08-09 Thread Eric Firing
Mike, I hope you don't mind my including the devel list on this; I think it is a very important topic (although it may be one that ends up coming down to each individual's personal experience and preferences). The reasons pycxx worries me are: 0) C++ worries me in general--I know lots of wonder