Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Robert Bradshaw
On Mon, Aug 22, 2016 at 9:44 PM, Robert Bradshaw wrote: > And it would be a step back > for the nice auto-conversion facilities you care about, e.g. > > py_func(c_func(py_value)) > > would become > > c_value = py_value > cdef some_type c_ret > inline_cpp "c_ret = c_func(c_value)"

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Robert Bradshaw
On Mon, Aug 22, 2016 at 4:48 PM, Jason Newton wrote: > > Bare in mind that was then, and while I'm not Cython developer level I do > have a better idea of how Cython works now, possibly better than your > average user. I've thought about this problem and the state of the overall > C++ python bind

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Jason Newton
On Mon, Aug 22, 2016 at 3:26 PM, Robert Bradshaw wrote: > > To clarify, I'm coming from the case where I > > didn't read the whole tutorial/docs before being faced with pyx in the > > projects I previously mentioned, while on tight turn around time - I was > not > > able to grok in that context.

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Robert Bradshaw
On Mon, Aug 22, 2016 at 7:44 AM, Kevin Thornton wrote: > I actually just realized another nagging issue with C++/Cython: member > typedefs are not supported: > > cdef vector[T]: > ctypedef size_t size_type > > These "scoped" typedefs are very widely-used. We can live without it, and > we ha

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Robert Bradshaw
On Sun, Aug 21, 2016 at 7:26 AM, Jason Newton wrote: > > On Sun, Aug 21, 2016 at 5:30 AM, Robert Bradshaw wrote: >> >> In my experience Cython has generally been fairly easy to pick up for >> people who already know Python. And Python often easy to pick up for >> people who already know C/C++. Of

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Kevin Thornton
I actually just realized another nagging issue with C++/Cython: member typedefs are not supported: cdef vector[T]: ctypedef size_t size_type These "scoped" typedefs are very widely-used. We can live without it, and we have been, but while we're making a list.. :) --Kevin On Sat, Aug 20,

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Kevin Thornton
On Sat, Aug 20, 2016 at 11:15 PM Robert Bradshaw wrote: > On Fri, Aug 19, 2016 at 9:34 AM, Kevin Thornton wrote: > > Hi Robert, > > > > Related to this point, I think there are three important features that > > Cython would benefit from, as far as C++11 and newer are concerned. In > > order of

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-22 Thread Kevin Thornton
On Sat, Aug 20, 2016 at 11:15 PM Robert Bradshaw wrote: > On Fri, Aug 19, 2016 at 9:34 AM, Kevin Thornton wrote: > > Hi Robert, > > > > Related to this point, I think there are three important features that > > Cython would benefit from, as far as C++11 and newer are concerned. In > > order of