[pypy-dev] PySide with PyPy

2014-02-22 Thread Johan Råde
Hi everyone, I'm trying to get PySide to run with PyPy using the Python C-API. I'm able to build and install PySide under PyPy on Windows, without any errors, but the installed libraries do not work. I'm working on it. Anyone wants to give it a try on Linux? Maybe the problem is Windows spec

[pypy-dev] Telling the JIT to remove a stack array

2014-02-22 Thread Timothy Baldridge
I have an interpreter inner loop that looks something like this: jitdriver = JitDriver(greens=['ip', 'tos', 'bytecodes', 'consts'], reds=['locals', 'stack']) def interpret(code, args): assert isinstance(code, Code) bytecodes = code.bytecodes consts = code.consts vars = code.vars

Re: [pypy-dev] slow-ish multithreaded primitives

2014-02-22 Thread Dima Tisnek
Right, I narrowed it down to condition.wait being much slower with a timeout than without. see attached test script. On 22 February 2014 08:20, Armin Rigo wrote: > Hi Dima, > > On 21 February 2014 15:43, Dima Tisnek wrote: >> sorry I don't have code handy, it's part of a larger project, but

Re: [pypy-dev] Very slow Julia example on PyPy/numpy - can you help me understand why it is slow?

2014-02-22 Thread Maciej Fijalkowski
On Sat, Feb 22, 2014 at 7:45 PM, Ronan Lamy wrote: > Hello Ian, > > Le 20/02/14 20:40, Ian Ozsvald a écrit : > >> Hi Armin. The point of the question was not to remove numpy but to >> understand the behaviour :-) I've already done a set of benchmarks >> with lists and with numpy, I've copied the r

Re: [pypy-dev] Very slow Julia example on PyPy/numpy - can you help me understand why it is slow?

2014-02-22 Thread Ronan Lamy
Hello Ian, Le 20/02/14 20:40, Ian Ozsvald a écrit : Hi Armin. The point of the question was not to remove numpy but to understand the behaviour :-) I've already done a set of benchmarks with lists and with numpy, I've copied the results below. I'm using the same Julia code throughout (there's a

Re: [pypy-dev] unaligned raw_load (align_float_cast branch)

2014-02-22 Thread Matti Picus
Thanks for taking a look. My immediate goal is to get micronumpy tests passing on ARM. micronumpy uses raw_storage_getitem, which needs to be fixed. I thought nonaligned access would be a problem in other parts of pypy, but do not have the perspective to judge that, so I tried to stick xxx in al

Re: [pypy-dev] Very slow Julia example on PyPy/numpy - can you help me understand why it is slow?

2014-02-22 Thread Armin Rigo
Hi Ian, On 20 February 2014 21:40, Ian Ozsvald wrote: > compiler technologies. The simple answer might be 'because pypynumpy > is young' and that'd be fine - at least I'd have an answer if someone > asks the question in my talk. If someone has more details, that'd be > really interesting too. Is

Re: [pypy-dev] numpy plans in the next 6 months?

2014-02-22 Thread Maciej Fijalkowski
On Thu, Feb 20, 2014 at 9:44 PM, Ian Ozsvald wrote: > Interesting answer :-) numexpr does a bit of this but your bigger > point is that pypynumpy should go much further. That indeed will be > interesting. > Cheers, i. The interesting part is that with a JIT you can do a lot more specialization th

Re: [pypy-dev] unaligned raw_load (align_float_cast branch)

2014-02-22 Thread Armin Rigo
Hi Matti, On 18 February 2014 14:05, matti picus wrote: > I would like to ask for help with this branch, as I have not been able to > move it forward fast enough. I moved it forward a little bit, but now I'm wondering if it actually makes sense. What is the goal? Is it to fix a problem in ctyp