Re: [ANN} Aleph 0.4.0 released, plus Manifold, Dirigiste, and a whole host of other libraries

2015-04-18 Thread Matthias Lange
In your examples, you put a let around the reads from timeouts. (let [_ (a/! (a/timeout 1000))] ... ) As far as i know, that is not neccessary. So your first example could be: (defn delayed-hello-world-handler [req] (d/-deferred (a/go (a/! (a/timeout 1000))

range function wrong in 1.7.0-beta?

2015-04-18 Thread Mathias De Wachter
Hi, this looks like quite a serious bug to me (at least it messed up my project): First taking the code taken from grimoire: clojurechess.position (defn range Returns a lazy seq of nums from start (inclusive) to end (exclusive), by step, where start defaults to 0, step to 1, and end to

Re: Are keys and vals guaranteed to return in the same order?

2015-04-18 Thread Allen Rohner
On Friday, April 17, 2015 at 4:40:07 PM UTC-5, Michael Blume wrote: In other people's Clojure code I sometimes see things like (zipmap (map some-fn (keys m)) (map other-fn (vals m))) If it were my code I'd be much more inclined to write (into {} (for [[k v] m] [(some-fn k)

Re: range function wrong in 1.7.0-beta?

2015-04-18 Thread Beau Fabry
Ouch. Suspect this is the problem https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LongRange.java#L161 Pretty sure that boolean should be round the other way. On Saturday, April 18, 2015 at 12:32:40 PM UTC-7, Mathias De Wachter wrote: Hi, this looks like quite a serious

Re: range function wrong in 1.7.0-beta?

2015-04-18 Thread Nelson Morris
Created http://dev.clojure.org/jira/browse/CLJ-1709 and http://dev.clojure.org/jira/browse/CLJ-1710 around the two issues. On Sat, Apr 18, 2015 at 4:08 PM, Beau Fabry imf...@gmail.com wrote: Ouch. Suspect this is the problem

Re: range function wrong in 1.7.0-beta?

2015-04-18 Thread Nelson Morris
I was trying to write a test.check property for this, and it seems to have a found a different bug around `count` and `range`. ``` *clojure-version* ;;= {:major 1, :minor 7, :incremental 0, :qualifier beta1} (require '[clojure.test.check :as tc]) (require '[clojure.test.check.generators :as

Re: [ANN} Aleph 0.4.0 released, plus Manifold, Dirigiste, and a whole host of other libraries

2015-04-18 Thread Zach Tellman
I suspect it would, I think I was just letting the mechanics of Manifold's let-flow macro color my judgment. Happy to accept any pull requests which make my core.async examples more idiomatic. On Apr 18, 2015 8:33 AM, Matthias Lange matthias.la...@gmail.com wrote: In your examples, you put a let

ANN Langohr 3.2.0 is released

2015-04-18 Thread Michael Klishin
Langohr [1] is a small Clojure client for RabbitMQ.  Release notes: http://blog.clojurewerkz.org/blog/2015/04/19/langohr-3-dot-2-0-is-released/ 1. http://clojurerabbitmq.info -- @michaelklishin, github.com/michaelklishin -- You received this message because you are subscribed to the Google

Re: range function wrong in 1.7.0-beta?

2015-04-18 Thread Alex Miller
Thanks all! Will definitely fix before release. -- 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 members are moderated - please be patient with your first post. To

Friend workflow for JWT

2015-04-18 Thread Jonathon McKitrick
Here's my workflow: (defn workflow-jwt-signed [ {:keys [credential-fn] :as jwt-config}] (fn [{{:strs [authorization]} :headers :as request}] (when (and authorization (re-matches #\s*Bearer\s+(.+) authorization)) (println Found auth authorization) (if-let [claims (try (-