Re: [pypy-dev] Updated 'High Performance Python' tutorial (the one from EuroPython 2011)

2011-11-15 Thread Ian Ozsvald
Hi Antonio! Apologies for the slow reply, this got filed into a subfolder. The numbers are interesting, I'm also interested in the C version. I'm hoping that my tutorial will be accepted for PyCon next March (the talks are announced in two weeks), assuming I get to talk again I'll update my

Re: [pypy-dev] Updated 'High Performance Python' tutorial (the one from EuroPython 2011)

2011-11-15 Thread Armin Rigo
Hi, On Tue, Nov 15, 2011 at 15:54, Ian Ozsvald i...@ianozsvald.com wrote: ShedSkin (from memory) requests fast math and a few other things in the generated Makefile. Ah, it is cheating that way. Indeed, I didn't try to play with gcc options; I just used -O2 (or -O3, which made no difference).

Re: [pypy-dev] Updated 'High Performance Python' tutorial (the one from EuroPython 2011)

2011-11-15 Thread Jérémie Roquet
Hi, 2011/11/15 Armin Rigo ar...@tunes.org: On Tue, Nov 15, 2011 at 15:54, Ian Ozsvald i...@ianozsvald.com wrote: ShedSkin (from memory) requests fast math and a few other things in the generated Makefile. Ah, it is cheating that way.  Indeed, I didn't try to play with gcc options; I just

[pypy-dev] Detecting pypy vs cpython runtime

2011-11-15 Thread Blaine
Hi everyone. I have a cellular automata framework in C++ and I use cython and cpython to run it. I found out that if I port it to pure python and run it with pypy, it's close to the same performance as the C++ version. (about 2x as slow, compared to 20x as slow when using pure python + cpython).

Re: [pypy-dev] Detecting pypy vs cpython runtime

2011-11-15 Thread Alex Gaynor
On Tue, Nov 15, 2011 at 12:56 PM, Blaine frik...@gmail.com wrote: Hi everyone. I have a cellular automata framework in C++ and I use cython and cpython to run it. I found out that if I port it to pure python and run it with pypy, it's close to the same performance as the C++ version. (about

Re: [pypy-dev] Detecting pypy vs cpython runtime

2011-11-15 Thread Maciej Fijalkowski
On Tue, Nov 15, 2011 at 8:03 PM, Alex Gaynor alex.gay...@gmail.com wrote: On Tue, Nov 15, 2011 at 12:56 PM, Blaine frik...@gmail.com wrote: Hi everyone. I have a cellular automata framework in C++ and I use cython and cpython to run it. I found out that if I port it to pure python and run

Re: [pypy-dev] Detecting pypy vs cpython runtime

2011-11-15 Thread Alex Gaynor
On Tue, Nov 15, 2011 at 1:08 PM, Maciej Fijalkowski fij...@gmail.comwrote: On Tue, Nov 15, 2011 at 8:03 PM, Alex Gaynor alex.gay...@gmail.com wrote: On Tue, Nov 15, 2011 at 12:56 PM, Blaine frik...@gmail.com wrote: Hi everyone. I have a cellular automata framework in C++ and I use

Re: [pypy-dev] Detecting pypy vs cpython runtime

2011-11-15 Thread Blaine
Awesome. Thanks everyone, exactly what I was looking for. Thank you! Blaine On Tue, Nov 15, 2011 at 1:10 PM, Alex Gaynor alex.gay...@gmail.com wrote: On Tue, Nov 15, 2011 at 1:08 PM, Maciej Fijalkowski fij...@gmail.comwrote: On Tue, Nov 15, 2011 at 8:03 PM, Alex Gaynor

Re: [pypy-dev] [pypy-commit] pypy ppc-jit-backend: setarrayitem and getarrayitem offsets are immediate values.

2011-11-15 Thread Maciej Fijalkowski
Unless I'm missing something offset for get/setarrayitem are not necesarilly intermediate values On Mon, Nov 14, 2011 at 9:27 PM, edelsohn nore...@buildbot.pypy.org wrote: Author: edelsohn Branch: ppc-jit-backend Changeset: r49414:3a6600bf032a Date: 2011-11-14 14:27 -0500