Posted by Technohippy Tue, 09 Jan 2007 06:32:00 GMT http://eventmachine.rubyforge.org/wiki/wiki.pl勝手訳 Ruby/EventMachine Ruby/EventMachineはシングルスレッドなネットワークソケットエンジンを提供する外部ライブラリです。これはReactorPatternを使ってネットワークI/Oをハンドルするように実装されています。EventMachineは特にパフォーマンスと使いやすさに注力しています。 バックグランド EventMachineはRubyでネットワークを意識したプログラム、例えばIPC、分散システム、メッセージキュー、リモートオブジェクト呼び出しなど、を書く必要が出てきたことから作り始めました。私たちはC++のネットワークライブラリでよく見られるイベント駆動
EventMachine is a Ruby library that implements non-blocking I/O using the reactor pattern similar to Python's Twisted. It allows Ruby applications to handle thousands of concurrent connections using a single process by avoiding blocking on I/O and using callbacks. EventMachine works across various Ruby implementations like MRI, YARV, Rubinius, and JRuby using different underlying reactors. It is c
とても簡単です。 10分もかからずに試せるのでよかったらどうぞ。 一応githubにソースも置いてますので、興味があるかたはそちらも見てみて下さい。(❍ʻ◡ʻ❍) https://github.com/nihitok/Kantan-websocket 作るもの websocketで動くチャット 最初に、gemでem-websocketをインストールします。em-websocketの詳細はこちら。https://github.com/igrigorik/em-websocket $ gem install em-websocket 環境によっては依存するライブラリがなくて怒られたりするかもしれませんが、その場合はエラーメッセージでググッて見て下さい。 次に、適当なHTMLで「index.html」を作ります。 <html> <head> <script src='http://ajax.go
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く