Re: [pypy-dev] Running Python in reverse
On Fri, 7 Jan 2005 hpk@trillke.net (holger krekel) wrote:
... Yes, i see the problem. At EuroPython 2004 there also was Michael Salib who also presented his wish to have a "time warp" debugger that allows to arbitrarily move within execution time of your program and see all the state. And IIRC, we have been discussing this between PyPy developers
This sounds like the same general idea.
... Rightfully so. I wouldn't call it "run backwards" though but to jump arbitrarily in execution and object states.
The visualization would look like running backwards; technically you are correct.
Yes, although for debugging in general there is the problem of "side effects" like dealing with files & sockets, databases etc.pp.
Fortunately, this is not a problem for me.
Well, the question is if we could tackle the "History Space" (working title) at some sprint and you would attend and we would together incorporate
It will be really difficult for me to attend sprints, I already travel way too much. I'd be glad though to start to code towards extending Gato. Does it make it a lot of sense to run the whole tkinter app in pypy, or would we just have an embedded pypy-interpreter for the algorithm? Do you have suggestions how to setup the whole thing? Right now I just execfile the algorithm under debugger control. The algorihms calls the visualisation commands as side effects when doing interesting stuff (put a vertex on a queue). The debugger calls the idle_task etc. to keep the GUI alive, whenever something happens.
the functionality into your application for the fun of it. I imagine a "time slider" that you can arbitrarily move forward and backward ...
Basically like VCR controls. I'd add "run backwards" or so. Best, Alexander
Hi Aleanxder, On Tue, Jan 11, 2005 at 16:51 +0100, Alexander Schliep wrote:
On Fri, 7 Jan 2005 hpk@trillke.net (holger krekel) wrote:
Well, the question is if we could tackle the "History Space" (working title) at some sprint and you would attend and we would together incorporate
It will be really difficult for me to attend sprints, I already travel way too much. I'd be glad though to start to code towards extending Gato.
Does it make it a lot of sense to run the whole tkinter app in pypy,
not yet and not for quite some time, i guess.
or would we just have an embedded pypy-interpreter for the algorithm?
This is possible although it will not be very fast (unless PyPy can already translate your functions to C, possibly even with type inference in which case it might run at C-speed).
Do you have suggestions how to setup the whole thing?
Running a module or some function through PyPy (on top of a CPython version) is rather easy. The work starts at the need to implement the history funcionality. This is likely doable during (part of) a sprint, especially since we already have the TraceObjectSpace which does something similar. However, it would be interesting if we discuss a higher level API that you would like to have in order to integrate it into Gato. cheers, holger
participants (2)
-
Alexander Schliep -
hpk@trillke.net