This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-08
Channels
- # announcements (1)
- # babashka (18)
- # beginners (32)
- # calva (3)
- # chlorine-clover (4)
- # cider (14)
- # clj-commons (24)
- # clj-kondo (1)
- # clojure (34)
- # clojure-europe (4)
- # clojure-filipino (1)
- # clojure-uk (4)
- # clojuredesign-podcast (2)
- # clojurescript (6)
- # conjure (3)
- # core-async (2)
- # crux (10)
- # datahike (1)
- # datomic (3)
- # emacs (3)
- # esprit (20)
- # fulcro (4)
- # graalvm (11)
- # helix (13)
- # honeysql (4)
- # jobs (1)
- # lumo (1)
- # observability (4)
- # off-topic (11)
- # other-lisps (6)
- # pathom (6)
- # re-frame (13)
- # reagent (1)
- # reitit (1)
- # shadow-cljs (26)
- # web-security (2)
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/*xyzzy*
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')
clojure-rte.bdd-test>
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
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 https://clojuredocs.org/clojure.core.logic.fd/eq.
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.