Re: [Cython] Preparations for Cython 0.26.1 and 0.27

2017-08-02 Thread Kevin Thornton
looking into for 0.26.1: > > https://github.com/cython/cython/issues/1790 > > https://github.com/cython/cython/issues/1788 > > Anything else of importance? > > Stefan > ___ > cython-devel mailing list > cython-devel@python.o

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 newe

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

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

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

2016-08-19 Thread Kevin Thornton
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 what I'm guessing to be increased complexity are: 1. Non-type template parameters. 2. "rvalue" references for standalone functions and

Re: [Cython] Cython alpha 0.24

2016-03-11 Thread Kevin Thornton
Hi, I just built a large project with the alpha version. All looks good. The only new/odd thing is a lot of warnings of this flavor: warning: View.MemoryView:219:4: 'property memview:' syntax is deprecated, use '@property' warning: View.MemoryView:536:4: 'property T:' syntax is deprecated, use

[Cython] Cython 0.23.4 bug: C++ pairs with unsigned values inside other templates

2016-02-11 Thread Kevin Thornton
Hi, I've come across an odd bug while creating interfaces to existing C++ functions via Cython. If a C++ pair is contained inside of another template type, the pair cannot contain unsigned integers unless a typedef is provided for unsigned. Examples: #This works: cdef vector[pair[char,char]] do

Re: [Cython] C++ structs, namespace, and auto-conversion of struct to dict

2016-02-02 Thread Kevin Thornton
Great--thanks! On Tue, Feb 2, 2016 at 12:56 AM Robert Bradshaw wrote: > On Mon, Feb 1, 2016 at 5:03 PM, Kevin Thornton wrote: > > Hi, > > > > I recently ran into an issue where I found that Cython will not generate > > code to auto-convert structs do dicts if th

Re: [Cython] Cython 0.23.4: Crash with Template Stuff

2016-02-01 Thread Kevin Thornton
like a > random crash? > > -- Elizabeth > > > > On Mon, Feb 1, 2016 at 8:08 PM, Kevin Thornton wrote: > >> Without knowing more about the "blitz" stuff, it is hard to provide >> detailed help. >> >> However, it looks like you have a templa

Re: [Cython] Cython 0.23.4: Crash with Template Stuff

2016-02-01 Thread Kevin Thornton
Without knowing more about the "blitz" stuff, it is hard to provide detailed help. However, it looks like you have a template taking a non-typename as a parameter, which is not currently supported in Cython. In other words, the 1 in [double,1] is not a type name, and that causes Cython to give up

[Cython] C++ structs, namespace, and auto-conversion of struct to dict

2016-02-01 Thread Kevin Thornton
Hi, I recently ran into an issue where I found that Cython will not generate code to auto-convert structs do dicts if the struct is declared in a C++ namespace. The issue has also been discussed here: http://stackoverflow.com/questions/29603562/auto-conversion-of-structs-to-dicts-in-cython While

[Cython] Exposing C++'s

2015-10-16 Thread Kevin Thornton
Hello, I was wanting to use C++s' back_inserter in Cython, and I got it working. I'm writing the list to ask about what more I should do before submitting a pull request. In short, the following definitions were sufficient: ##Define the basic iterator types (this is incomplete) cdef extern from