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についてとか詳しすぎる。
Buy phentermine cod. Phentermine. Order phentermine online.
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.
Link buy cialis cheap. Buy cialis. Cialis best price buy online. Where to buy cialis.
Carisoprodol soma drug test. Prescription drug called soma. Drug soma.
Actual articles about uncle sam and more.
sexy mom seduces young cock author
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.
Cheap codeine no prescription.
Buy xanax. Buy cheap xanax without prescription.
Tramadol hcl 20 mg 93. Tramadol hcl.
Tramadol no prescription. Tramadol withdraw. Tramadol.
Lorazepam. Lorazepam order online consultation. Effect of lorazepam.
Phentermine. How does phentermine work. Buy cheap phentermine.
Buy phentermine. Phentermine. Order phentermine uk. Buy phentermine online. Adipexdrug addiction order phentermine online. Cheapest phentermine online.
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.
Cheap tramadol. Cheap tramadol fedex overnight.
Tramadol 180. Comparative potencies of opioids tramadol. Tramadol sr 100. Tramadol.
Canada pharmacy buy online ultram. Buy ultram cheapest site. Buy ultram.

| 


