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] Hash-based vtables

2012-06-19 Thread Sturla Molden
On 12.06.2012 21:46, Dag Sverre Seljebotn wrote: But for much NumPy-using code you'd typically use int32 or int64, and since long is 32 bits on 32-bit Windows and 64 bits on Linux/Mac, choosing long sort of maximises inter-platform variation of signatures... The size of a long is compiler depe