Question
Is it possible to split load-file into two steps:
(1) compile and
(2) load ?
Context
I'm doing hot code reloading to a remote machine. I don't want to ship the source over to the machine, then thane the machine load-file it. Instead, I want to ship a *.class file over to the machine, and have the machine just reload the namespace with the *.class
Thus, I want a way to:
(1) transform *.clj files to *.class files that can be hot-reloaded
and
(2) I need to be able to call remove-ns on them later (when they have to be replaced)
EDIT
I'm also perfectly happy using (require :reload ... ) -- again, as long as I can just provide it a *.class file instead of my *.clj files.
Thanks!