This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-03
Channels
- # announcements (13)
- # babashka (1)
- # beginners (4)
- # calva (13)
- # clojure (13)
- # clojure-europe (12)
- # clojure-norway (2)
- # community-development (7)
- # conjure (9)
- # core-typed (5)
- # cursive (5)
- # data-science (15)
- # datomic (2)
- # fulcro (10)
- # hyperfiddle (3)
- # leiningen (1)
- # missionary (65)
- # nbb (6)
- # off-topic (3)
- # shadow-cljs (11)
- # specter (3)
- # vim (8)
it is more dynamic. you can just supply a map with bindings, it doesn't have to be fixed like the binding
vector
That’s what the doc says, but feeling like normally people only use binding
. Haven’t seen a scenario of with-bindings
.
well, for most cases you use binding
yes. sometimes you just need something more dynamic. pretty sure nrepl uses with-binding
in some place
There is a partial one in https://clojure.atlassian.net/browse/CLJ-2112
I’m wanting to benchmark namespace compile time. I seem to remember there being a way to get per-namespace compile times logged but can’t remember if that was stock or with a forked compiler. Does anyone have any tips? I’m thinking I might need to fork the compiler to add some timing statements.
You would need to modify the compiler for that. I've done so in the past, not sure I could lay hands on it though without some hunting
No worries, I can figure it out 🙂
Ah yeah that is handy too thanks
https://clojuredocs.org/clojure.core/compile Would calling this from a REPL suffice? It seems like it would not be super granular and only offer timing about the ns as a whole. A REPL context may presume too much is already loaded, as well, so I'm not sure how that will affect compilation times if you want a representation of 'cold start' compilation.