Re: Sente - is it possible to close a connection?

2014-08-24 Thread Peter Taoussanis
Hi guys, > (sente/chsk-reconnect! ) to disconnect (and then reconnect) a connection. Yup, you can call `chsk-reconnect!` from the client to reset its connections. This is useful mostly for picking up possible session changes after authentication, etc. There isn't currently a client-side `disc

GSoC: Congratulations Aleksandr and Prasant!

2014-08-24 Thread Mikera
Hi All, Prasant and Aleksandr have been working all summer making Clojure even better for data science / numerical computing. On behalf of myself and my co-mentor Alex Ott I want to offer congratulations to them both for successfully completing their Google Summer of Code projects! Thanks to P

[ANN] om-bootstrap 0.2.5 - Bootstrap 3 components in Om

2014-08-24 Thread Sam Ritchie
Hey all, I wanted to share a library I've been putting together for writing Bootstrap 3 components in Om. It's called, creatively, Om-Bootstrap. Here's the git repository: https://github.com/racehub/om-bootstrap Version 0.2.5 is on Clojars : [racehub

Re: [ANN] shadow-pgsql: PostgreSQL without JDBC

2014-08-24 Thread Shashy Dass
What does the library do for connection pooling? Thanks, Shashy On Saturday, August 23, 2014 8:05:37 PM UTC-4, Thomas Heller wrote: > > EDN/Transit on the backend might be nice, but a little much for me. I'll > take it if you feel like a lot of C. jsonb in 9.4 will have to do for now. > > Transp

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-24 Thread Uday Verma
This is awesome! I have attempted to write one and failed, this is much better than what I could have possibly done. Thanks! Added to profile! On Saturday, August 16, 2014 7:19:42 PM UTC-5, john walker wrote: > > Hello everyone. > > This is a lein plugin that helps you add dependencies to proje

Re: Sente - is it possible to close a connection?

2014-08-24 Thread Daniel Kersten
Interesting, thanks! I actually looked for something like that but seem to have overlooked it. I saw :chsk/closed but not :chsk/close It seems that both chsk-reconnect! and :chsk/close events will let the client control its connection state, but there doesn't seem to be any way for the server to

Re: Sente - is it possible to close a connection?

2014-08-24 Thread Sam Ritchie
I think you can send :chsk/close: https://github.com/ptaoussanis/sente/blob/master/src/taoensso/sente.cljx#L335 This doesn't look documented either, but according to the code it'll do the trick. Daniel Kersten August 24, 2014 at 11:30 AM After some more digging[1]

Re: CLISP books any good to learn Clojure

2014-08-24 Thread Mars0i
On Sunday, August 24, 2014 9:43:41 AM UTC-5, Ashton Kemerling wrote: > > Just remember that Clisp > > 1) not entirely immutable > 2) not a hosted language > > I worked in CL professionally for a year (SBCL in particular) and while > clojure is closer to SBCL than it is to python, it is a differen

Re: CLISP books any good to learn Clojure

2014-08-24 Thread Mars0i
Are people using "Clisp" to refer to Common Lisp these days? I always spell the whole thing out, or use "CL" when context makes it sufficiently clear. I think of "CLISP" as the name for one particular CL implementation. On Sunday, August 24, 2014 9:43:41 AM UTC-5, Ashton Kemerling wrote: > > J

Re: How is this code evaluated (question about transdurcers)

2014-08-24 Thread Mark Engelberg
The comp is the same comp as in clojure.core, but the way that transducers are implemented, comp has the effect of chaining them in a left-to-right manner rather than the way it behaves with regular functions. I actually prefer left-to-right composition, but it is somewhat unfortunate that transdu

Re: How is this code evaluated (question about transdurcers)

2014-08-24 Thread Ashton Kemerling
If you are referring to the new transducer comp, if I recall correctly it works in the opposite direction from the comp in clojure.core. I can't find any docs at hand that prove that, so I would check the docstring of comp. On Sun, Aug 24, 2014 at 11:04 AM, rogergl wrote: > I have problems to

Re: Sente - is it possible to close a connection?

2014-08-24 Thread Daniel Kersten
After some more digging[1], I see that the client can call (sente/chsk-reconnect! ) to disconnect (and then reconnect) a connection. Looking at the comments in the code[2], it does this by closing the socket and then it gets auto-reconnected. I guess that means its not possible to disconnect withou

Sente - is it possible to close a connection?

2014-08-24 Thread Daniel Kersten
Hi, I'm trying programmatically close a connected sente connection (either on the server or the client). Is this possible? Thanks, Dan. -- 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 No

How is this code evaluated (question about transdurcers)

2014-08-24 Thread rogergl
I have problems to understand how the following code evaluates. I understand what the code does but not how this result is computed: BTW: This is an example from the async webinar: (chan 1 (comp (map #(.-keyCode %)) (filter #{37 39}) (map {37 :previous 39 :nex

Re: CLISP books any good to learn Clojure

2014-08-24 Thread Ashton Kemerling
Just remember that Clisp  1) not entirely immutable 2) not a hosted language I worked in CL professionally for a year (SBCL in particular) and while clojure is closer to SBCL than it is to python, it is a different beast. CL is a more complicated language, with a long past and odd specs co

Re: [ANN] Leiningen 2.3.4 released

2014-08-24 Thread gvim
Has 2.4.3 been fixed yet? I had to revert to 2.4.2 due to clojure.nrepl namespace errors. Could this be due to the release of cider-nrepl 0.7.0 which I have loaded in my .lein/profile.clj? gvim On 24/08/2014 02:27, Dave Sann wrote: Do exclusions apply to plugins? if I have :plugins [[com.

Re: CLISP books any good to learn Clojure

2014-08-24 Thread Stefan Kamphausen
Practical Common Lisp will definitely help understanding Clojure, too. For example, the way, Macros are introduced and used, and understanding generic functions. http://www.gigamonkeys.com/book/ stefan On Sunday, August 24, 2014 12:49:07 PM UTC+2, Cecil Westerhof wrote: > > There are a lot of

Re: [ANN] Leiningen 2.3.4 released

2014-08-24 Thread Dave Sann
https://github.com/technomancy/leiningen/issues/1652 On Sunday, 24 August 2014 18:50:36 UTC+10, Robin Heggelund Hansen wrote: > > Same here =( > > kl. 03:27:50 UTC+2 søndag 24. august 2014 skrev Dave Sann følgende: >> >> Do exclusions apply to plugins? >> >> if I have >> >> :plugins [[com.keming

CLISP books any good to learn Clojure

2014-08-24 Thread Cecil Westerhof
There are a lot of good (or so I am told) CLISP books. For example: “Paradigms Of Artificial Intelligence Programming Case Studies In Common Lisp”. Would they be useful for learning Clojure, or is the difference to big? I should at least have http://clojure.org/lisps handy. ;-) -- Cecil Westerho

Re: [ANN] Leiningen 2.3.4 released

2014-08-24 Thread Robin Heggelund Hansen
Same here =( kl. 03:27:50 UTC+2 søndag 24. august 2014 skrev Dave Sann følgende: > > Do exclusions apply to plugins? > > if I have > > :plugins [[com.keminglabs/cljx "0.4.0" :exclusions [org.clojure/clojure]]] > > I get > > ([com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket > "0.1.