This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-27
Channels
- # announcements (11)
- # aws (1)
- # babashka (15)
- # beginners (345)
- # calva (5)
- # chlorine-clover (14)
- # clj-kondo (40)
- # cljfx (30)
- # clojure (174)
- # clojure-australia (6)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-uk (20)
- # clojurescript (29)
- # conjure (1)
- # core-async (53)
- # cryogen (3)
- # cursive (8)
- # datomic (12)
- # emacs (5)
- # events (4)
- # fulcro (27)
- # graalvm (1)
- # graphql (9)
- # helix (8)
- # keechma (11)
- # london-clojurians (1)
- # malli (12)
- # off-topic (12)
- # pathom (8)
- # portal (1)
- # re-frame (19)
- # reagent (13)
- # reitit (16)
- # ring-swagger (2)
- # sci (38)
- # shadow-cljs (31)
- # spacemacs (3)
- # specter (14)
- # sql (14)
- # tools-deps (31)
- # vim (4)
- # xtdb (9)
How can I add data_readers to codox?
(let [top (some-> (gdom/getElement id)
(ocall :getBoundingClientRect)
(oget :top))]
(if (and (number? top) (pos? top))
Isn't this valid code? Figwheel is giving me a warning pointing at pos? cljs.core/>, all arguments must be numbers, got [#{nil clj-nil} number] instead
.@web20 I am not a ClojureScript expert, but at least in Clojure/Java future
creates a separate thread. JavaScript runtimes have only one thread, and cannot create others.
@U0CMVHBL2 That's true, I thought there might be a js-native solution to mimic future
's behaviour on cljs
Without multiple threads, the best I can imagine is just calling a function and blocking until you get the return value back.
might make sense to have a future-in-webworker
function that can execute the form in a web worker or similar
yes, technically webworkers do allow multiple execution threads, but without shared memory between them the way Clojure/Java has.
in Clojure - you cannot replicate that in JavaScript - which destroys any portability benefits
When I miss an extern, somehow, I get ie. Uncaught TypeError: http://ZR.Lc is undefined How can I debug what is missing? Is that even possible from the compressed output?
@kah0ona look for the "pseudo-names" compiler option
thanks @pesterhazy
Hi everyone, For some reason I am getting these warnings when source-maps are enabled. I am using shadow-cljs. I may have configured it funny. Please help.
Open one of those .map urls in a separate browser window and look in devtools how does the response look like
Hi @U08E3BBST, the files seem to be empty.