Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shenedu
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
1.
▲
by
shenedu
13y ago
Quite helpful posts. Try to keep track of them using a RSS reader[1] [1] http://rssminer.net/a#read/281377?p=1&s=newest
2.
▲
by
shenedu
13y ago
pedestal is quite a large project, try to offer a complete solution for building web application in Clojure, from server side to client side, to tooling. http-kit is a very small and focused library, It just do one thing: talk in HTTP. http
3.
▲
by
shenedu
13y ago
Thanks for the kind words. For the server, https is not planed, since It's better be done by Nginx or something alike [1]. For the client, https is planed. We have use case for it, too. Some time is needed to work on it. It will come out in
4.
▲
by
shenedu
13y ago
I am afraid http-kit is much feature less than SignalR. SignalR provides client side javascript[1], and hubs. http-kit provide non of these. http-kit just provide a way to get a Channel that can be used to push data to client, The Channel
5.
▲
by
shenedu
13y ago
Yes, it's 2.0.0, that's a promise of the API. No API breaks after 2.0.0 get released (It's already released today). To tell the truth, I, Peter[1], and a few others take more than a month to think and discuss the API, even though there are
6.
▲
by
shenedu
14y ago
Good job! Thanks for doing this. Will use it in my next project.
7.
▲
by
shenedu
14y ago
You may find this useful, also in python: http://code.activestate.com/recipes/437932-pyline-a-grep-lik...
8.
▲
by
shenedu
14y ago
Hi, I am the author of open source rss reader Rssminer, live demo: http://rssminer.net/demo How about your guy build on top it, I can contribute the whole source code (anyway, it's open source) The reasons I do so: 1. Rss Reader needs a l
9.
▲
by
shenedu
14y ago
Hi, Rssminer is a personal weekend project, it's open source [1] I create it because I want to learn how to do one page webapp with Backbone.js, but at the last, I drop backbone, life become much easier. When writing it, I need an async HTT
10.
▲
by
shenedu
14y ago
Of course rssminer[1], since I write it. It's open source, you can contribute too: https://github.com/shenfeng/rssminer 1. http://rssminer.net/demo
11.
▲
by
shenedu
14y ago
NewsBlur is pretty good. I've used it for a while. I also write my own feed reader: Rssminer. It's not as full-fledged as NewsBlur, but is a much lighter alternative. It's support login with google and import google reader's subscripti
12.
▲
Pyline: a grep-like, sed-like command-line tool. (Python recipe)
(code.activestate.com)
2 points
by
shenedu
14y ago
|
0 comments
13.
▲
by
shenedu
14y ago
Hey, http-kit can be used to from java directly: https://github.com/http-kit/http-kit/blob/master/test/java/o... Not recommended! The API is very lowlevel. Maybe you can try to tweak the max allowed open file to a larger value. The defau
14.
▲
by
shenedu
14y ago
Yes. something like long polling do require server capable of maintaining many connections. http-kit provide `async-response` for this kind of usage: see http://http-kit.org for more detail. I am the author of http-kit, also one of the a
15.
▲
by
shenedu
14y ago
Yes, JVM is strong. Clojure inherit it.
16.
▲
by
shenedu
14y ago
http-kit needs a few kilobytes of memory (buffer for parsing HTTP request, maintain state, etc) for a connection. The thread model used by http-kit: a dedicated thread(server-loop), only doing events IO and parsing, when done, queued the re
17.
▲
by
shenedu
14y ago
author here: Java part: 1. Java NIO's performance is amazing: event driven r/w bytes 2. maintain state machine when parsing HTTP from bytes buffer need many local variables, I get used to do it in a C style code. Clojure: I like this langua
18.
▲
by
shenedu
14y ago
Linux's epoll or FreeBSD's Kqueue is ridiculous scalable. Both http-kit and netty take advantage of it. http-kit is all about HTTP, netty is a general framework.
19.
▲
by
shenedu
14y ago
Author here. The server is open source, on github: https://github.com/http-kit/http-kit Test test code is also on github: https://github.com/http-kit/scale-clojure-web-app Suggestions very welcome!
20.
▲
by
shenedu
14y ago
yes, SQL is blocking, JVM also have threads. The http-kit is asynchronous(epoll on linux), the API for programmers is sync, which is more familiar.
21.
▲
by
shenedu
14y ago
Author here. > Add an endpoint with a poorly optimized SQL query: 20 concurrent connections. Agreed. http-kit use threadpool to compute the response, try to minimize this a little.
22.
▲
by
shenedu
14y ago
author here. Yes, Clojure can use more than 1.4G of heap, and can use threads. http-kit is multithreaded (one just for IO, others for computing response). A strength of Clojure?
23.
▲
by
shenedu
14y ago
author here. > Notice that in his tests 97% of these connections don't do anything, just idle. He maxes out at 18764 req/sec. Yes, just testing how many concurrent connection can be held. When the 600k are held, ab confirms that it can
24.
▲
by
shenedu
14y ago
Hey, http-kit's author here. willing to answer any questions.