This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-04
Channels
- # aleph (3)
- # beginners (37)
- # boot (45)
- # carry (1)
- # cljsrn (15)
- # clojure (78)
- # clojure-austin (2)
- # clojure-brasil (10)
- # clojure-czech (3)
- # clojure-dev (12)
- # clojure-dusseldorf (31)
- # clojure-hamburg (2)
- # clojure-italy (4)
- # clojure-poland (2)
- # clojure-russia (37)
- # clojure-spec (25)
- # clojure-uk (30)
- # clojurescript (160)
- # cursive (40)
- # data-science (1)
- # datomic (31)
- # emacs (7)
- # figwheel (4)
- # hoplon (73)
- # leiningen (1)
- # liberator (5)
- # luminus (7)
- # numerical-computing (1)
- # off-topic (31)
- # om (89)
- # onyx (66)
- # proton (5)
- # protorepl (1)
- # re-frame (18)
- # reagent (2)
- # ring (2)
- # spacemacs (1)
- # untangled (93)
- # vim (19)
- # yada (67)
heh, enabling (s/instrument) on all instrumentable vars does not do wonders for my game’s performance
invaluable for finding the 7 random spots where i’d goofed when converting to namespaced keywords, though 🙂
i’m not complaining, i absolutely expected this degree of perf degradation when instrumenting like every function in this tight loop, it was just funny to go from 60fps to 0.5 😄
guys, you remember me struggling with this: https://clojurians.slack.com/archives/clojure-spec/p1475364998003541
although I think it would be helpful if spec told me why exactly it couldn’t satisfy the predicate
i worked with a guy once whose most famous quote around the office was: <jlatt> dates suck <jlatt> f&@# time
i’ve had similar feelings when running into the “Couldn’t satisfy such-that predicate after 100 tries” error - i wish there was some way it could tell me how i’ve messed up
also I think test.chuck generator does not generate values with random timezones. maybe it should
@danielstockton :args (s/cat :arg1 (s/and ::query (s/+ (s/or :db map? :coll vector?)))
Has this changed? http://clojure.org/guides/spec#_spec_ing_functions
Argh, I think I want s/cat
instead of s/and
actually
now i see that s/and
is adding two specs
yep, thanks @minimal, somehow i was blind to that
We officially have clojure.spec-based code in production now — Clojure 1.9.0 Alpha 13 and all of our REST API search code relies on spec for validation and conformation!
@seancorfield any plan to write about it?
@jcsims I submitted a proposal to Clojure/conj about it… so if that gets accepted, I’ll have to write about it. If it doesn’t get accepted, I’ll probably still write it up for my blog, but in a very different format I expect.
Part of my concern is that core to a lot of what we’re doing with spec is something that @alexmiller said is essentially an anti-pattern (heavy use of s/conformer
).
That, and we are still at times struggling mightily with how to apply spec to some situations...