This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-06
Channels
- # adventofcode (112)
- # announcements (6)
- # beginners (197)
- # boot (3)
- # calva (52)
- # cider (25)
- # clara (14)
- # cljdoc (6)
- # clojure (147)
- # clojure-austin (6)
- # clojure-berlin (7)
- # clojure-brasil (2)
- # clojure-europe (3)
- # clojure-india (4)
- # clojure-italy (8)
- # clojure-new-zealand (2)
- # clojure-nl (7)
- # clojure-russia (7)
- # clojure-spec (29)
- # clojure-uk (63)
- # clojurescript (103)
- # core-async (5)
- # cursive (11)
- # datomic (16)
- # devcards (1)
- # emacs (28)
- # figwheel-main (3)
- # fulcro (97)
- # graphql (4)
- # hyperfiddle (1)
- # jobs (1)
- # kaocha (3)
- # lumo (9)
- # nrepl (4)
- # off-topic (29)
- # onyx (1)
- # pathom (4)
- # pedestal (8)
- # re-frame (24)
- # reagent (1)
- # reitit (13)
- # ring-swagger (7)
- # rum (11)
- # shadow-cljs (79)
- # sql (46)
- # tools-deps (67)
- # yada (8)
@rs By the way, you can just require core.async
exactly the same way you would do so in Clojure. An example in lumo
is:
(require '[clojure.core.async :refer [go >!] :as a])
(I also tried to repro what you describe above, and was unable to do so, at least in the lumo
REPL; perhaps compilation via build
differs, but if it did, that would be a defect.)hey @mfikes I tried using built-in core.async
but get this error after typing exactly what you put there:
No such namespace: cljs.core.async, could not locate cljs/core/async.cljs, cljs/core/async.cljc, or JavaScript source providing "cljs.core.async"
I thought this was because self-hosted cljs didn't have core.async
hence the need for https://github.com/mfikes/andare
@rs Oh, I didn't mean to imply that there is a built-in core.async
. You need to use Andare. What I was referring to is that you can use clojure.core.async
as the namespace and you don't need to treat macros specially. See https://clojurescript.org/guides/ns-forms
Another question (I'll try and limit myself to one a day ):
has anyone had any success pulling in clojurescript libs from clojars while building with Lumo, without needing the JVM?
I have been trying calvin (https://github.com/eginez/calvin) to do this but it seems a bit flakey, for example it fails to pull reagent 0.8.1
but succeeds with reagent 0.6.0-alpha2
. I'm digging into why now