Fork me on GitHub
Jim Newton09:08:14

Can someone help me understand this error message? Why is it complaining about java.util.concurrent.Future ?

clojure-rte.bdd-test> (def ^:dynamic *xyzzy* false)
clojure-rte.bdd-test> (map? @*xyzzy*)
Execution error (ClassCastException) at clojure-rte.bdd-test/eval15290 (form-init5713417271367683958.clj:26770).
class java.lang.Boolean cannot be cast to class java.util.concurrent.Future (java.lang.Boolean and java.util.concurrent.Future are in module java.base of loader 'bootstrap')

Jim Newton12:08:14

is there a %something I can use in (format ...) which will cause the object to be printed with print-method rather than printing with its default print?

(defmethod print-method Bdd [bdd w]
  (.write w (format "#<Bdd %s %s %s>" (:label bdd) (:positive bdd) (:negative bdd))))
this is my print-method but when (:positive bdd) is another object of the same type, it prints as #<Bdd Short true [email protected]> rather than making a recursive call to print-method

Jim Newton15:08:04

what is the correct way to determine whether two values are the same object as opposed to simply being = ? I found the function eq but it has


(doc identical?)

👍 1
Jim Newton15:08:20


👍 1
Dimitar Uzunov21:08:28

What are the best practices on doing a docker build or equivalent with tool-deps? Should I create a jar and run it in the container?


@dimitar.ouzounoff Overall, I think I've seen most folks end up going with an AOT'd "uber" JAR file run inside Docker via java -jar.


I think that gives you the fewest moving parts and the most "standard" approach.