2006-11-08(Wed) [長年日記]
■1 dRuby + Rindaでriを15倍速くするfastri
fastriはebanさんのri検索結果キャッシュスクリプトにインスパイアされたらしい。仕組みはdRuby + Rinda。riサーバ(fastri-server)にクライアント(friコマンド)からタプルを投げちゃう。15倍ぐらい速くなる。かっこいい。
$ time ri -T Enumerable#inject 0.57s user 0.43s system 82% cpu 1.208 total $ time fri Enumerable#inject 0.03s user 0.01s system 49% cpu 0.082 total
sheepmanさんのirbでのri補完っぽくfriを組み込むエントリもあったので、マネしてみた。ストレスなくirbからriを引けて嬉しい。
検索結果にほんのり色もつく。
リポジトリがdarcsだと書いてあったので、私はTiger用のdmgを使って取ってきたけど(最初MacPortsでdarcsを入れようとしたらvariantsを指定してもghc6.6でコケたので即あきらめた)、リポジトリを追いかけるのでなければhttpだからwgetとかcurlとかでも取ってきてインストールできるんじゃないでしょうか。インストールはsetup.rb(少なくとも私は)。
fastri-serverをOSXのログイン時に起動させる
最初はStartupItemsを使おうと思ったんだけど、自分ではうまくやれなかった(SystemStarterでは起動するんだけど自動起動してくれない……)。id:moroの人のアドバイスに従って、launchdを使ってみた。plistの編集にはProperty List Editorを使った。
~/Library/LaunchAgents/fastri-server.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>fastri-server</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/Users/shintaro/bin/fastri-server</string>
</dict>
</plist>
ログイン時の起動でいいや、と思ったので~/Library/LaunchAgentsに置いてます。launchdについては『Professional Mac OS X』が参考になる。plistについてとか詳しすぎる。

リーン開発の現場 カンバンによる大規模プロジェクトの運営(Henrik Kniberg/角谷 信太郎/市谷 聡啓/藤原 大)
『なるほどUnixプロセス ― Rubyで学ぶUnixの基礎』
SCRUM BOOT CAMP THE BOOK(西村 直人/永瀬 美穂/吉羽 龍太郎)
実践テスト駆動開発 テストに導かれてオブジェクト指向ソフトウェアを育てる(Steve Freeman/Nat Pryce/和智 右桂/高木 正弘)
The RSpec Book (Professional Ruby Series)(David Chelimsky/Dave Astels/Zach Dennis/角谷 信太郎/豊田 祐司/株式会社クイープ)
アジャイルサムライ−達人開発者への道−(Jonathan Rasmusson/西村 直人/角谷 信太郎/近藤 修平/角掛 拓未)
アジャイルな見積りと計画づくり ~価値あるソフトウェアを育てる概念と技法~(Mike Cohn/マイク コーン/安井 力/角谷 信太郎)
インターフェイス指向設計 ―アジャイル手法によるオブジェクト指向設計の実践(Ken Pugh/角谷 信太郎(監訳)/児島 修)
アジャイルプラクティス 達人プログラマに学ぶ現場開発者の習慣(Venkat Subramaniam/Andy Hunt/木下 史彦/角谷 信太郎)
JavaからRubyへ ―マネージャのための実践移行ガイド(Bruce A. Tate/角谷 信太郎)










http://phentermine.attheforum.com<br>Phentermine.<br>Phentermine.<br>Buy phentermine cod. Phentermine. Order phentermine online.
http://www.setbb.com/cialis<br>Buy cialis.<br>Buy cialis.<br>Online pharmacy buy cialis. Where can i buy cialis. Buy cialis. Cialis best price buy online. Viagra cialis levitra buy cheap cialis buy ciali. Buy brand amp generic cialis online cialis center.
http://cialis-best-price-buy-online.blogspot.com<br>Buy cialis.<br>Buy cialis.<br>Link buy cialis cheap. Buy cialis. Cialis best price buy online. Where to buy cialis.
http://soma-online-sales.beeplog.com<br>Soma drug test.<br>Drug soma.<br>Carisoprodol soma drug test. Prescription drug called soma. Drug soma.
http://besturlreference.info/o/uncle-sam.html<br>uncle sam<br>uncle sam<br>Actual articles about uncle sam and more.
http://momsinporn.info/sexy-mom-seduces-young-cock.html<br>sexy mom seduces young cock<br>sexy mom seduces young cock<br>sexy mom seduces young cock author
http://buyphentermine.blog.drecom.jp<br>Cheap 37 5 phentermine.<br>Cheap phentermine free sh.<br>Cheap phentermine. Hysbysfwrdd cymrux xanax cheap phentermine. Buy cheap online phentermine. Cheap phentermine no prescription. Phentermine cheap. Cheap phentermine online. Buy cheap phentermine now save.
http://codeine.blog.drecom.jp<br>Cheap codeine no prescription.<br>Cheap codeine no prescription.<br>Cheap codeine no prescription.
http://www.rankingblogs.com/start/buyxanax<br>Buy xanax online.<br>Cheap xanax online buy cheap xanax buy cheap xanax.<br>Buy xanax. Buy cheap xanax without prescription.
http://tramadol22.sblog.cz<br>Tramadol hcl.<br>Tramadol hcl.<br>Tramadol hcl 20 mg 93. Tramadol hcl.
http://tramadolll.informe.com<br>Tramadol.<br>Tramadol.<br>Tramadol no prescription. Tramadol withdraw. Tramadol.
http://www.rankingblogs.com/start/Lorazepam<br>Lorazepam withdrawal.<br>Lorazepam side effects.<br>Lorazepam. Lorazepam order online consultation. Effect of lorazepam.
http://www.rankingblogs.com/start/Phentermineonline<br>Phentermine.<br>Cheap phentermine.<br>Phentermine. How does phentermine work. Buy cheap phentermine.
http://www.rankingblogs.com/start/pPhentermine<br>Phentermine.<br>Phentermine ionamin.<br>Buy phentermine. Phentermine. Order phentermine uk. Buy phentermine online. Adipexdrug addiction order phentermine online. Cheapest phentermine online.
http://www.rankingblogs.com/start/orderPhentermine<br>Buy phentermine order cheap online.<br>Buy phentermine order cheap online.<br>Can i order phentermine online. Order phentermine online. Adipexdrug addiction order phentermine online. Phentermine online order. Phentermine overnight com online order page. Order phentermine phentermine online.
http://www.friendster.com/websearch.php?search=1&filter=network&q=cheap+tramadol+site%3Atramadoll.conforums.com<br>Buy cheap tramadol mg tablets only in us online.<br>Cheap tramadol cod buy cheap cod online tramadol.<br>Cheap tramadol. Cheap tramadol fedex overnight.
http://tramadol-hcl.ourprofile.biz<br>Tramadol.<br>Tramadol.<br>Tramadol 180. Comparative potencies of opioids tramadol. Tramadol sr 100. Tramadol.
http://www.archive.org/details/BuyUltramBestValueFreeShippingNoPrescription<br>Buy ultram cheapest site.<br>Buy ultram cheapest site.<br>Canada pharmacy buy online ultram. Buy ultram cheapest site. Buy ultram.