Re: Deep transients

2016-06-02 Thread Gal Dolber
Nice book! I've been looking for something like that, thanks for sharing! On Thu, Jun 2, 2016 at 10:24 PM Colin Fleming wrote: > BTW if you're interested in Specter, Brian Marick has an interesting book > which aims to teach Specter by implementing it: >

Re: Deep transients

2016-06-02 Thread Colin Fleming
BTW if you're interested in Specter, Brian Marick has an interesting book which aims to teach Specter by implementing it: https://leanpub.com/specter. I bought it but haven't had time to work through it yet, but from an initial skimming it looks very nice. On 3 June 2016 at 16:11, Mark Engelberg

Re: Deep transients

2016-06-02 Thread Mark Engelberg
That's an interesting idea. Maybe there's a way to build a set of Specter navigators that operate on transients, and then use its corresponding eqiuvalences for assoc-in, update-in, etc. On Thu, Jun 2, 2016 at 9:01 PM, Colin Fleming wrote: > Have you looked at

Re: Deep transients

2016-06-02 Thread Colin Fleming
Have you looked at Specter? I actually don't know if it uses transients under the hood or not, or if you can make it do so, but it seems like a good fit for the data manipulation problem, at least. On 3 June 2016 at 14:43, Mark Engelberg wrote: > Let's say I have an

Re: [ANN] Flake 0.4.0: Decentralized, k-ordered unique ID generator

2016-06-02 Thread Mark Engelberg
This is interesting. Is it faster than uuid for generation and/or comparing for equality? On Thu, Jun 2, 2016 at 6:03 PM, Max Countryman wrote: > Hi, > > I’m happy to announce a new release of Flake, the decentralized, k-ordered > unique ID generator. > > Flake 0.4.0 includes a

Deep transients

2016-06-02 Thread Mark Engelberg
Let's say I have an object represented by a series of nested maps: {:a {:b 1} :c {:d 2}} and now I'm going to be making a whole slew of edits to the submaps. To do this efficiently, I need to make all the levels of the map transients, because any update to the inner map also updates the outer

Re: test.check for-all reuses generated values?

2016-06-02 Thread Gary Fredericks
The generator should definitely always generate unique values (though only because gen/uuid does that), though as you say shrinking is different case that would be problematic for what you're doing. When you say "I don't see any other error" have you accounted for the fact that test.check

[ANN] Flake 0.4.0: Decentralized, k-ordered unique ID generator

2016-06-02 Thread Max Countryman
Hi, I’m happy to announce a new release of Flake, the decentralized, k-ordered unique ID generator. Flake 0.4.0 includes a number of important breaking changes, but by far the most important is dropping `generate` in favor of `generate!` which now returns a ByteBuffer. Previously `generate`

Re: lazy-seq and somewhat greedy apply

2016-06-02 Thread Andy L
> 1- concat is defined to have 4 different arities: 0-arg, 1-arg, 2-arg, > 3+args. In order to figure out which arity to use, apply has to realize at > least as many elements as the minimum number of args required by the > largest arity, which in this case is 3 > 2- apply has a small bug that

Re: lazy-seq and somewhat greedy apply

2016-06-02 Thread Nicola Mometto
Two things at play here: 1- concat is defined to have 4 different arities: 0-arg, 1-arg, 2-arg, 3+args. In order to figure out which arity to use, apply has to realize at least as many elements as the minimum number of args required by the largest arity, which in this case is 3 2- apply has a

lazy-seq and somewhat greedy apply

2016-06-02 Thread Andy L
Hi, I have a riddle I am not sure how to solve: ``` user=> (defn just-a-demo-seq[] (println "in just-a-demo-seq") [1 2 3 4 5 6 7 8 9]) #'user/just-a-demo-seq user=> (def do-not-print-it (apply concat (repeatedly just-a-demo-seq))) in just-a-demo-seq in just-a-demo-seq in just-a-demo-seq in

Re: [ANN] Clojure 1.9.0-alpha4

2016-06-02 Thread Ghadi Shayban
Let bindings from thbe macroexpansion of (let [[x & xs] v] ...) ;; old macroexpand [G__1 v vec__2 G__1 x (nth vec__2 0 nil) xs (nthnext vec__2 1)] ;; new macroexpand [G__6 v vec__7 G__6 seq__8(seq vec__7) first__9 (first seq__8) seq__8(next

test.check for-all reuses generated values?

2016-06-02 Thread Tom
Hi, I'm doing something like: (def valid-email (gen/fmap (fn [[name domain]] (str name "@" domain)) (gen/tuple (gen/not-empty gen/string) gen/uuid))) (defspec test-email 100 (for-all [email valid-email] (tx-email! (get-in system [:database :conn]) email) The

[JOB] CLJS / React Native Developer needed in Berlin - remote possible!

2016-06-02 Thread Brave Clojure Jobs
"We are looking for a Clojure (Script) Developer, preferably with experience in React Native and re-frame. Status is a hybrid instant messaging platform and DApp (distributed application) browser for cryptocurrencies and smart contracts. We intend to play a part in shaping the future of

Re: ANN: ClojureScript 1.9.14, clojure.spec port

2016-06-02 Thread Shaun LeBron
Great stuff, thanks! I'm not familiar, but is the `clojure.spec.gen` namespace going to be ported? On Wednesday, June 1, 2016 at 1:01:58 PM UTC-5, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > README and source code:

Re: ANN: Specter 0.11.0, performance without the tradeoffs

2016-06-02 Thread 'Gunnar Völkel' via Clojure
Following the convention not to use `def` in non-top-level positions, you should use `intern` instead of `def`. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Is it possible / is support planned to add docstrings to clojure.spec specs?

2016-06-02 Thread Russell
Just been trying out clojure.spec for the first time, looks really nice. It would be good to be able to do something like the following: (clojure.spec/def "The name of the stage, which API Gateway uses as the first path segment in the invoke Uniform Resource Identifier (URI)."