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

2011-04-18 Thread Stefan Behnel
Romain Guillebert, 18.04.2011 17:55: 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

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

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

2011-04-18 Thread Stefan Behnel
Romain Guillebert, 07.04.2011 17:01: 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 f

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

2011-04-07 Thread Stefan Behnel
[fixed up the citation order] Romain, 07.04.2011 22:36: 2011/4/7 Carl Witty On Thu, Apr 7, 2011 at 9:06 AM, Dag Sverre Seljebotn wrote: This seems similar to Carl Witty's port of Cython to .NET/IronPython. An important insight from that project is that Cython code does NOT specify an ABI, o

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 > On Thu,

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

2011-04-07 Thread Carl Witty
On Thu, Apr 7, 2011 at 9:06 AM, Dag Sverre Seljebotn wrote: > This seems similar to Carl Witty's port of Cython to .NET/IronPython. An > important insight from that project is that Cython code does NOT specify an > ABI, only an API which requires a C compiler to make sense. That is; many > wrapped

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

2011-04-07 Thread Carl Witty
On Thu, Apr 7, 2011 at 9:06 AM, Dag Sverre Seljebotn wrote: > On 04/07/2011 05:01 PM, Romain Guillebert wrote: >> >> 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

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

2011-04-07 Thread Dag Sverre Seljebotn
On 04/07/2011 05:01 PM, Romain Guillebert wrote: 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

[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