Re: [ANN] Clojure Programming Cookbook

2016-11-15 Thread Alan Thompson
Ordered! Looking forward to seeing it. :) Alan On Mon, Nov 14, 2016 at 7:08 PM, Nicolas Modrzyk wrote: > Hi Clojure people, > > So after one year and 23 days, (that would be 388 days) the IT book I was > working on with Makoto (merci!) finally got published! > > It has been a long battle with

Help me understand what part of this code is slow, and how to make it faster?

2016-11-15 Thread Didier
Hey all, I came upon a benchmark of F#, Rust and OCaml, where F# performs much faster then the other two. I decided for fun to try and port it to Clojure to see how Clojure does. Benchmark link: https://github.com/c-cube/hashset_benchs This is my code for it: https://gist.github.com/didibus/1

How to check type of generic parameter with spec?

2016-11-15 Thread Eunmin Kim
Hi! I had a question while reading Functional Programming in Scala book. The following code is Exercise 2: // Exercise 2: Implement a polymorphic function to check whether // an `Array[A]` is sorted def isSorted[A](as: Array[A], gt: (A,A) => Boolean): Boolean = { @annotation.tailrec def go(n

Spec validation cache?

2016-11-15 Thread Gal Dolber
I'm having an issue with clojure.spec, its been great in more ways than I expected but it's slowing down everything too much for development. On one side when running the app on development with all fspecs instrumented and on the other when running the tests. For the first case, most of the fdef f

Re: Clojure Repos - Some Dependencies are Not In Clojars

2016-11-15 Thread Didier
I feel like even if Clojars is not firewalled, you should probably get OSS approval from your legal team before important Clojars libs. Just a suggestion. On Wednesday, 9 November 2016 05:55:41 UTC-8, Vitaly Peressada wrote: > > Hi All, > > FWIK the community uses both Maven Central and Clojars.