[pypy-dev] ZODB3

2012-02-27 Thread Aroldo Souza-Leite
Hi list, just to keep you informed: the ZODB3 can be successfully installed in a PyPy-1.8 virtual environment, but the tests fail. Below is the whole bash session I tried on Ubuntu LTS. For the PyPy developers the interesting part might be the last section, "Running the ZODB3 tests". Thanks

[pypy-dev] the program will make pypy say "Segment fault"

2012-02-27 Thread Spacelee
on Ubuntu 64bit, 6G memory, 4Core, python2.7.2 Program: import datetime tmp_str1 = 'aa' * 1 tmp_str2 = 'bb' * 1 tmp_str3 = 'bb' * 1 tmp_str4 = 'bb' * 1 s = datetime.datetime.now() for i in xrange(10): a = "%s%s%s%s" % (tmp_str1, tmp_str2, tm

Re: [pypy-dev] the program will make pypy say "Segment fault"

2012-02-27 Thread mike c
Hi All, Ronny has put a stripped down version of this bug on the tracker: https://bugs.pypy.org/issue1073 On Mon, Feb 27, 2012 at 9:39 PM, Spacelee wrote: > on Ubuntu 64bit, 6G memory, 4Core, python2.7.2 > > Program: > > > import datetime > > tmp_str1 = 'aa' * 1 > tmp_str2 = 'b

[pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Phillip Class
Hello, On Ubuntu 10.04 LTS 64-bit with Python 2.7, after cloning the latest repo I am trying to build pypy with cx_Oracle mod using the command: python translate.py -Ojit targetpypystandalone.py --withmod-oracle After quite awhile it fails with the following translation errors. Can somebody pleas

Re: [pypy-dev] the program will make pypy say "Segment fault"

2012-02-27 Thread Armin Rigo
Hi, On Mon, Feb 27, 2012 at 12:39, Spacelee wrote: > Segment Fault Thanks for the report! Fixed, probably, by b9733690c4de. The issue occurs with strings (or other variable-sized mallocs) with a number of items that is constant for the JIT, and whose total constant size is between 67584 bytes

Re: [pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Maciej Fijalkowski
On Mon, Feb 27, 2012 at 6:59 AM, Phillip Class wrote: > Hello, > > On Ubuntu 10.04 LTS 64-bit with Python 2.7, after cloning the latest repo I > am trying to build pypy with cx_Oracle mod using the command: > python translate.py -Ojit targetpypystandalone.py --withmod-oracle > > After quite awhile

Re: [pypy-dev] ZODB3

2012-02-27 Thread Maciej Fijalkowski
On Mon, Feb 27, 2012 at 1:53 AM, Aroldo Souza-Leite wrote: > Hi list, > > just to keep you informed: > > the ZODB3 can be successfully installed in a PyPy-1.8 virtual environment, > but the tests fail. Below is the whole bash session I tried on Ubuntu LTS. > For the PyPy developers the interesting

[pypy-dev] NumPyPy test - array creation slow

2012-02-27 Thread Mike Müller
Hi, I just tested NumPyPy a bit. I got very long run times for some tests. After some profiling, I identified the array constructor as the main time sink. This is a small example that makes the point. import cProfile try: import numpy except ImportError: import numpypy as numpy def te

Re: [pypy-dev] ZODB3

2012-02-27 Thread Armin Rigo
Hi, On Mon, Feb 27, 2012 at 16:29, Maciej Fijalkowski wrote: > On PyPy it probably should not do anything so you can maybe try with > #define _Py_ForgetReference(obj), but I don't actually know. Yes, it looks like it doesn't do anything in release builds of CPython. It's there for debugging.

Re: [pypy-dev] NumPyPy test - array creation slow

2012-02-27 Thread Carl Friedrich Bolz
Hi Mike, On 02/27/2012 04:31 PM, Mike Müller wrote: > I just tested NumPyPy a bit. I got very long run times > for some tests. After some profiling, I identified the > array constructor as the main time sink. I opened an issue so that it doesn't get lost: https://bugs.pypy.org/issue1074 Cheers

Re: [pypy-dev] NumPyPy test - array creation slow

2012-02-27 Thread Maciej Fijalkowski
On Mon, Feb 27, 2012 at 7:48 AM, Carl Friedrich Bolz wrote: > Hi Mike, > > > On 02/27/2012 04:31 PM, Mike Müller wrote: >> I just tested NumPyPy a bit. I got very long run times >> for some tests. After some profiling, I identified the >> array constructor as the main time sink. > > I opened an is

Re: [pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Phillip Class
Hi Maciej, In Pdb they look like this: [translation] start debugger... > /home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock() -> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_In

Re: [pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Maciej Fijalkowski
On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class wrote: > Hi Maciej, > > In Pdb they look like this: > > [translation] start debugger... >> >> /home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock() > -> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg > (Pdb+) s_oldarg >

Re: [pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Maciej Fijalkowski
On Mon, Feb 27, 2012 at 10:12 AM, Maciej Fijalkowski wrote: > On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class > wrote: >> Hi Maciej, >> >> In Pdb they look like this: >> >> [translation] start debugger... >>> >>> /home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock() >> -> ass

Re: [pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Phillip Class
Hi Maciej, It's very big but here is the entire thing: http://pastebin.com/MkmHPBAU Thanks, Phil On Mon, Feb 27, 2012 at 7:07 PM, Maciej Fijalkowski wrote: > On Mon, Feb 27, 2012 at 10:12 AM, Maciej Fijalkowski > wrote: > > On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class > > wrote: > >> Hi Ma

Re: [pypy-dev] Translation Error building with cx_Oracle

2012-02-27 Thread Maciej Fijalkowski
On Mon, Feb 27, 2012 at 11:16 AM, Phillip Class wrote: > Hi Maciej, > > It's very big but here is the entire thing: > http://pastebin.com/MkmHPBAU > > Thanks, > > Phil On the unrelated note, you might want to install libbz2 and ncurses ;-) > > > On Mon, Feb 27, 2012 at 7:07 PM, Maciej Fijalkowsk