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

2016-08-21 Thread Greg Ewing
Robert Bradshaw wrote: Name mangling is done for the standard reasons--to avoid possible conflicts with all other symbols that may be defined. The main reason for mangling names is that top-level declarations in Cython belong to a module namespace, whereas C just has a single namespace for all

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

2016-08-21 Thread Jason Newton
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 course for many wrappings it often > takes non-trivial knowl

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

2016-08-21 Thread Jason Newton
On Sun, Aug 21, 2016 at 1:36 AM, Ian Henriksen < insertinterestingnameh...@gmail.com> wrote: > >> Remember - cython is "the way" that comes up for how to glue C/C++ into >> python these days, not just the program in cish python frontend for speed. >> >> > There's some truth to the issues you raise

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

2016-08-21 Thread Jason Newton
ctypes/cffi aren't in the same class for comparison. Just at the start of the list is basically a restriction from C++ name mangling fouling things up. Pybindgen uses a programmable model to generate bindings for existing functions/classes only. It's a fair bit different from anything I had in m

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

2016-08-21 Thread Stefan Behnel
Robert Bradshaw schrieb am 21.08.2016 um 11:30: > You ask at the beginning of the email whether time has vindicated our > philosophy. I think, based on the mindshare vs. these other attempts > at integrating with C, in large part it has. It has served us and our > users well; we will strive to stay

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

2016-08-21 Thread Stefan Behnel
Robert Bradshaw schrieb am 21.08.2016 um 11:11: > On Fri, Aug 19, 2016 at 12:32 PM, Jason Newton wrote: >> PyInline's last news update was in 2004 where the author gives a "Hats of[f] >> to PyRex", prior to that only a few blog entries in 2001/2002, I've not come >> across any project using it but

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

2016-08-21 Thread Robert Bradshaw
On Fri, Aug 19, 2016 at 11:19 AM, Jason Newton wrote: > > On Fri, Aug 19, 2016 at 5:36 AM, Robert Bradshaw wrote: >> >> On Thu, Aug 18, 2016 at 12:05 PM, Jason Newton wrote: >> > Accidentally posted to an already-opened tab for the cython-users ML >> > yesterday, moving to here. Following up fro

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

2016-08-21 Thread Robert Bradshaw
On Fri, Aug 19, 2016 at 12:32 PM, Jason Newton wrote: > > > On Fri, Aug 19, 2016 at 3:19 PM, William Stein wrote: >> >> On Fri, Aug 19, 2016 at 8:19 AM, Jason Newton wrote: >> > You must realize that almost any other python driven way to compile >> > c-code >> > in the spirit these projects do i