[ANN] Ring-jetty9-adapter(rj9a) updated with HTTP2 support

2015-07-26 Thread Ning Sun
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi all, I am pleased to announce the 0.9 release of ring-jetty9-adapter(rj9a): https://github.com/sunng87/ring-jetty9-adapter The new version is based on Jetty 9.3.1, which means you will be able to run your existed clojure web application on

Re: [ANN] Ring-jetty9-adapter(rj9a) updated with HTTP2 support

2015-07-26 Thread Max Penet
Hi, It doesn't seem to work for me, I getinvalid_preface error returned by the server (tried with latest firefox, chrome, chromium on linux). I will give nghttp2 a go, maybe me env is somehow busted, but other http2 websites (webtide, google etc) work fine on http2. Cheers, Max On

New ring middleware: browser-caching

2015-07-26 Thread Stephen Lester
Hello everyone, I just wrote my first ring middleware (I'm pretty much a newbie to functional programming and Clojure in general), and I'd appreciate if someone wants to give me some tips or constructive criticism (and it can be off-list as well). The goal is to enable per-file-type browser

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread James Reeves
On 25 July 2015 at 15:50, crocket crockabisc...@gmail.com wrote: Logging libraries seem to rely on a global config. This looks like a dangerous state that could blow up. I researched a little, and there seems to be reader monad and dependency injection, all of which feel awkard. Is there

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread Mikera
On Saturday, 25 July 2015 22:50:55 UTC+8, crocket wrote: Logging libraries seem to rely on a global config. This looks like a dangerous state that could blow up. I researched a little, and there seems to be reader monad and dependency injection, all of which feel awkard. Is there not a

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread crocket
How those logs are outputted is stored in a global state called log configuration. So, I think the separation was done. How else do you want to separate that? On Mon, Jul 27, 2015 at 12:20 PM, James Reeves ja...@booleanknot.com wrote: On 25 July 2015 at 15:50, crocket crockabisc...@gmail.com

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread James Reeves
On 27 July 2015 at 05:25, crocket crockabisc...@gmail.com wrote: How those logs are outputted is stored in a global state called log configuration. So, I think the separation was done. How else do you want to separate that? Traditionally, logging code is written something like: