Fork me on GitHub

I have a question Is there any other good library for benchmark? I found .


Which library are you using for benchmark??


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.


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


In boot, how do I add a repo in addition to maven ?


@mseddon Here's the main tool from thi-ng: Just started using that recently, too


Ah! Great, thanks!


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

👍 8

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 stumped


I 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).


gotcha, figured as much but just thought i’d ask 🙂


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


Cool thank you. strange that I did not find that post


@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 %)))