Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-07 Thread Valentin Luchko
Now it makes sense. Thank you среда, 7 мая 2014 г., 15:39:38 UTC+3 пользователь tbc++ написал: > > core.async provides its own implementation of merge that returns a > ManyToMany channel. So that's why the call to merge is returning a channel. > But why I haven't a clue. I still claim that you h

Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-07 Thread Timothy Baldridge
core.async provides its own implementation of merge that returns a ManyToMany channel. So that's why the call to merge is returning a channel. But why I haven't a clue. I still claim that you have a dirty repl or something. Timothy On Wed, May 7, 2014 at 6:11 AM, Valentin Luchko wrote: > Sorry

Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-07 Thread Valentin Luchko
Sorry, but you guys didn't understand the problem. *tbc++*, I don't use core.async, so I don't require it dgrnbrg, I don't want to interface these libraries together. Let me try explain again. 1. I have http-kit socket server running 2. When client connects I store its connection (http-kit's Async

Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-06 Thread dgrnbrg
The core of the matter is that http-kit's async channels are these: https://github.com/http-kit/http-kit/blob/master/src/java/org/httpkit/server/AsyncChannel.java And core.async's are these: https://github.com/clojure/core.async/blob/master/src/main/clojure/cljs/core/async/impl/channels.cljs#L

Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-06 Thread Timothy Baldridge
First of all, this shouldn't work at all, since you aren't requiring core.async, so you shouldn't be getting anything about that library at all. Perhaps you need to reload your repl, or perhaps there's something missing in your gist? Thanks, Timothy On Mon, May 5, 2014 at 3:15 PM, Valentin Luch

Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-05 Thread Valentin Luchko
Here is the gist https://gist.github.com/valichek/ba510de9ff2cf3d0c502 P.S. sorry if my first post was odd понедельник, 5 мая 2014 г., 20:03:09 UTC+3 пользователь Valentin Luchko написал: > > Could you explain me why after > clients;; => {# /0:0:0:0:0:0:0:1%0:<->/0:0:0:0:0:0:0:1%0:60071> tru

Re: http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-05 Thread Timothy Baldridge
Can you put the sourcecode in refheap or gist? I can't make sense of your initial post. Timothy On Mon, May 5, 2014 at 11:03 AM, Valentin Luchko wrote: > Could you explain me why after > clients;; => {# /0:0:0:0:0:0:0:1%0:<->/0:0:0:0:0:0:0:1%0:60071> true} > (into {} clients) ; => # clojur

http-kit AsyncChannel and clojure.core.async.impl.channels.ManyToManyChannel

2014-05-05 Thread Valentin Luchko
Could you explain me why after clients;; => {#/0:0:0:0:0:0:0:1%0:60071> true} (into {} clients) ; => # I get How {#/0:0:0:0:0:0:0:1%0:60071> true} is transformed to #? I suspect it is because I use AsyncChannel as a key, but what is going on? -- You received this message because you are s