Re: core.async and channel flushing

2016-08-29 Thread Jeremy Vuillermet
I'm also wondering how this could be done. I have a similar use case On Tuesday, October 22, 2013 at 9:30:08 AM UTC+2, Alexander L. wrote: > > Sorry for bringing this back up, but I was wondering if anyone figured out > something better... > > On Saturday, September 14, 2013 10:49:08 PM UTC+3, Al

Looking to develop an app to help Live Streamers (Twitch, Facebook Live ...) interact with their viewers.

2016-08-10 Thread Jeremy Vuillermet
Hi, I'm developing with clojure/clojurescript since 3 years and I'm currently looking to create an app to help live streamers (Twitch, Facebook live, Periscope, YouTube, HitBox etc ...) interact with their viewers. Right now, the only way to interact is using the chat. Really quickly the chat

Re: find shorter clojure code automatically

2016-03-04 Thread Jeremy Vuillermet
oc but I'll be faster in some cases with the cheatsheet tooltips. http://blog.mattgauger.com/blog/2014/09/15/clojure-code-quality-tools/ is also very interesting with explanations on other analysis tools On Thursday, March 3, 2016 at 7:33:55 PM UTC+1, Jeremy Vuillermet wrote: > > Hell

Re: find shorter clojure code automatically

2016-03-04 Thread Jeremy Vuillermet
Thanks a lot for your responses. I'm checking out everything and will post further findings or comments. On Thursday, March 3, 2016 at 7:33:55 PM UTC+1, Jeremy Vuillermet wrote: > > Hello, > > Every time I go to a code base I don't know, I discover new functions from &g

find shorter clojure code automatically

2016-03-03 Thread Jeremy Vuillermet
Hello, Every time I go to a code base I don't know, I discover new functions from clojure api that I was not aware of. Those are usually simple shortcut functions that don't do much but make the code shorter. Just doing a research on this group for "shorter code" and "better code" there are s

Re: compare-and-set deep value in hashmap atom

2016-02-01 Thread Jeremy Vuillermet
. > > No need to use compare and set. The swap! function is good enough. It is > really a convenience function layered over compare-and-set. > Sometimes swap! is not powerful enough, which is when you use > compare-and-set. > > > On Monday, February 1, 2016 at 7:29:39 AM UTC

compare-and-set deep value in hashmap atom

2016-02-01 Thread Jeremy Vuillermet
Hello, I'm making a game where players can choose a box in a grid to discover what's behind it. My data structure is an atom with {:grid-size 5, :picks {5 "player1}} where 5 is the box position in the grid. How can I be sure that two players can't pick the same box. From my understanding, che

Re: Durable atom

2015-08-17 Thread Jeremy Vuillermet
t 17, 2015 at 1:27:11 AM UTC+2, Andrew Chambers wrote: > > Datomic is basically what you want. when you get a db instance from the > connection it is equivalent to dereffing an atom - You get an immutable > reference to the data at that point in time. > > On Monday, August 17,

Durable atom

2015-08-16 Thread Jeremy Vuillermet
Hello, With the rise of Om, Reagent or re-frame for that matter, I'm using more a more the single state atom pattern in my clojurescript app. So much so that for my current application, I've been using atoms server side because my apps are split in really small app that only need to store few d

Re: [ANN] SF Reagent Meetup TODAY 6:30pm @Loyal3 @Meerkat

2015-04-17 Thread Jeremy Vuillermet
Will the event video be uploaded somewhere ? If yes, where !? Missed the live stream unfortunately. Living in France doesn't help ... On Thursday, April 16, 2015 at 4:35:38 PM UTC+2, marc fawzi wrote: > Thursday, April 16, 2015 > 6:30 PM > > > Loyal3 > 150 California St Ste 400, San Francisco

Re: [ANN] SF Reagent Meetup TODAY 6:30pm @Loyal3 @Meerkat

2015-04-17 Thread Jeremy Vuillermet
On Thursday, April 16, 2015 at 4:35:38 PM UTC+2, marc fawzi wrote: > Thursday, April 16, 2015 > 6:30 PM > > > Loyal3 > 150 California St Ste 400, San Francisco, CA (edit map) > two blocks from the Embarcadero BART on California and Front > > SF Reagent Meetup Agenda:  > IMPORTANT: We will be str

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 timeout-cha

Re: why (> 2) returns true

2014-09-15 Thread Jeremy Vuillermet
ers and now I try -1 arity everywhere On Monday, September 15, 2014 2:34:56 PM UTC+2, Phillip Lord wrote: > > > > Jeremy Vuillermet > writes: > > > Could it return a (partial > 2) ? > > > Because > works with n args and not just two. > > (>

why (> 2) returns true

2014-09-15 Thread Jeremy Vuillermet
Could it return a (partial > 2) ? -- 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 unsubscribe fr

Re: Pause a go loop

2014-09-14 Thread Jeremy Vuillermet
That's what I came up with. alts is very powerfull ! thanks On Friday, September 12, 2014 11:56:56 PM UTC+2, Dylan Butman wrote: > > How about this? > > https://gist.github.com/pleasetrythisathome/4f03ba9f729300beea40 > > On Friday, September 12, 2014 12:51:39 PM UTC-4,

Re: Pause a go loop

2014-09-12 Thread Jeremy Vuillermet
ing timing/pausing. > > /Linus > > > [1] https://github.com/AdamClements/schejulure > [2] https://github.com/overtone/at-at > > > 2014-09-11 13:52 GMT+02:00 Jeremy Vuillermet >: >

Re: Pause a go loop

2014-09-11 Thread Jeremy Vuillermet
here you can send it a pause > message telling it to block on the control channel until a resume message > arrives. > > On Thursday, September 11, 2014 6:52:48 AM UTC-5, Jeremy Vuillermet wrote: >> >> Hello, >> >> here is my use case >>

Pause a go loop

2014-09-11 Thread Jeremy Vuillermet
Hello, here is my use case (defn replay [history] (go (doseq [millis history] (http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group a