News for hackers. Stuff that matters.
Re:IRB session to existing ruby process. by djpowell on Wednesday January 25, 2012 @09:38AM (#3509826)
Here is something similar that I wrote for connecting a Clojure REPL to a Clojure/Java process:

https://github.com/djpowell/liverepl

Re:IRB session to existing ruby process. by zem on Wednesday January 25, 2012 @04:40PM (#3511873)
I'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 [2] https://github.com/icylisper/jark-client

Re:IRB session to existing ruby process. by irahul on Wednesday January 25, 2012 @11:35AM (#3510363)
Very cool. Does it share the address space i.e redefining methods affect the running code?
Re:IRB session to existing ruby process. by djpowell on Wednesday January 25, 2012 @12:09PM (#3510561)
Yes. 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.