On Monday, November 12, 2018 at 9:54:11 PM UTC-6, Edward K. Ream wrote:

*Representing Archived Positions*
>
> *Aha*: ap's should just be dicts.  Leo's positions have _childIndex, v 
> and stack ivars, where stack entries are tuples of the form (v, 
> childIndex).  So the *ap dicts* will have the form:
>
> { 
>   'childIndex': p._childIndex,
>   'v': p.v.gnx,
>   'stack': [(v.gnx, childIndex) for (v, childIndex) in stack],
> }
>

 To this should be added:

    'headline': p.h,

This is good for debugging, and perhaps for other uses.
...


> *Redrawing the screen quickly*
>
> When the redraw is requested, *the python side code will know which nodes 
> are expanded*.  gui.redraw will call app.redraw (also on the python 
> side), which will create a serializable *redraw list*.
>

Well, only a fool would use a lisp-like list. cons, cdr, caddr anyone? 

Recent revs add app.make_redraw_*dict* and its helpers, including 
app.dump_redraw_*dict*. These were even simpler than I had hoped.  They 
lead to a big Aha, which I'll trumpet in a separate thread.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to