とりあえず画像。 mochijson2:encoder posted by (C)voluntas mochijson2:encoder([{utf8, true}]) でエンコーダを作成すれば問題なく表示されます。日本語もちゃんと扱えますよ:-) simplejson の作者が作ってるだけあって json 関係は強い。

A Million-user Comet Application with Mochiweb, Part 3 In Part 1 and Part 2 of this series we built a comet application using mochiweb, and learned how to route messages to connected users. We managed to squeeze application memory down to 8KB per connection. We did ye olde c10k test, and observed what happened with 10,000 connected users. We made graphs. It was fun, but now it’s time to make good
Almost a year ago I did some Apache and Nginx performance testing. Apparently I have the bug again and have done some performance testing on Nginx, Yaws and MochiWeb. The latter two being Erlang based. Again deathmatch may be an overstatement but this is my attempt at gleaning some interesting performance data from some high performance web servers. Also, I attempted to improve the graphs this tim
たけまるさんからお誘い頂いて、なにか発表しませんか?ということなので ... 。 「Comet on mochiweb」を発表させていただくことになりました。 今回実装する Comet は XHR をサーバへ送って ... 解説が面倒なので引用 Cometでは、まずブラウザ側があらかじめサーバに対してHTTPリクエストを発行しておき、サーバ側はそのリクエストに対してレスポンスを返さずにずっと掴んだままにしておきます。そして、別の経路でサーバがキック(メッセージを送信)されたら、それまで掴みっぱなしになっていた複数のリクエストに対して一斉にメッセージを乗せてレスポンスを返すことで、擬似的にサーバからのプッシュを実現するのです。そして、ブラウザはすぐさまリクエストを再発行してふたたび応答待ちの状態へと戻る。まさに逆転の発想なのです。Lingr and Comet - 技術解説編:江島健太郎 /
Erlangで書かれたWebサーバのyawsはかなり速い. Apache並の性能が出る. それはErlangが速いからだと思っていた. でも,ソースを読んでみたら,ドーピングされていることがわかった. 同様のアプリで,mochiwebというErlangで書かれたWebサーバのフレームワークもあるけれど,これも同じでその方法を使っていた. Erlangでは,TCP通信のドライバにいろいろなモードがあって,行単位で応答を返したり,FCGIやCORBAのパケットをあつかったりすることができる. Erlangのマニュアルには書かれていないけれど,このモードにhttpというものがあって,それを使うと,httpヘッダの解析などをC言語で書かれたドライバ内で行うことができる模様. undocumentedだけども,どちらのフレームワークも使用しているということは,その辺よく研究しているということなのかな
Posted in Web, Erlang by thejimmyg on the December 31st, 2007 Here’s one way to set up a simple Mochiweb server to handle a file upload using Erlang. On Debian you’ll need to install the following: sudo apt-get install build-essential libncurses-dev libssl-dev m4 subversion (I’ve also got autoconf, automake and libgd-dev so you might need those too). First install the latest version of Erlang: wge
A bit over a week ago we moved a slightly modified version of our project skeleton into the open source mochiweb repository, which gets you a start shell script, a skeleton application following (most of) the OTP paradigms, a Makefile, and a web server that serves static files out of priv/www. The first thing you have to do is make sure mochiweb is built: $ cd ~/src/mochiweb $ make (cd src;make) m
In this article I will explore the possibilities and limits of Erlang for Comet applications. The most popular frameworks and tools related to Comet will be introduced and a practical example of an existing Erlang Comet implementation will be presented. Erlang is a virtual-machine based, functional programming language developed by Ericsson. While other functional languages like Haskell or OCaml a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く