This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-13
Channels
- # arachne (2)
- # architecture (23)
- # bangalore-clj (5)
- # beginners (35)
- # boot (79)
- # cider (6)
- # cljs-dev (34)
- # cljsrn (9)
- # clojure (164)
- # clojure-argentina (2)
- # clojure-austin (4)
- # clojure-italy (7)
- # clojure-russia (40)
- # clojure-serbia (1)
- # clojure-spec (76)
- # clojure-uk (36)
- # clojurescript (47)
- # cursive (14)
- # datascript (2)
- # datomic (8)
- # dirac (19)
- # emacs (29)
- # heroku (7)
- # hoplon (35)
- # jobs-rus (1)
- # juxt (2)
- # leiningen (1)
- # lumo (23)
- # mount (4)
- # off-topic (22)
- # om (16)
- # onyx (19)
- # parinfer (10)
- # pedestal (47)
- # proton (5)
- # re-frame (88)
- # rum (1)
- # spacemacs (33)
- # sql (29)
- # uncomplicate (1)
- # unrepl (131)
- # untangled (5)
- # yada (12)
@vikeri there's nodejs fs library, someone wrote thin wrapper around them in macchiato/fs, which you can use in Lumo
Alright, I was thinking about getting url-content and not file content, similar to planck.http/get
http://planck-repl.org/planck-namespaces.html
I solved it manually though, not very elegant but works for now:
(defn parse-response [func]
(fn [resp]
(let [body (atom "")]
(doto resp
(.on "data" (fn [d]
(swap! body #(str % d))))
(.on "end" #(func @body))))))
(defn get-url [url callback]
(.get https url (parse-response callback)))
Question about this error message: WARNING: No such namespace: roll.core, could not locate roll/core.cljs, roll/core.cljc, or Closure namespace "" at line 1
It's a bit misleading, because the directory with roll.core is on the classpath, just that I haven't required it..
if I explicitly require roll.core, then I can execute statements that refer to roll.core vars
Ah sorry this seems like ClojureScript itself generating the warning, still a bit misleading?
@mfikes Curious, have you compared the speeds of tach lumo
or tach planck
to doo phantom
? I expected the former to be faster, but a quick test gave me 32s, 29, 19s respectively
I only ran one test, cause so many of our tests require a browser environment. I tried commenting them out, but gave up 😛
@kauko self-hosted CLJS is supposed to be faster on JavaScriptCore
Lumo is just faster to start up
Planck may actually be faster to compile + run source