Re: Clojure web server benchmarks

2014-01-14 Thread Shen, Feng
Hi, nginx-clojure looks great! A small tip: ab may not be the best tool, since it's single threaded. A better tool is wrk: https://github.com/wg/wrk You can use wrk to better test nginx-clojure, It should perform even better than others. 沈锋 http://shenfeng.me On Tue, Jan 14, 2014 at

http-kit 2.1.16: bug fixes, new features

2014-01-03 Thread Shen, Feng
Hi, [http-kit 2.1.16] Change log: https://github.com/http-kit/http-kit/blob/master/history.md 2.1.16 (2014/1/3) HTTP Client: follow 301, 302, 303, 307, 308 properly (thanks paulbutcher) https://github.com/http-kit/http-kit/blob/master/history.md#2115-2014112.1.15 (2014/1/1) HTTP client:

[ANN] http-kit 2.1.1. Bug fix release, please upgrade if using the WebSocket

2013-05-06 Thread Shen, Feng
Hi, It's a bug fix release. *If using the WebSocket support, please upgrade. All older version has this bug.* The bug is Large websocket requests get corrupted. Detail: https://github.com/http-kit/http-kit/issues/47. And thanks Gal Dolber for reporting it. Condition this bug will be triggered:

Re: [ANN] http-kit 2.0.0 released

2013-05-04 Thread Shen, Feng
I hope support autoload .It's very useful for develop! http://http-kit.org/migration.html#reload 沈锋 On Sat, May 4, 2013 at 9:08 PM, 张保良 jfreeb...@gmail.com wrote: I hope support autoload .It's very useful for develop! 在 2013年3月29日星期五UTC+8下午2时03分38秒,Feng Shen写道: Hello folks. I just

Re: [ANN] http-kit 2.0.0 released

2013-05-04 Thread Shen, Feng
Will there be a client-side for browsers in ClojureScript or Javascript? I mean something similar to sockjs implementation. I have't plan to do that yet. http-kit is focused to provide a HTTP library for Clojure. 沈锋 On Sat, May 4, 2013 at 6:48 PM, Hoàng Minh Thắng p...@banphim.net wrote:

Re: [ANN] http-kit 2.0.0 released

2013-05-03 Thread Shen, Feng
regarding the perf. improvements, is it client or server? It's the server. Due to IO model change: One IO thread (reading and writing) = One thread reading, decoding + many threads writing 沈锋 On Sat, May 4, 2013 at 7:54 AM, László Török ltoro...@gmail.com wrote: Hi, regarding the perf.

Re: http-kit 2.0.0 released

2013-05-03 Thread Shen, Feng
Could you please let me know whether HTTP-Kit has built-in support for applying backpressure, and if it does then how to configure the same If the backpressure is something like this: http://mechanical-sympathy.blogspot.jp/2012/05/apply-back-pressure-when-overloaded.html Then yes. http-kit

[ANN] http-kit 2.0.0 released

2013-03-29 Thread Shen, Feng
Hello folks. I just released version 2.0.0 of http-kit. *2.0.0 (2013/3/29)* 1. Unify WebSocket and HTTP long polling/streaming with Channel protocol and with-channel (API breaks with the RC) 2. WebSocket support sending and receiving binary frame with byte[] 3. Support HTTP

Re: Why is this code so slow?

2013-02-03 Thread Shen, Feng
I was able to shave off some more by writing (not= 0 (rem i d)) as ( 0 (rem i d)). the running time is about 4787ms on my computer, compare to *2759ms *of the java version, a bit slower, but not much. 沈锋 美味书签 : http://meiweisq.com 博客: http://shenfeng.me On Sun, Feb 3, 2013 at 6:42 PM,

ANN: http-kit 2.0.0.RC2, high performance HTTP Server Client for Clojure

2013-02-02 Thread Shen, Feng
Hi, After extensive test, known bugs fixed, documentation ready, http-kit reaches 2.0.0.RC2 [http-kit 2.0.0-RC2] ; Add to your project.clj Documentation: http://http-kit.org Github: https://github.com/http-kit/http-kit The goal of http-kit is to provide a clean, robust HTTP server/client,

Re: [ANN] Yet another {{mustache}} for Clojure

2012-07-19 Thread Shen, Feng
to push them lower in future versions, but the 10x difference in runtime is clearly no longer the case. David On Wed, Jul 11, 2012 at 8:50 PM, Shen, Feng shen...@gmail.com wrote: Yes, you are right. Stencil did a very good job. I only implement a subset. Test code . Set Delimiter

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread Shen, Feng
不错不错。 velocity 在java中用得较广。 这样为potential 的 clojure用户铺了一下道路。 沈锋 美味书签 http://meiwei.fm http://mei.fm On Wed, Jul 18, 2012 at 12:00 AM, dennis zhuang killme2...@gmail.comwrote: A little error in getting started missing :age (render test.vm :name dennis :age 29) 2012/7/17 dennis zhuang

Re: {ANN} ring.velocity: render apache velocity templates for ring in clojure.

2012-07-17 Thread Shen, Feng
同感enlive较复杂。前段时间,转向了Mustache。 沈锋 美味书签 http://mei.fm On Wed, Jul 18, 2012 at 11:59 AM, dennis zhuang killme2...@gmail.comwrote: 其实就是几行代码封装下,我觉的velocity比什么enlive好用多了。 2012/7/18 Shen, Feng shen...@gmail.com 不错不错。 velocity 在java中用得较广。 这样为potential 的 clojure用户铺了一下道路。 沈锋 美味书签 http

Re: [ANN] Yet another {{mustache}} for Clojure

2012-07-11 Thread Shen, Feng
Yes, you are right. Stencil did a very good job. I only implement a subset. Test codehttps://github.com/shenfeng/mustache.clj/blob/master/test/me/shenfeng/mustache_test.clj . Set Delimiter and lambdas and Dotted Names are not implemented. The algorithm of this implementation is borrowed from

Re: How to write `when-lets`

2011-08-05 Thread Shen, Feng
I learned a lot. Thanks. Best Regards Shen Feng On Wed, Jul 27, 2011 at 8:50 PM, Feng Shen shen...@gmail.com wrote: Clojure core.clj has a macro when-let, I am wondering how to write a macro `when-lets` (when-lets [symbol-1 test-1 symbol-2 test-2