Thanks for the reply guys, I just saw this.
@neilcsmith what I was trying to achieve is merging HotSwap in Processing with REPL mode. In REPL mode you can do anything on the fly without reloading the rendering window (also importing libraries or initializing variables). Just I don’t feel confident and sometimes crashes (for example trying to initialize FFT analysis in Minim, I think is because it is a big array of floats). From REPL then you can codify whatever you wrote in a Processing function, and what I was trying to achieve is taking the function obtained from REPL console in the running code in Hot Swap without reloading the main sketch. In REPL console is possible, so I assumed that you can combine both and do real on the fly programming.
I am not an expert in this, that’s why I was asking, and I would need it more in a context for art installations.