Re: Paul Fernhout wants edit-and-continue in python
Luke Kenneth Casson Leighton <lkcl <at> lkcl.net>
2007-04-02 11:58:09 GMT
integration with leo - http://leo.sf.net - would be a good start.
that would give you the GUI part, and context-sensitive execution.
you _might_ have to do something similar to what gcc currently
do, which is to hook in to eevvvveerryyything via __blahblah__
functions, for memory access eevveryyyything, in the "profiling".
but that shouldn't be too hard (but would result in a performance
hit - oh well, can't have everything).
execution itself (from leo) could be performed via "yield".
ok. you can obtain a list of all variables (global etc.)
that a particular function modifies, right?
so, before you go into any function, right, you record the
in fact, you might be able to record "state" on a per-line
basis (bit extreme i know) and basically have an "undo" stack
yeh. it's very simple. look up how "undo" is implemented,
in editors, and then treat all variables like that.
then, you can keep a record (using Leo) of which lines were
modified, and use that to calculate which bits need JIT
recompilation and how far back the "undo" stack you need to