Re:Ask HN: Common Lisp vs Clojure for web apps?
by JulianMorrison on Saturday December 05, 2009 @02:25PM
(#978459)
I think your problem is more likely to be with class loaders than class paths. Clojure probably has to set up its own, to allow all the monkey patching it does, including dynamically setting the classpath. If JDBC was loaded already, it will be able to see Clojure objects passed as parameters, but not able to find the class by reflection on its name.
[dead]
Re:Ask HN: Common Lisp vs Clojure for web apps?
by inklesspen on Tuesday December 08, 2009 @01:20AM
(#983181)
Wait, what? Wait, WHAT?
Maybe things have changed in the interim?
If the OP chooses Clojure, then I'd note that the Java classpath really demands you respect its inflexibility. add-classpath is a second class citizen; I've had JDBC (the Java DB manager) swear up and down that it registered the MySQL driver I loaded via add-classpath. But come time to read from the DB, it only worked when I ensured that the MySQL driver was loaded at the beginning in the normal way. What that implies is that if I want to load a new DB driver, I'd probably have to restart the JVM. (Or do something absurdly tricky, or debug more deeply.)