Re: [pypy-dev] Paper on the HOPE JIT for Python

2015-06-21 Thread Armin Rigo
Hi Yury, On 21 June 2015 at 21:37, Yury V. Zaytsev wrote: > Yes, I agree with you on that, but personally, I don't see much of a > problem with folks out there playing with source to source translation > and type inference; to my mind that's perfectly alright. Yes, sorry if I was unclear. It's

Re: [pypy-dev] Paper on the HOPE JIT for Python

2015-06-21 Thread Yury V. Zaytsev
Hi Armin, On Sun, 2015-06-21 at 14:50 +0200, Armin Rigo wrote: > > There is not much we can actively do. Of course running a loop only > 100 times gives a bad idea about the performance of any real JIT. Just to clarify, from what I understood, they basically ran timeit.repeat(stmt, repeat=

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] Paper on the HOPE JIT for Python

2015-06-21 Thread Armin Rigo
Hi Yury, On 21 June 2015 at 14:25, Yury V. Zaytsev wrote: > In conclusion, I'm afraid there is not much at all to learn from this > publication... > > ... except that, maybe, this kind of papers should be reviewed by > experts on the subject, and not by domain scientists (in this case, > astrophy

Re: [pypy-dev] Paper on the HOPE JIT for Python

2015-06-21 Thread Yury V. Zaytsev
On Sun, 2015-06-21 at 11:52 +0200, Laura Creighton wrote: > > > http://www.sciencedirect.com/science/article/pii/S2213133714000687 I'm curious whether I'm the only one to find this paper disappointing? To summarize, the authors developed a translation system into C++ for a very restricted subs

Re: [pypy-dev] tkinter tests broken

2015-06-21 Thread Amaury Forgeot d'Arc
Hi Armin, 2015-06-21 12:33 GMT+02:00 Armin Rigo : > Hi Amaury, > > In fd331e4bf733 you did an untested change to the tkinter library; as > it turns out, the CPython tests find problems: > > > http://buildbot.pypy.org/summary/longrepr?testname=unmodified&builder=pypy-c-jit-linux-x86-32&build=2727&

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

[pypy-dev] tkinter tests broken

2015-06-21 Thread Armin Rigo
Hi Amaury, In fd331e4bf733 you did an untested change to the tkinter library; as it turns out, the CPython tests find problems: http://buildbot.pypy.org/summary/longrepr?testname=unmodified&builder=pypy-c-jit-linux-x86-32&build=2727&mod=lib-python.2.7.test.test_tcl Can you fix the situation? Th

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

[pypy-dev] Paper on the HOPE JIT for Python

2015-06-21 Thread Laura Creighton
http://www.sciencedirect.com/science/article/pii/S2213133714000687 I think some of our poor performance is because they never let the jit warm up, but should we grab some of their benchmarks and see if we can do better? Laura ___ pypy-dev mailing list p