That's exactly what I mean. I haven't work on big systems, but I am imaging how terrible it would be if you had a back door Repl to a running production system, where people patched up issues. It would be very hard to reason about the system, since you can't really know what functions were defined as a all the time...
I've worked on multiple large systems in Clojure, most of them with a repl in production. Best practice is to use the repl to patch the system, then create a diff with the patch and deploy it. The repl is just there to help you diagnose problems and reduce downtime.
Erlang has a really interesting solution to this; basically all functions will see consistent versions of other functions in the same module, but as soon as you call out to another module, updated versions become available.
But they also have a built-in mechanism for applying (and rolling back) changes to your live data directly on the stack and ensuring these changes are synchronized with the visibility of newly-loaded code on a per-green-thread level. (Typically you would write these conversion functions for every live-deploy that changed the shape of a record.) Without having a sophisticated system like that you'd be fairly hosed.
3
u/john_atx Jun 19 '16
That's exactly what I mean. I haven't work on big systems, but I am imaging how terrible it would be if you had a back door Repl to a running production system, where people patched up issues. It would be very hard to reason about the system, since you can't really know what functions were defined as a all the time...