This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-31
Channels
- # adventofcode (1)
- # beginners (24)
- # boot (10)
- # cider (3)
- # cljsrn (11)
- # clojure (83)
- # clojure-dev (8)
- # clojure-russia (1)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (25)
- # cursive (6)
- # datomic (7)
- # docs (1)
- # emacs (5)
- # hoplon (14)
- # jobs (1)
- # luminus (1)
- # off-topic (13)
- # om (3)
- # onyx (10)
- # parinfer (3)
- # re-frame (1)
- # ring-swagger (1)
- # sql (1)
- # unrepl (62)
Is the general advice for cljs + react native still Reagent + wrapping custom components a la carte? (at least I was under the impression this was the plan early last summer)
@bja what do you mean by "a la carte"?
What are the source paths used for in cljs.build.api/build
? Does it not use the classpath? Are there any adverse effects to giving too many directories to this?
why is it building with cljs.build.api/build
-- my main.js
takes 2 minutes
to generate -- but, if I use lumo
/`lumo.build.api/build`, it takes 6 seconds
?
is it mostly JVM start time?
@dominicm All .cljs
files in the build
sources are compiled, even if they aren't required by your :main
or such, so yes, adding unnecessary, directories can slow the build
I think that for my purposes this is fine, but, I'll look into finding the directory containing :main
Cljs will search for all dependencies of files in build
sources in classpath
Boot-cljs for example only provides the temp-dir containing generated main namespace to build
It is enough to include main file or directory containing that to build
@johnjelinek JVM startup itself is fast, maybe 100ms, but loading Java classes and compiling Clojure namespaces (no need with cljs.jar, as it contains AOT compiled classes) can take some time, and then the Cljs compilation itself takes some time. But 2 minutes sounds quite a lot, e.g. Cljs quick start with cljs.jar takes 5 seconds for me.
I've been using the clj
command to build for my comparison with lumo
Does anyone have any numbers on memory usage for a typical webapp comparing cljs with clj?
@anmonteiro I seem to still be hitting the slow reload issue for npm-deps. Every other reload takes 15x longer. Even on 1.9.946. Any suggestions?
Which build tool are you using?
Okay, I can reproduce this with 946 and Figwheel
But seems to be fixed in Cljs master
This commit fixed this: https://github.com/clojure/clojurescript/commit/d4e19bffcd19208997c1ffb14e3077e62eedbdfc#diff-84ffd22349e5ca1fe6322cb0e379b3b1
Hmm. I wonder if that means setting install-deps -> false will fix it
thanks for looking into this!
Im an idiot for not trying that! Seems setting install-deps to false fixes the reload issue. So is definately this.
Which build tool are you using?