This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-02
Channels
- # announcements (3)
- # beginners (28)
- # calva (5)
- # clj-kondo (17)
- # cljsrn (1)
- # clojure (69)
- # clojure-dev (23)
- # clojure-europe (1)
- # clojure-italy (27)
- # clojure-japan (1)
- # clojure-nl (5)
- # clojure-spec (34)
- # clojure-uk (87)
- # cursive (93)
- # datomic (15)
- # duct (6)
- # emacs (3)
- # events (2)
- # garden (1)
- # graalvm (4)
- # jobs (3)
- # malli (1)
- # off-topic (13)
- # onyx (1)
- # pathom (8)
- # pedestal (2)
- # re-frame (13)
- # reitit (5)
- # shadow-cljs (13)
- # sql (13)
- # test-check (5)
- # testing (3)
- # yada (1)
I just realised that the name could 1. be the name of the drink or 2. the actual intensity of the "flavour"
> Blue Rat > "All the Energy of a Rat, > In a Can!"
I was going with intensity of flavour in my interpretation π
just started my second pot of coffee
haha! We get free coffee upstairs, but I like to chat to people and see what they are doing.
morning
Morning. This is an interesting page: https://www.bbc.co.uk/news/resources/idt-985b9374-596e-4ae6-aa04-7fbcae4cb7ee
Morning everyone! Any ideas how to profile loading of a namespaces? Some vars get loaded when requiring a namespace which leads to long REPL start-up time - how can I work out what is to blame?
comment them out?
wrap them in timing
?
namespace is loaded in the order that it is laid out on the page I believe
so just println timestamps on the page?
That would mean manually going into all the namespaces and putting printlns all over the place. I was hoping for a tool that would do that for me. It's a thought though. I'll try it out. Thanks!
If I needed to add another Maven repository to "find" artifacts that are not hosted on Sonatype/Maven Central, how would I do that..?
@dharrigan - I am assuming that I am using Maven as I have a ~/.m2 folder..?
If I'm using aero and I've got a uberjar, is there a way to override the config.edn in the jar file with one passed in via the -D
property?, i.e., "java -Dconfig="production.edn" -jar my-uber-jar.jar"
?
["/usr/bin/java", "-jar", "/usr/share/java/some-jar.jar", "default-profile", "some-other-arg"]
(defn -main [profile system-key]
(let [profile (-> profile edn/read-string keyword)
system-key (-> system-key edn/read-string keyword)
config (make-config profile)]
(ig/load-namespaces config)
(start-system! config system-key)))
Something like this@dharrigan if that makes sense?
:bootstrap-servers #profile {:default #env KAFKA_BOOTSTRAP_SERVERS
:dev "localhost:9092"
:test "localhost:9092"}
@dev964 in cljs apps you can get shadow to profile them for you
itβs JVM β¦
@guy - sorry to bother you about this all over again, but I am having trouble doing interop with this class:
I am trying to create an empty instance to then run the .open()
method but Clojure won't let me
gets me this:
Show: Project-Only All
Hide: Clojure Java REPL Tooling Duplicates (20 frames hidden)
2. Unhandled clojure.lang.Compiler$CompilerException
Error compiling src/ecmwf/core.clj at (21:17)
#:clojure.error{:phase :compile-syntax-check,
:line 21,
:column 17,
:source
"/home/oliver/Code/Cervest/ecmwf/ecmwf/src/ecmwf/core.clj",
:symbol new}
Compiler.java: 7114 clojure.lang.Compiler/analyzeSeq
Compiler.java: 6789 clojure.lang.Compiler/analyze
Compiler.java: 7094 clojure.lang.Compiler/analyzeSeq
Compiler.java: 6789 clojure.lang.Compiler/analyze
Compiler.java: 38 clojure.lang.Compiler/access$300
Compiler.java: 596 clojure.lang.Compiler$DefExpr$Parser/parse
Compiler.java: 7106 clojure.lang.Compiler/analyzeSeq
Compiler.java: 6789 clojure.lang.Compiler/analyze
Compiler.java: 6745 clojure.lang.Compiler/analyze
Compiler.java: 7180 clojure.lang.Compiler/eval
Compiler.java: 7131 clojure.lang.Compiler/eval
core.clj: 3214 clojure.core/eval
core.clj: 3210 clojure.core/eval
main.clj: 414 clojure.main/repl/read-eval-print/fn
main.clj: 414 clojure.main/repl/read-eval-print
main.clj: 435 clojure.main/repl/fn
main.clj: 435 clojure.main/repl
main.clj: 345 clojure.main/repl
RestFn.java: 1523 clojure.lang.RestFn/invoke
interruptible_eval.clj: 79 nrepl.middleware.interruptible-eval/evaluate
interruptible_eval.clj: 55 nrepl.middleware.interruptible-eval/evaluate
interruptible_eval.clj: 142 nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn
AFn.java: 22 clojure.lang.AFn/run
session.clj: 171 nrepl.middleware.session/session-exec/main-loop/fn
session.clj: 170 nrepl.middleware.session/session-exec/main-loop
AFn.java: 22 clojure.lang.AFn/run
Thread.java: 748 java.lang.Thread/run
1. Caused by java.lang.IllegalArgumentException
No matching ctor found for class ucar.nc2.NetcdfFile
Compiler.java: 2590 clojure.lang.Compiler$NewExpr/<init>
Compiler.java: 2667 clojure.lang.Compiler$NewExpr$Parser/parse
Compiler.java: 7106 clojure.lang.Compiler/analyzeSeq
Compiler.java: 6789 clojure.lang.Compiler/analyze
Compiler.java: 7094 clojure.lang.Compiler/analyzeSeq