[Cython] Merging of the ctypes backend branch

2011-12-17 Thread Romain Guillebert
Hi everyone I rebased the ctypes backend branch to the last cython commit, and I wondered how the branch should be merged with the main cython repository. I see 3 options : a) upload the branch without merging it b) merge the branch but not run the test suite on ctypes by default or c) merge the b

Re: [Cython] Cython-ctypes branch

2011-10-18 Thread Romain Guillebert
Hi I'll try to do that this week, I agree that it's better to get this branch merged. Rpython isn't suitable at all for this kind of use case because you have to recompile the entire PyPy executable each time you change a library (long compile time and big memory consumption), loading modules is

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
Hi The Google Summer of Code has ended and I didn't give the current status to anyone yet (I was very busy with a report I had to write for my university). There is still work to do on the project (there was more work than I expected, especially because of semantic differences between Cython and

[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 Romain _

Re: [Cython] Transformation of pxds

2011-07-25 Thread Romain Guillebert
Hi I can now compile pxd files, but I have encountered something rather strange : AnalyseExpressionsTransform turns : cimport foo def test(): foo.printf() into : cimport foo def test(): printf() It is due to the method analyse_as_cimported_attribute of AttributeNode in the file Cytho

[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-devel mailing l

[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/mai

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

2011-05-31 Thread Romain Guillebert
On Tue, May 31, 2011 at 12:08:52PM +0200, mark florisson wrote: > Cool. Would it be useful to always generate wrapper functions for > extern functions with numeric argument types? E.g. this is valid > Cython code: > > cdef extern from "foo.h": > ctypedef unsigned int size_t > size_t func_w

[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 Cheers Romain ___ cyt

[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 Cheers Romain ___ cyt

[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 Cheers Romain ___ cyt

Re: [Cython] Scope resolution in a Visitor

2011-05-24 Thread Romain Guillebert
> Sounds to me like you should attach the necessary information to the > symbol table entry when analysing he "external" declaration. That's what I wanted to do that's why I asked how I could access the external declaration node > We currently store a "cname", so adding something like a property

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
Hi 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 of a variable. For example : def func(): def func(): pass func() In the situation where I'm currently traversing th

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

2011-04-18 Thread Romain Guillebert
Hi I investigated the code produced by Cython, and I see 3 cases which should be handled : * A pure python variable which has a value assigned (including None) * A pure python variable which has no value assigned * A C variable (we can't test if they are set of not) The first and second one seem

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

2011-04-07 Thread Romain Guillebert
Hi I proposed the Summer of Code project regarding the Python backend for Cython. As I said in my proposal this would translate Cython code to Python + FFI code (I don't know yet if it will use ctypes or something specific to PyPy). PyPy's ctypes is now really fast and this will allow people to p