has anybody built a way to hot reload a running re...
# scripting
m
has anybody built a way to hot reload a running repl?
i
what/how/why in particular you want to be able to reload?
m
my goal was to: 1) build some classes 2) start a repl with locally build artifacts available on classpath (in addition to other libraries) 3) try out some stuff with the code on the classpath 4) change one of those classes on the classpath and have them automatically refresh in the context of the REPL ideally, i would plug this into gradle's
--continuous
mode to automatically do most of this work for me that's my happiest case
i
Interesting case, thanks for the input. I have to think about it. I guess you’ll need to reevaluate all previous statements, that were compiled/evaluated with the affected classpath. I can imagine how to approach this via history management in the current implementation, but I guess there will be some difficulties on the way. But we’ll try to take the case into account in the ongoing redesign.
m
thanks!
and glad to hear that some more cool stuff is coming down the pipe
i
yep, scripting improvements are being planned, stay tuned. 🙂
👍 2