[sage-devel] Re: C++ and Cython

2009-07-29 Thread Robert Bradshaw
On Jul 29, 2009, at 11:05 AM, Dag Sverre Seljebotn wrote: > Robert Bradshaw wrote: >> Very good point. I've forwarded this onto Danilo who's working on C++ >> support. >> >> On Jul 23, 2009, at 12:56 PM, Martin Albrecht wrote: >> 1) Do you have any priorities for features you'd like to see s

[sage-devel] Re: C++ and Cython

2009-07-29 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: > Robert Bradshaw wrote: >> Very good point. I've forwarded this onto Danilo who's working on C++ >> support. >> >> On Jul 23, 2009, at 12:56 PM, Martin Albrecht wrote: >> 1) Do you have any priorities for features you'd like to see sooner rather than later?

[sage-devel] Re: C++ and Cython

2009-07-29 Thread Dag Sverre Seljebotn
Robert Bradshaw wrote: > Very good point. I've forwarded this onto Danilo who's working on C++ > support. > > On Jul 23, 2009, at 12:56 PM, Martin Albrecht wrote: > >>> 1) Do you have any priorities for features you'd like to see sooner >>> rather than later? >> While debugging and fixing an i

[sage-devel] Re: C++ and Cython

2009-07-25 Thread Robert Bradshaw
Very good point. I've forwarded this onto Danilo who's working on C++ support. On Jul 23, 2009, at 12:56 PM, Martin Albrecht wrote: > >> 1) Do you have any priorities for features you'd like to see sooner >> rather than later? > > While debugging and fixing an issue in the current PolyBoRi wra

[sage-devel] Re: C++ and Cython

2009-07-23 Thread Martin Albrecht
> 1) Do you have any priorities for features you'd like to see sooner > rather than later? While debugging and fixing an issue in the current PolyBoRi wrapper with Alexander Dreyer we noticed the following behaviour in Cython which doesn't mix well with C++: Consider the following code: cdef

[sage-devel] Re: C++ and Cython

2009-05-01 Thread Alexander Dreyer
Hello Robert, > 1) Do you have any priorities for features you'd like to see sooner > rather than later? > > 2) What would be *your* preferred syntax for declaring a templated, > operator-overloading class in C++? I just wanted to mention, how easily C++ classes could be wrapped using boost::pyt

[sage-devel] Re: C++ and Cython

2009-04-27 Thread Brian Granger
>> it'd be nice to have some easier way to handle C++ subclasses in >> Cython. I don't know how it should be done though. > > Good point. If we can declare inheritance information, I believe we > can use the same type infrastructure we use for cdef classes to > handle this smootly. I second this.

[sage-devel] Re: C++ and Cython

2009-04-27 Thread Ondrej Certik
On Mon, Apr 27, 2009 at 2:46 PM, Robert Bradshaw wrote: > > On Apr 26, 2009, at 12:21 PM, Ondrej Certik wrote: >>    cdef struct c_WeakForm "WeakForm": >>        void add_biform(int i, int j, ...) >>        void add_biform_surf(int i, int j, ...) >>        void add_liform(int i, ...) >>        vo

[sage-devel] Re: C++ and Cython

2009-04-27 Thread Robert Bradshaw
On Apr 26, 2009, at 12:21 PM, Ondrej Certik wrote: > > On Sun, Apr 26, 2009 at 2:27 AM, Robert Bradshaw > wrote: >> >> On Apr 26, 2009, at 2:08 AM, Ondrej Certik wrote: >>> So when I am exposing a new class, i it's quite a lot of typing, >>> especially the name of the C++ class has to be copied

[sage-devel] Re: C++ and Cython

2009-04-26 Thread Ondrej Certik
On Sun, Apr 26, 2009 at 2:27 AM, Robert Bradshaw wrote: > > On Apr 26, 2009, at 2:08 AM, Ondrej Certik wrote: >> So when I am exposing a new class, i it's quite a lot of typing, >> especially the name of the C++ class has to be copied over and over >> again (e.g. in the definition of the new cons

[sage-devel] Re: C++ and Cython

2009-04-26 Thread Robert Bradshaw
On Apr 26, 2009, at 2:08 AM, Ondrej Certik wrote: > Hi Robert, > > On Sat, Apr 25, 2009 at 2:12 PM, Robert Bradshaw > wrote: >> >> This summer Danilo Freitas got accepted to work on better C++ support >> for Cython as a GSoC project. This is a great opportunity to make it >> easier to wrap and u

[sage-devel] Re: C++ and Cython

2009-04-26 Thread Ondrej Certik
Hi Robert, On Sat, Apr 25, 2009 at 2:12 PM, Robert Bradshaw wrote: > > This summer Danilo Freitas got accepted to work on better C++ support > for Cython as a GSoC project. This is a great opportunity to make it > easier to wrap and use C++ code from Python. We are still in the > planning stages