Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Antoine Pitrou
On Sun, 18 Nov 2012 11:27:32 -0500 Benjamin Peterson wrote: > 2012/11/18 Antoine Pitrou : > > On Sun, 18 Nov 2012 09:37:57 -0500 > > Benjamin Peterson wrote: > > > >> 2012/11/18 Antoine Pitrou : > >> > Also, I would point out that the reference counting behaviour is an > >> > important feature of

Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Benjamin Peterson
2012/11/18 Antoine Pitrou : > On Sun, 18 Nov 2012 09:37:57 -0500 > Benjamin Peterson wrote: > >> 2012/11/18 Antoine Pitrou : >> > Also, I would point out that the reference counting behaviour is an >> > important feature of *C*Python (to the point that we have test cases >> > checking against refe

Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Antoine Pitrou
On Sun, 18 Nov 2012 09:37:57 -0500 Benjamin Peterson wrote: > 2012/11/18 Antoine Pitrou : > > Also, I would point out that the reference counting behaviour is an > > important feature of *C*Python (to the point that we have test cases > > checking against reference cycles), so we can't break it n

Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Benjamin Peterson
2012/11/18 Antoine Pitrou : > Also, I would point out that the reference counting behaviour is an > important feature of *C*Python (to the point that we have test cases > checking against reference cycles), so we can't break it nilly-willy. The tests about reference cycles are just tests that garb

Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Serhiy Storchaka
On 17.11.12 03:13, Victor Stinner wrote: The major drawback of the register approach (at least of my implementation) is that it changes the lifetime of objects. Newly created objects are only "destroyed" at the exit of the function, whereas the stack-based VM destroys "immediatly" objects (thanks

Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Antoine Pitrou
On Sat, 17 Nov 2012 11:17:40 +0100 Armin Rigo wrote: > Hi Victor, > > On Sat, Nov 17, 2012 at 2:13 AM, Victor Stinner > wrote: > > The major drawback of the register approach (at least of my implementation) > > is that it changes the lifetime of objects. Newly created objects are only > > "destr

Re: [Python-Dev] Register-based VM for CPython

2012-11-18 Thread Kristján Valur Jónsson
-bounces+kristjan=ccpgames@python.org] On Behalf Of Victor Stinner Sent: 17. nóvember 2012 01:13 To: Python Dev Subject: [Python-Dev] Register-based VM for CPython The WPython project is similar to my work (except that it does not use registers). It tries also to reduce the overhead of

Re: [Python-Dev] Register-based VM for CPython

2012-11-17 Thread Armin Rigo
Hi Victor, On Sat, Nov 17, 2012 at 2:13 AM, Victor Stinner wrote: > The major drawback of the register approach (at least of my implementation) > is that it changes the lifetime of objects. Newly created objects are only > "destroyed" at the exit of the function, whereas the stack-based VM destro

[Python-Dev] Register-based VM for CPython

2012-11-16 Thread Victor Stinner
Hi, I'm still looking for the best approach to speedup CPython. I found the following article comparing a stack-based VM to a register-based VM which announces a speed up between 20% and 40% (depending if the instruction dispatch uses a dummy switch or computed goto): http://static.usenix.org/eve