3 ms·
The main difference is that you can modify your $LOAD_PATH at runtime in Ruby, while on the JVM it's fixed at startup. This is particularly ironic because it's
by technomancy 16y ago
The main difference is that you can modify your $LOAD_PATH at runtime in Ruby, while on the JVM it's fixed at startup.
This is particularly ironic because it's a cultural norm in the Ruby community to launch lots and lots of short-lived ruby processes to run your tests, while in Lisp-land it's much more common to have very long-running repl sessions with uptimes often lasting in the days range.
- weavejester 16y agoYou could put a temporary directory on your class path, and then unzip any jars into it. You could then reload Clojure source files, although I'm not sure if you'd be able to do anything about Java class files without a custom class loader.
- thangalin 16y agoThe CLASSPATH can be modified at runtime by writing custom class loaders. It isn't trivial, but it is possible. I had to do it to implement Hierarchy: http://www.whitemagicsoftware.com/software/java/hierarchy/ http://www.whitemagicsoftware.com/software/java/hierarchy/