What is the correct way to increment a value in an atom from multiple workers?

2017-02-10 Thread Francis Avila
Not all intermediates appear because in between your completed swap! and your log (really the deref of the atom) the value in the atom changed. You are using atoms correctly. Your swap! function would me more idiomatic if it used the threading macro (->) but otherwise is fine. If you really nee

What is the correct way to increment a value in an atom from multiple workers?

2017-02-10 Thread Laws
I don't know what I did wrong here. I wanted to build an accuracy test for some search matching code we wrote. We match text using things like Levenshtein distance and Jaro-Winkler scores. These parameters can be fine-tuned, so I wrote a small app that fires 10 million requests at our search m

ANN: ClojureScript 1.9.473, bugfix release

2017-02-10 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript Leiningen dependency information: [org.clojure/clojurescript "1.9.473"] This is a bugfix release. As always, feedback welcome! ## Fixes * CLJS-1931: Closure

Re: How to disable (or limit) test.check shrinking

2017-02-10 Thread 'Matt Bossenbroek' via Clojure
Perfect - that’s exactly what I’m looking for. Thanks! -Matt On February 9, 2017 at 4:04:17 PM, Gary Fredericks (fredericksg...@gmail.com) wrote: Wrapping the generator in `gen/no-shrink` will give you a generator that pretends it doesn't know how to shrink. On Thursday, February 9, 2017 at 11

Re: User input validations, design doubt

2017-02-10 Thread Rastko Soskic
Hey, thanks, I like your idea of utilizing closure as poor's man object (or vice versa if you like :) ) to encapsulate particular validators. However, one note is that I was opting for a more dynamism/flexibility like simply associating field with set of arbitrary composed set of validators. B

[ANN] riverford/durable-ref 0.1.2 - Durable reference types for clojure

2017-02-10 Thread Daniel Stone
Hi All, I've just released a new version of durable-ref to clojars, available as [riverford/durable-ref "0.1.2]. Since my last ANN I have added: - `atomic` references, with a reference dynamodb implementatino plus extension points. - `nippy` storage format using the high performance taoensso/n