Fork me on GitHub
#tools-deps
<
2019-02-12
>
martinklepsch09:02:22

When using :local/root with a .jar will that resolve transitive dependencies of the jar by inspecting the pom.xml inside that jar? And is it standard that pom.xml is included in the jar?

borkdude09:02:31

Is that supposed to work? I’m surprised

borkdude09:02:21

Yeah, it’s documented: Local jar: {:local/root "/path/to/file.jar"}. TIL

👏 5
martinklepsch09:02:58

Yeah, it's pretty neat. I just wasn't aware that pom.xml is always(?) part of the jar so thought that this couldn't work with transitive deps.

Alex Miller (Clojure team)13:02:44

It is normally part of the jar.

stijn14:02:59

what might be the reason that it takes a very long time to get a REPL up? I just upgraded my ArchLinux and before it took a few seconds, now, minutes. I believe the only change is the upgrade of the jdk 8.u192-1 -> 8.u202-1.

stijn14:02:35

If I don't include the 'dev' profile, which has some machinery with tools.namespace (and a logback.xml) in it, it goes back to seconds.

Alex Miller (Clojure team)14:02:47

well the main thing it’s doing is network I/O so that would be my default area of concern

Alex Miller (Clojure team)14:02:18

do some stack traces with ctrl-\ while it’s working and see what it’s doing

Alex Miller (Clojure team)15:02:21

8.u201 (and 202) include new buffer overrun checks in Linux, not sure if that would affect visible perf: “Additional safeguards to protect against buffer overruns in native code have been enabled on Linux. If a buffer overrun is encountered the system will write the message “stack smashing detected” and the program will exit. Issues of this type should be reported to your vendor.”

stijn16:02:41

if I switch to java 11 it's back to 'seconds'

stijn16:02:51

it looks like the compilation of namespaces that are required from user is slow. when these are uncommented, it's fast on 8.u202 too

Alex Miller (Clojure team)17:02:30

hmm, still not clear to me what the difference is

bronsa17:02:55

could you post your user.clj maybe?