Re: [pypy-dev] Copy of list

2015-09-29 Thread Armin Rigo
Hi Tuom, On Tue, Sep 29, 2015 at 7:31 AM, Tuom Larsen wrote: > Please, let me rephrase my question: currently I use `[:]` because it > is faster in CPython (0.131 usec vs 0.269 usec per loop). I almost > don't mind changing it to `list()` because of PyPy but I was wondering > what do PyPy develop

[pypy-dev] FIY: Basic Block Versioning JIT

2015-09-29 Thread Niki Spahiev
http://pointersgonewild.com/2015/09/24/basic-block-versioning-my-best-result-yet/ HTH Niki ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Copy of list

2015-09-29 Thread Tuom Larsen
Hi Armin, thanks a lot, both for the explanation and the fix! I will try it soon. Have a nice day! Tuom PS: The speed difference came from larger piece of code, which I tried to reproduce in "minimal viable test case". Hence that `timeit`, where it showed up as well. But in any case, thanks a l

Re: [pypy-dev] FIY: Basic Block Versioning JIT

2015-09-29 Thread Armin Rigo
Hi Niki, On Tue, Sep 29, 2015 at 11:11 AM, Niki Spahiev wrote: > http://pointersgonewild.com/2015/09/24/basic-block-versioning-my-best-result-yet/ It would look cool if it was 2005. To me, in 2015, it sounds completely outdated... I'm sure that PyPy or V8 are both able to optimize away most ty

Re: [pypy-dev] FIY: Basic Block Versioning JIT

2015-09-29 Thread Carl Friedrich Bolz
On 29/09/15 12:40, Armin Rigo wrote: Hi Niki, On Tue, Sep 29, 2015 at 11:11 AM, Niki Spahiev wrote: http://pointersgonewild.com/2015/09/24/basic-block-versioning-my-best-result-yet/ It would look cool if it was 2005. To me, in 2015, it sounds completely outdated... I'm sure that PyPy or V8

Re: [pypy-dev] FIY: Basic Block Versioning JIT

2015-09-29 Thread Armin Rigo
Hi, On Tue, Sep 29, 2015 at 1:18 PM, Carl Friedrich Bolz wrote: >> It would look cool if it was 2005. To me, in 2015, it sounds >> completely outdated... > > One thing that's very cool in BBV that I'm not aware of any other JIT > doing is to have type-specialized entry points for uninlinable met

Re: [pypy-dev] FIY: Basic Block Versioning JIT

2015-09-29 Thread William ML Leslie
On 29 September 2015 at 21:18, Carl Friedrich Bolz wrote: > One thing that's very cool in BBV that I'm not aware of any other JIT > doing is to have type-specialized entry points for uninlinable methods. > Ie if a method is not inlined then the caller calls a type specialized > entry point with al