[ANN] Clojure 1.7.0-alpha5 now available

2015-01-10 Thread Alex Miller
Clojure 1.7.0-alpha5 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-alpha5/ - Leiningen: [org.clojure/clojure 1.7.0-alpha5] A few of the highlights in alpha5: 1) New transducer arities for map-indexed, distinct, and interpose. The transducer

Re: channels operations

2015-01-10 Thread Erik Price
Not sure if it’s “proper”, but you could just alts! twice on all three channels: (let [[_ p1] (alts! [player1-ch player2-ch timeout-ch]) [_ p2] (alts! [player1-ch player2-ch timeout-ch])] (cond (= p1 timeout-ch) No players played. (= p2 timeout-ch) (str p1 played, and the other

ANN: Om 0.8.0

2015-01-10 Thread David Nolen
I'm happy to announce the release of Om 0.8.0. There's nothing much to say over the last rc1 release. The biggest change is how you include Om as a dependency: [org.om/om 0.8.0] https://github.com/swannodette/om Have fun! David -- You received this message because you are subscribed to the

channels operations

2015-01-10 Thread Jeremy Vuillermet
Hi, I'm learning core.async with a game I'm developing. This is a one on one game where players have 5 seconds to play. If only one has played before 5 seconds, he is the winner. If none has played, I randomly choose a winner. I have 3 channels, player1-channel, player2-channel and

Re: [ClojureScript] ANN: Om 0.8.0

2015-01-10 Thread Dom from (paren)
Cool! Thanks, David. I'm curious about the new dependency namespace. It looks like om.org is registered to OM International Services Ltd. Are you associated with them? On Sat, Jan 10, 2015 at 12:27 PM, David Nolen dnolen.li...@gmail.com wrote: I'm happy to announce the release of Om 0.8.0.

Re: channels operations

2015-01-10 Thread Chris Freeman
You might want to put it into a loop, keeping the 'played' values as the loop bindings. (I imagine [false false] in my head, but whatever is meaningful to you.) If the timer dings, you evaluate the winner. If you get a value on a player channel and the other player HAS played, you might recur

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2015-01-10 Thread Mike Anderson
Thanks Matt! I've just release Vectorz 0.45.0 including your changes. A lot of sparse operations are much faster now! On Monday, 29 December 2014 21:56:30 UTC+8, Matt Revelle wrote: Yes, will do. On Dec 28, 2014, at 9:58 PM, Mike Anderson mike.r.anderson...@gmail.com wrote: Looks like