3 ms·
In which scenarios do you use hot swapping?
by MichaelGG 9y ago
In which scenarios do you use hot swapping?
- hacker_9 9y agoJust about every scenario? Any algorithm I am working on, any function, any config variable I want to tweak in real time, any GUI I am developing, and so on.
- MichaelGG 9y agoSo for interactive work? Versus updating long running server jobs? I'm used to using the REPL in F#, but you can't redefine data types and have old code pick up on it - only new code. Such an approach is theoretically possible in Rust. Debuggers can do this for C++ to some extent.
- stingraycharles 9y agoClojure has a very REPL-driven workflow, where you connect your editor to a REPL (usually emacs+cider) and get instant feedback about anything, reload code on the fly, and inspect your program's state. This is a fundamental concept of pretty much any LISP, and is lacking in rust.