logoalt Hacker News

sroerickyesterday at 8:04 PM1 replyview on HN

Can you explain how you sync back to code, in practice?

In other words - if you modify the run time, are you then able to mirror those changes in your codebase and then reboot?


Replies

dieggsytoday at 12:26 AM

tl;dr you just don't really do that.

99% of the time, you simply write the code or change in the sources first, then compile/run it in the runtime.

If you're modifying the runtime directly at the REPL without having sources, good luck? or you don't really care about persisting those changes. CL has pretty good introspection, so you could look at the source expression of a function defined at the REPL for example, if you really wanted to recover something (and happened to put the change in a function first), but this isn't always reliable.