Fork me on GitHub
#clojurescript
<
2017-12-31
>
bja07:12:07

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)

pesterhazy10:12:35

@bja what do you mean by "a la carte"?

romain14:12:16

@bja did you check re-natal?

dominicm14:12:35

rm -rf fixed it 😄

dominicm14:12:58

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?

johnjelinek16:12:15

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?

johnjelinek16:12:25

is it mostly JVM start time?

juhoteperi17:12:44

@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

dominicm17:12:26

I think that for my purposes this is fine, but, I'll look into finding the directory containing :main

dominicm17:12:54

I'm handing over the class path directories, as these can contain source files.

juhoteperi17:12:32

Cljs will search for all dependencies of files in build sources in classpath

juhoteperi17:12:29

Boot-cljs for example only provides the temp-dir containing generated main namespace to build

dominicm17:12:31

Makes sense. I'll look at that code for inspiration.

juhoteperi17:12:23

It is enough to include main file or directory containing that to build

juhoteperi17:12:26

@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.

johnjelinek17:12:54

I've been using the clj command to build for my comparison with lumo

theasp17:12:44

Does anyone have any numbers on memory usage for a typical webapp comparing cljs with clj?

alexisvincent23:12:12

@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?

juhoteperi12:01:01

Which build tool are you using?

juhoteperi13:01:37

Okay, I can reproduce this with 946 and Figwheel

juhoteperi13:01:23

But seems to be fixed in Cljs master

alexisvincent13:01:53

Hmm. I wonder if that means setting install-deps -> false will fix it

alexisvincent13:01:58

thanks for looking into this!

alexisvincent13:01:16

Im an idiot for not trying that! Seems setting install-deps to false fixes the reload issue. So is definately this.