This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-27
Channels
- # adventofcode (1)
- # announcements (5)
- # babashka (11)
- # beginners (41)
- # biff (16)
- # calva (2)
- # clj-together (1)
- # clojure (9)
- # clojure-austin (8)
- # clojure-doc (1)
- # clojure-europe (45)
- # clojurescript (4)
- # clr (14)
- # datomic (13)
- # figwheel (1)
- # fulcro (11)
- # introduce-yourself (2)
- # lsp (31)
- # malli (6)
- # off-topic (3)
- # releases (2)
- # reveal (8)
- # schema (1)
- # shadow-cljs (13)
- # spacemacs (10)
- # timbre (8)
- # transit (3)
- # xtdb (5)
(defprotocol IFoo
(bar [foo]))
(def ^:dynamic *dynamic*)
(deftype DynamicFoo [^:volatile-mutable baz]
IFoo
(bar [this]
(binding [*dynamic* 84]
(set! baz 42))
baz))
this throws an error that baz
is not a mutable field. is this expected?
doing any of the following seems to resolve the error:
• move the set!
outside of the binding
• move the return of baz
inside the binding
• change it to (set! (.-this baz) 42)
inside the binding
maybe related to https://clojurians.slack.com/archives/C03S1KBA2/p1671643575912139 ?
I posted this on #kit-clj - but it might be related to clojure docker image https://clojurians.slack.com/archives/C02T4GSBSJ1/p1672173230776419 . Trying build an image for arm64 on amd64 platform using buildx . Any experiences with this ?
you probably need the multi platform capable buildx. we use this in the babashka build: https://github.com/babashka/babashka/blob/master/.circleci/script/short_ci.clj#L196
thanks, I think that helped but the underlying issue seems to be some changes from java 11 to java 17 https://stackoverflow.com/questions/61301818/java-failed-to-exec-spawn-helper-error-since-moving-to-java-14-on-linux