Re: [Cython] new FFI library for Python

2012-09-17 Thread Dag Sverre Seljebotn
Saravanan Shanmugham wrote: >I have been using CFFI for wrapping a whole bunch of C libraries and I >can >tell you its way easier than Cython. > >And a couple of clarifications of misconceptions mentioned on this >list. >1. It does not "require" GCC at run time. The extension can be compiled >a

[Cython] new FFI library for Python

2012-09-17 Thread Saravanan Shanmugham
I have been using CFFI for wrapping a whole bunch of C libraries and I can tell you its way easier than Cython. And a couple of clarifications of misconceptions mentioned on this list. 1. It does not "require" GCC at run time. The extension can be compiled at package/install time using the GCC

Re: [Cython] new FFI library for Python

2012-06-25 Thread Stefan Behnel
Dan Stromberg, 25.06.2012 20:58: > Is it related to Common Lisp's CFFI? If not, it might be confusing to > have two things with the same name, similar purposes, but not really > the same thing. > http://common-lisp.net/project/cffi/ I think "cffi" for "C foreign function interface" is just the on

Re: [Cython] new FFI library for Python

2012-06-25 Thread Dan Stromberg
Is it related to Common Lisp's CFFI? If not, it might be confusing to have two things with the same name, similar purposes, but not really the same thing. http://common-lisp.net/project/cffi/ On Mon, Jun 18, 2012 at 2:12 PM, Stefan Behnel wrote: > Hi, > > the PyPy folks have come up with a new F

Re: [Cython] new FFI library for Python

2012-06-19 Thread Robert Bradshaw
On Tue, Jun 19, 2012 at 4:58 AM, Sturla Molden wrote: > On 18.06.2012 16:12, Stefan Behnel wrote: > >> the PyPy folks have come up with a new FFI library (called cffi) for >> CPython (and eventually PyPy, obviously). > > > It looks like ctypes albeit with a smaller API. (C definitions as text > st

Re: [Cython] new FFI library for Python

2012-06-19 Thread Sturla Molden
On 18.06.2012 16:12, Stefan Behnel wrote: the PyPy folks have come up with a new FFI library (called cffi) for CPython (and eventually PyPy, obviously). It looks like ctypes albeit with a smaller API. (C definitions as text strings instead of Python objects.) Sometimes I think Python and a

Re: [Cython] new FFI library for Python

2012-06-18 Thread Stefan Behnel
Stefan Behnel, 18.06.2012 16:12: > the PyPy folks have come up with a new FFI library (called cffi) for > CPython (and eventually PyPy, obviously). > > http://cffi.readthedocs.org/ > > It borrows from LuaJIT's FFI in that it parses C declarations at runtime. > It then builds a C extension to acce

Re: [Cython] new FFI library for Python

2012-06-18 Thread Stefan Behnel
Philip Herron, 18.06.2012 17:26: > On 18 June 2012 15:12, Stefan Behnel wrote: >> the PyPy folks have come up with a new FFI library (called cffi) for >> CPython (and eventually PyPy, obviously). >> >> http://cffi.readthedocs.org/ >> >> It borrows from LuaJIT's FFI in that it parses C declarations

Re: [Cython] new FFI library for Python

2012-06-18 Thread Philip Herron
On 18 June 2012 15:12, Stefan Behnel wrote: > Hi, > > the PyPy folks have come up with a new FFI library (called cffi) for > CPython (and eventually PyPy, obviously). > > http://cffi.readthedocs.org/ > > It borrows from LuaJIT's FFI in that it parses C declarations at runtime. > It then builds a C

[Cython] new FFI library for Python

2012-06-18 Thread Stefan Behnel
Hi, the PyPy folks have come up with a new FFI library (called cffi) for CPython (and eventually PyPy, obviously). http://cffi.readthedocs.org/ It borrows from LuaJIT's FFI in that it parses C declarations at runtime. It then builds a C extension to access the external code, i.e. it requires a C