Conversation

That was one of the first things I tried :-) Need to get back to it. In general it's much easier to hot reload than classes because wrapping a function is sufficient. A bit harder to detect when to reset (e.g. if order or type changes).
2
11
Right: the ability to swap the function body out but keep the same hook state struck me as promising in the spirit of DisplayScript’s state cells. Here’s hoping!
1
1
Yeah, if you can know which node the keypress is going into you can do a much better job much faster than ex post facto diff reconstruction. tbh tho this is still going to be hard because so many keypresses yield inconsistent states, so maybe you want structural editing?
1
1
I think you could solve the reordering problem using flow-parser’s AST output actually (in the common case that lval bindings for calls to hooks stay constant). DS is robust to those intermediate states by speculatively evaluating each key press and unwinding if needed. So good.
1
1
Show replies