This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-23
Channels
- # beginners (81)
- # boot (1)
- # cider (1)
- # cljs-dev (15)
- # cljsrn (1)
- # clojure (27)
- # clojure-europe (9)
- # clojure-hamburg (2)
- # clojure-italy (6)
- # clojure-nl (6)
- # clojure-spec (10)
- # clojure-uk (33)
- # clojurescript (9)
- # clojurex (5)
- # cursive (14)
- # datomic (21)
- # devcards (2)
- # duct (72)
- # figwheel (1)
- # fulcro (6)
- # kaocha (3)
- # leiningen (5)
- # nrepl (10)
- # off-topic (65)
- # parinfer (12)
- # re-frame (68)
- # reagent (1)
- # reitit (14)
- # shadow-cljs (65)
- # spacemacs (6)
- # sql (4)
- # tools-deps (2)
- # yada (1)
I have a question Is there any other good library for benchmark?
I found https://github.com/hugoduncan/criterium https://github.com/davidsantiago/perforate .
criterium is what most folks use I think? @netpyoung
I had not heard of the perforate lib linked above before, but it uses criterium, and builds on top of it.
Oh, cool... I was rushing between rooms so I didn't actually click through...
@seancorfield thank you. I tried criterium It looks like unmaintained. but It works well. and I also found another. https://github.com/ptaoussanis/tufte
@netpyoung Don't mistake "not updated recently" for "unmaintained" -- a lot of Clojure libraries are "complete" (because they often focus on "do one thing well" and try to be composable with other libraries).
@seancorfield okay thank you for correcting my mistake.
@souenzzo still got it working last night: https://nextjournal.com/mk/clojure-prepl-addlib 🙏
@mseddon Here's the main tool from thi-ng: https://github.com/thi-ng/babel Just started using that recently, too
Also, stop spreading that the JVM has a slow startup time... Clojure starts up slow as molasses, yes, but that's not the JVMs fault
i'm using deps.edn to include a package from maven, and also an artifact from that same package using :classifier
. in a pom.xml i'd include the main package as a dependency, then another entry for the artifact using the extra <classifier>
tag, but i can't do that in deps.edn because dependencies are unique keys. is there a way around this?
{:deps {
{remote.package/parser {:mvn/version "1.0.0"}
remote.package/parser {:mvn/version "1.0.0"
:classifier "additional-artifact"}}}}
probably a dumb question but i'm stumpedI have a quick tools.deps question. I have a simple app, that pulls in a simple lib via :local/root
. The lib adds a repository via :mvn/repos
. The deps resolution fails for the app, unless I explicitly add the repository def it it as well. Is this expected behavior?
It's expected behavior based on how :local/root
deps are handled today. There are a number of issues around transitive behavior surrounding :local/root
so I don't know whether this would be considered a bug or by design. Perhaps ask in #tools-deps which has a smaller audience and where the question is more likely to be seen? I'd suggest tagging Alex Miller but I suspect he's pretty focused on prep for the Conj and getting 1.10 out the door at this point.
Thanks @seancorfield will post this over there. On a similar note, I’ve been doing some reading (including a few of your posts/notes) on monorepos, etc. do you have any examples around of you guys setup with deps?
Nothing public, I'm afraid. Our work stuff is almost all proprietary and internal (although a few little things have been open sourced).
Old thread but came up in search. There's a whole blog post series about "deps.edn and monorepos" nowadays https://corfield.org/blog/2021/02/23/deps-edn-monorepo/.
Evening guys, how would one check if a collection (for example vector) is ordered in idiomatic clojure?
(ordered? [1 2 3]) ;; true
(ordered? [2 1 3]) ;; false
@lsund https://stackoverflow.com/questions/21539362/how-to-verify-if-a-list-is-sorted
@lsund <=
and <
are variadic. So (apply <= [1 2 3])
works.
If your comparator f
isn't variadic though, you can do
(->> data (partition 2 1) (every #(apply f %)))