title: hot swap code in lua
body: <p>I've heard mumblings around the internets about being able to hot-swap code in Lua similar to how it's done in Java, Erlang, Lisp, etc.  However, 30 minutes of googling for it has turned up nothing.  Has anyone read anything substantial about this?  Anyone have any experience doing it?  Does it work in LuaJIT or only in the reference VM?</p>
  
  <p>I'm more interested in the technique as a shortcut in development/debugging than an upgrade path in a live environment.</p>