3 ms·
Here is something similar that I wrote for connecting a Clojure REPL to a Clojure/Java process: https://github.com/djpowell/liverepl https://github.com/djpowel
by djpowell 15y ago
Here is something similar that I wrote for connecting a Clojure REPL to a Clojure/Java process:
https://github.com/djpowell/liverepl https://github.com/djpowell/liverepl
- irahul 15y agoVery cool. Does it share the address space i.e redefining methods affect the running code?
- djpowell 15y agoYes. Fire up multiple live-repls and they'll all be connected to the same address-space, and function redefinitions in one will instantly be visible in the others. Fun if you're playing around with Clojure's concurrency constructs.
- zem 15y agoI'm one of the developers of jark[1][2], which does something vaguely similar [maintains a persistent jvm into which clojure code can be loaded and to which a clojure repl can be connected], and we decided to go with a native client, so that you can attach to a remote jvm without having java installed. the cost is running an nrepl server in the jvm, but if you can manage that you could probably just reuse our client (I'm in the middle of pushing all jark functionality into the server so that the client is just an nrepl client and a repl) [1] https://github.com/icylisper/jark-server https://github.com/icylisper/jark-server [2] https://github.com/icylisper/jark-client https://github.com/icylisper/jark-client