[pypy-dev] Testing pypy

2011-08-10 Thread Seung Soo , Ha
http://docs.python.org/devguide/runtests.html Can I run tests on pypy as above? I downloaded the linux binary version for the pypy website (https://bitbucket.org/pypy/pypy/downloads/pypy-1.5-linux64.tar.bz2) running $./pypy -m test prints " No module named test.__main__; 'test' is a package a

Re: [pypy-dev] Testing pypy

2011-08-10 Thread Armin Rigo
Hi, On Wed, Aug 10, 2011 at 9:16 AM, Seung Soo, wrote: >  No module named test.__main__; 'test' is a package and cannot be directly > executed > > (without a new line at the end!) (I fixed the missing new line.) But PyPy behaves like Python 2.7. I don't know if you are reading the docs for Pyt

Re: [pypy-dev] PPC backend design questions

2011-08-10 Thread Michael Hudson-Doyle
(sorry, forgot reply to all on the first version of this) I guess a useful thing to understand here is that the powerpc assembler was mostly written by me on a whim many many years ago -- there never was a really strong design sense and if there was, I've probably forgotten it :) On 10 August 201

Re: [pypy-dev] Testing pypy

2011-08-10 Thread Seung Soo , Ha
Armin Rigo tunes.org> writes: > > Hi, > But PyPy behaves like Python 2.7. I don't know if you are reading the > docs for Python 3.x, but it doesn't work this way in Python 2.7 > either. > > A bientôt, > > Armin. > Sorry. I was reading the 3.x docs. Anyway I'd like to know if there is any

Re: [pypy-dev] Testing pypy

2011-08-10 Thread Armin Rigo
Hi Seung, On Wed, Aug 10, 2011 at 11:35 AM, Seung Soo, wrote: > Anyway I'd like to know if there is any single way to test both > python and pypy(2.7), where the results should be the same. We use our own custom runner, which you run differently than CPython's. Well, you can also try running "p

Re: [pypy-dev] PPC backend design questions

2011-08-10 Thread David Edelsohn
On Wed, Aug 10, 2011 at 4:26 AM, Michael Hudson-Doyle wrote: > There are already fields that behave in unusual ways -- see > > https://bitbucket.org/pypy/pypy/src/f8c92c646275/pypy/jit/backend/ppc/ppcgen/ppc_field.py#cl-55 > > I think you should be able to add your fields in this fashion -- in >

Re: [pypy-dev] PPC backend design questions

2011-08-10 Thread Michael Hudson-Doyle
On Aug 10, 2011 2:23 PM, "David Edelsohn" wrote: > > On Wed, Aug 10, 2011 at 4:26 AM, Michael Hudson-Doyle > wrote: > > > There are already fields that behave in unusual ways -- see > > > > https://bitbucket.org/pypy/pypy/src/f8c92c646275/pypy/jit/backend/ppc/ppcgen/ppc_field.py#cl-55 > > > > I

Re: [pypy-dev] Testing pypy

2011-08-10 Thread Chris Lambacher
Hi Seung, Are you talking about the interpreter tests or tests for your own packages? If you want to run tests, I think the latest versions of Tox support PyPy. You can have it run tests against multiple versions of python: http://tox.testrun.org/en/latest/ -Chris On Wed, Aug 10, 2011 at 7:49

[pypy-dev] jit-short_from_state

2011-08-10 Thread Hakan Ardo
Hi, what I had in mind for jit-short_from_state is now in place and seem to be working. So if anyone feels like reviewing now is a good time :) Benchmarks show ai 15% faster, spectral-norm 47% faster and bm_mako 11% slower as compared to trunk. The others are not affected much: http://paste.po

Re: [pypy-dev] jit-short_from_state

2011-08-10 Thread Maciej Fijalkowski
On Wed, Aug 10, 2011 at 4:43 PM, Hakan Ardo wrote: > Hi, > what I had in mind for jit-short_from_state is now in place and seem > to be working. So if anyone feels like reviewing now is a good time :) > Benchmarks show ai 15% faster, spectral-norm 47% faster and bm_mako > 11% slower as compared to

Re: [pypy-dev] PyPy download/install page

2011-08-10 Thread Maciej Fijalkowski
On Sat, Aug 6, 2011 at 2:40 PM, Tom Roche wrote: > > Armin Rigo Wed, Aug 3, 2011 at 8:21 AM >> We edit [pypy.org/source/download.txt] > > Done! The new'n'improved download.txt file is @ > > https://docs.google.com/leaf?id=0BzDAFHgIxRzKYzQzNzUwYTktNzBjMS00ZmNmLTk3YzItYThhNTdmY2Q3OWM1&hl=en_US > > a

Re: [pypy-dev] PowerPC 64 bit support

2011-08-10 Thread Maciej Fijalkowski
> I need to understand how to add tests that only run in 64 bit mode > because the instruction will fail on a 32 bit PowerPC system as > illegal instructions. > > Thanks, David > Look how skip-on-32bit-intel is implemented in tests. ___ pypy-dev mailing

Re: [pypy-dev] jit-short_from_state

2011-08-10 Thread Alex Gaynor
On Wed, Aug 10, 2011 at 8:06 AM, Maciej Fijalkowski wrote: > On Wed, Aug 10, 2011 at 4:43 PM, Hakan Ardo wrote: > > Hi, > > what I had in mind for jit-short_from_state is now in place and seem > > to be working. So if anyone feels like reviewing now is a good time :) > > Benchmarks show ai 15% fa

Re: [pypy-dev] jit-short_from_state

2011-08-10 Thread Antonio Cuni
On 10/08/11 17:27, Alex Gaynor wrote: I remember you also showed me it made my HTML escaper about 20% faster on some benchmarks :) Of the 3 test_pypy_ benchmarks, only the test_instance one shows a really noticable regression (test_strings looks better actually...), can you explain why it got w

Re: [pypy-dev] jit-short_from_state

2011-08-10 Thread Hakan Ardo
On Wed, Aug 10, 2011 at 5:27 PM, Alex Gaynor wrote: > > > On Wed, Aug 10, 2011 at 8:06 AM, Maciej Fijalkowski > wrote: >> >> On Wed, Aug 10, 2011 at 4:43 PM, Hakan Ardo wrote: >> > Hi, >> > what I had in mind for jit-short_from_state is now in place and seem >> > to be working. So if anyone feel

Re: [pypy-dev] jit-short_from_state

2011-08-10 Thread Hakan Ardo
On Wed, Aug 10, 2011 at 6:15 PM, Antonio Cuni wrote: > On 10/08/11 17:27, Alex Gaynor wrote: >> >> I remember you also showed me it made my HTML escaper about 20% faster on >> some >> benchmarks :)  Of the 3 test_pypy_  benchmarks, only the test_instance one >> shows a really noticable regression

[pypy-dev] Python vs pypy: interesting performance difference [dict.setdefault]

2011-08-10 Thread David Naylor
Hi, I needed to create a cache of date and time objects and I wondered what was the best way to handle the cache. For comparison I put together the following test: import datetime import random import timeit ranges = [datetime.datetime(2011,01, random.randint(1, 31)) for i in xrange(1000)]

Re: [pypy-dev] PyPy download/install page

2011-08-10 Thread Tom Roche
Tom Roche Sat, Aug 6, 2011 at 2:40 PM >> The new'n'improved download.txt file is @ >> https://docs.google.com/leaf?id=0BzDAFHgIxRzKYzQzNzUwYTktNzBjMS00ZmNmLTk3YzItYThhNTdmY2Q3OWM1&hl=en_US >> and the patch file is @ >> https://docs.google.com/leaf?id=0BzDAFHgIxRzKZmQzZWZkNDYtODE2YS00MjUwLTgxMDYt

Re: [pypy-dev] PyPy download/install page

2011-08-10 Thread Maciej Fijalkowski
On Wed, Aug 10, 2011 at 9:37 PM, Tom Roche wrote: > Tom Roche Sat, Aug 6, 2011 at 2:40 PM >>> The new'n'improved download.txt file is @ > >>> https://docs.google.com/leaf?id=0BzDAFHgIxRzKYzQzNzUwYTktNzBjMS00ZmNmLTk3YzItYThhNTdmY2Q3OWM1&hl=en_US > >>> and the patch file is @ > >>> https://docs.goog