Re: [pypy-dev] Questions about build new extension with RPython

2015-06-21 Thread Boxiang Sun
Thanks to Armin and Maciej. I will try to build a OpenCV-PyPy prototype with cffi first. Regards, Sun 2015-06-21 19:04 GMT+08:00 Armin Rigo : > Hi Boxiang, > > On 21 June 2015 at 01:33, Boxiang Sun wrote: > > Does it mean if wrap OpenCV in PyPy > > with cffi. OpenCV-PyPy could not use ndarray?

Re: [pypy-dev] Questions about build new extension with RPython

2015-06-21 Thread Armin Rigo
Hi Boxiang, On 21 June 2015 at 01:33, Boxiang Sun wrote: > Does it mean if wrap OpenCV in PyPy > with cffi. OpenCV-PyPy could not use ndarray? I don't know OpenCV myself, but writing a CFFI module accessing it should be easy, even if there are functions that take numpy arrays. You can do: f

Re: [pypy-dev] Questions about build new extension with RPython

2015-06-21 Thread Maciej Fijalkowski
Hi Boxiang. You're far better off doing it with cffi and writing part of it in C (pure C) or Python. Cffi on pypy is quite well optimized and should not really present a performance overhead. On Sun, Jun 21, 2015 at 1:33 AM, Boxiang Sun wrote: > Hi all, > > I am a newbie in PyPy. But with some e