4 ms·
Remote repl can be done in Python/Ruby in hackish ways. It's the transparent hot code swap which hasn't been done yet. I haven't investigated it much, but Armi
by irahul 15y ago
Remote repl can be done in Python/Ruby in hackish ways. It's the transparent hot code swap which hasn't been done yet.
I haven't investigated it much, but Armin Ronacher(flask lead developer) has said reliable code reloading when a module changes is near about impossible, because there is no reliable way to figure out the dependencies. For the flask dev server, he defaulted to a clean restart.
From what little I have investigated, same holds for Ruby.
If attaching to a running process interests you, you will find these articles interesting:
http://weblog.jamisbuck.org/2006/9/25/gdb-wrapper-for-ruby http://weblog.jamisbuck.org/2006/9/25/gdb-wrapper-for-ruby
http://weblog.jamisbuck.org/2006/9/22/inspecting-a-live-ruby-process http://weblog.jamisbuck.org/2006/9/22/inspecting-a-live-ruby...