[Cython] Merging of the ctypes backend branch

2011-12-17 Thread Romain Guillebert
branch and run the test suite. I think it's better to do c) but the test results shouldn't mix with the results of the other backends. What do you think ? Romain ___ cython-devel mailing list cython-devel@python.org http://mail.python.o

Re: [Cython] Cython-ctypes branch

2011-10-18 Thread Romain Guillebert
ding modules is not trivial, the entire program must be type-inferable (which probably isn't the case of most Cython programs), global variables are considered constants, and I think (don't quote me) that the JIT doesn't work on rpython code. I have no idea on the speedup/s

Re: [Cython] CTypes backend for Cython Status

2011-09-09 Thread Romain Guillebert
Hi Stefan On Fri, Sep 09, 2011 at 10:35:20AM +0200, Stefan Behnel wrote: > Hi Romain, > > thanks for the feedback. > > Romain Guillebert, 08.09.2011 06:18: > >The Google Summer of Code has ended and I didn't give the current status > >to anyone yet (I was very b

[Cython] CTypes backend for Cython Status

2011-09-07 Thread Romain Guillebert
esponding to a macro - Pointer to functions Some of them are trivial, others just require good ideas and macros demands a big amount of work. I'm still working on it and if someone wants to give a hand, I'll be happy to explain what I've done. Thanks Romain _

[Cython] Cython bug ?

2011-08-11 Thread Romain Guillebert
Hi I tried to compiled Demos/primes.pyx using the ctypes backend and I think I've found a bug : The Entry for the kmax parameter does not set is_arg to 1. However if I turn the def into a cdef, it works fine. Is this a bug or a known hack ? Thanks R

Re: [Cython] Transformation of pxds

2011-07-25 Thread Romain Guillebert
Cython/Compiler/ExprNodes.py Is this useful (since I don't think it has anything to do with expression analysis) and do you have an idea on how I can solve this (my first idea is : extend the class to disable the effect of this method but it's more a hack than anything else) ? Che

[Cython] Cython backend aiming PyPy Status

2011-07-05 Thread Romain Guillebert
Hi I created a blog post summarizing what I've done the last few weeks on the Cython backend aiming PyPy. It's located at this URL : http://rguillebert.blogspot.com/2011/07/cython-backend-aiming-pypy-status.html Cheers Romain ___ cython-dev

[Cython] [GSoC] CTypes backend for Cython aiming PyPy - Week 2

2011-06-06 Thread Romain Guillebert
Hi I summarized the second week of my Summer of Code project in this blog post: http://rguillebert.blogspot.com/2011/06/cython-backend-aiming-pypy-week-2.html Cheers Romain ___ cython-devel mailing list cython-devel@python.org http://mail.python.org

Re: [Cython] [GSoC] Blog post regarding the Cython backend aiming PyPy

2011-05-31 Thread Romain Guillebert
t libraries > like this: '# distutils: libraries = spam eggs' at the top of the > file. > > Cheers, > > Mark Hi Mark For the moment, I try to handle the standard case : call a function with C basic types, then add structures and pass by poi

[Cython] [GSoC] Blog post regarding the Cython backend aiming PyPy

2011-05-30 Thread Romain Guillebert
Hi I've posted and article on my blog that explains what I've done during the community bonding period and the first week of the Google Summer of Code : http://rguillebert.blogspot.com/2011/05/cython-backend-aiming-pypy-week-1.html Che

[Cython] [GSoC] Blog post regarding the Cython backend aiming PyPy

2011-05-30 Thread Romain Guillebert
Hi I've posted and article on my blog that explains what I've done during the community bonding period and the first week of the Google Summer of Code : http://rguillebert.blogspot.com/2011/05/cython-backend-aiming-pypy-week-1.html Che

[Cython] [GSoC] Blog post regarding the Cython backend aiming PyPy

2011-05-30 Thread Romain Guillebert
Hi I've posted and article on my blog that explains what I've done during the community bonding period and the first week of the Google Summer of Code : http://rguillebert.blogspot.com/2011/05/cython-backend-aiming-pypy-week-1.html Che

Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Romain Guillebert
ot;external" declarations? I > guess so, even if they may be shared between modules. There's 2 possibilities I think : - For each file we generate the wrapping functions - For each pxd file, generate a file containing the wrapping functions Romain

Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Romain Guillebert
On Tue, May 24, 2011 at 06:56:19AM +0200, Stefan Behnel wrote: > Romain Guillebert, 23.05.2011 20:33: > >I'm doing the PyPy backend for Cython Summer of Code project and I would > >like to know if there is a way of getting the AST Node responsible for > >the declaration

[Cython] Scope resolution in a Visitor

2011-05-23 Thread Romain Guillebert
traversing the function call, I would like to get the function declaration node. Is there already something to do that ? Cheers Romain ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] [GSoC] Python backend for Cython using PyPy's FFI

2011-04-18 Thread Romain Guillebert
t can be rather inefficient though since we need to do an if/else to compare the value we want to set with every C globals). Do you think I'm on the right way ? Thanks Romain ___ cython-devel mailing list cython-devel@python.org http://mail.python.

Re: [Cython] [GSoC] Python backend for Cython using PyPy's FFI

2011-04-07 Thread Romain
Hi again PyPy has functions to parse C headers to get macros and constants so I could create C functions to wrap the macros and probably inline constants in the Python part of the wrapper. This doesn't solve the problem of ifdefs but this is a start. Cheers Romain 2011/4/7 Carl Witty >

[Cython] [GSoC] Python backend for Cython using PyPy's FFI

2011-04-07 Thread Romain Guillebert
people to port their Cython code to PyPy. For the moment I've been mostly in touch with the PyPy people and they seem happy with my proposal. Of course I'm available for questions. Cheers Romain ___ cython-devel mailing list cython-d