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

2011-08-25 Thread Armin Rigo
Hi David, On Thu, Aug 25, 2011 at 9:44 PM, David Naylor wrote: > Below is the patch, and results, for my proposed hash methods for > datetime.datetime (and easily adaptable to include tzinfo and the other > datetime objects).  I tried to make the hash safe for both 32bit and 64bit > systems, and

Re: [pypy-dev] status of scheme implementation

2011-08-25 Thread Armin Rigo
Hi Juergen, On Sun, Aug 21, 2011 at 3:15 PM, Juergen Boemmels wrote: > I just found the scheme implementation > https://bitbucket.org/pypy/lang-scheme/ > but there is no history besides the initial import. > > Is this maintained? I.e. is it usful to send patches for improving this? As you may ha

[pypy-dev] Suggestions for small projects for getting started hacking on pypy?

2011-08-25 Thread Christian Hudon
Hello, I'm interested in getting my feet wet hacking on pypy. I've successfully bootstrapped pypy from source, using the documentation on doc.pypy.org. What small projects are open right now that I could use to get started learning about the code? Thanks, Christian __

Re: [pypy-dev] List index out of range for many tests

2011-08-25 Thread Armin Rigo
Hi Mitchell, On Sat, Aug 20, 2011 at 4:47 PM, Mitchell Hashimoto wrote: > One question: The tests take quite awhile to run, even for a single file. Is > this normal? Yes, kind of. This is particular to test_ctypes. For me it takes about 30 seconds just for the command you gave, whereas CPython

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

2011-08-25 Thread David Naylor
On Tuesday, 16 August 2011 15:27:30 Armin Rigo wrote: > Hi David, > > On Mon, Aug 15, 2011 at 6:20 PM, David Naylor wrote: > > For me the performance of datetime object's hashing is sufficient but I > > think the python code could use some performance improvements. Is my > > approach using a di

Re: [pypy-dev] Incompatibility in binary distribution of libraries?

2011-08-25 Thread Amaury Forgeot d'Arc
Hi, 2011/8/25 Serhat Sevki Dincer > Start with main.py and mylib.py > with python2.7 that comes with ubuntu 11.04 i386, run > python2.7 main.py > the program runs correctly and a file mylib.pyc is produced. > Then, if I remove or rename mylib.py file, pyc file is sufficient for > main.py to work

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread Davide Setti
On Wed, Aug 24, 2011 at 11:59 PM, Leonardo Santagada wrote: > there is a ctypes driver for sqllite and mysql (this last one being > used in quora). There is a postgresql driver also but this one is a > little harder to get going (it needs to be translated with the pypy > interpreter) but there are

Re: [pypy-dev] [pypy-commit] pypy reflex-support: Remove elidable_promote that made the translation choke.

2011-08-25 Thread wlavrijsen
Hi Anto, -@jit.elidable_promote() def _get_offset(self, w_cppinstance): cppinstance = self.space.interp_w(W_CPPInstance, w_cppinstance, can_be_None=True) if cppinstance: are you sure that you really want to kill this promote? I suspect that it makes accessing t

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread David Fraser
Hi Andy I'm using our own internal platform which uses CherryPy, sqlalchemy and Routes. Currently I get a 20% speedup once JIT has completed; most of this I think has to do with our own native code that's not very friendly to PyPy JIT (lots of generators and **kwargs passing), so I'm hoping t

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread Andy
I didn't know about the rietveld  benchmark.  Thanks! From: Leonardo Santagada To: Andy Cc: "pypy-dev@python.org" Sent: Thursday, August 25, 2011 11:14 AM Subject: Re: [pypy-dev] Is PyPy appropriate for Django? On Wed, Aug 24, 2011 at 6:26 PM, Andy wrote: >

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread Andy
Armin, Yes it is the regular expression module. Great to know that it'll be faster in PyPy. A large part of my application is creating and manipulating objects using Django's ORM and other modules. Would PyPy speed that up too? Or are those objects too short-lived (they only live within a requ

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread Leonardo Santagada
On Wed, Aug 24, 2011 at 6:26 PM, Andy wrote: > Hi, > In the PyPy benchmark there's a Django test that shows tremendous speedup of > Django when running PyPy-JIT. But that is just for Django templates. What > about the other parts of Django? Did you notice that there is also a benchmark of rietvel

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread Andy
Hi David, Which platform are you using? How big of a speedup did you get? Did the memory footprint increased significantly? Thanks. From: David Fraser To: Andy Cc: pypy-dev@python.org Sent: Thursday, August 25, 2011 1:12 AM Subject: Re: [pypy-dev] Is PyPy ap

Re: [pypy-dev] [pypy-commit] pypy reflex-support: Remove elidable_promote that made the translation choke.

2011-08-25 Thread wlavrijsen
Hi Anto, On Thu, 25 Aug 2011, Antonio Cuni wrote: -@jit.elidable_promote() def _get_offset(self, w_cppinstance): cppinstance = self.space.interp_w(W_CPPInstance, w_cppinstance, can_be_None=True) if cppinstance: are you sure that you really want to kill this promo

[pypy-dev] Removing dead emails from list

2011-08-25 Thread Serhat Sevki Dincer
Whenever I send an email to pypy-dev I get the below bounce back. Can somebody remove that dead email from the list? frompostmas...@paran.com to jfcga...@gmail.com dateThu, Aug 25, 2011 at 12:18 PM subject [ERR] [pypy-dev] Incompatibility in binary distribution of libraries? mailed-by

[pypy-dev] Incompatibility in binary distribution of libraries?

2011-08-25 Thread Serhat Sevki Dincer
Start with main.py and mylib.py with python2.7 that comes with ubuntu 11.04 i386, run python2.7 main.py the program runs correctly and a file mylib.pyc is produced. Then, if I remove or rename mylib.py file, pyc file is sufficient for main.py to work python2.7 main.py still works. With pypy 1.6, a

Re: [pypy-dev] [pypy-commit] pypy reflex-support: Remove elidable_promote that made the translation choke.

2011-08-25 Thread Antonio Cuni
Hi Wim, On 16/08/11 19:47, wlav wrote: Author: Wim Lavrijsen Branch: reflex-support Changeset: r46550:17b6f87c70bc Date: 2011-08-16 10:54 -0700 http://bitbucket.org/pypy/pypy/changeset/17b6f87c70bc/ Log:Remove elidable_promote that made the translation choke. diff --git a/pypy/module/cppyy

Re: [pypy-dev] Is PyPy appropriate for Django?

2011-08-25 Thread Armin Rigo
Hi Andy, On Wed, Aug 24, 2011 at 11:26 PM, Andy wrote: > 1) For URL routing Django uses the re module, which is a C extension. Would > JIT work with that? Is this "re" the regular expression module? If so, it's a standard library module, so PyPy provides one too, rewritten in RPython. In fact