<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xml:lang="ja">
 <image rdf:about="http://sharl.hauN.org/d/">
  <title>Sharl Morlaroll</title>
  <link>http://sharl.hauN.org/d/</link>
  <url>http://sharl.hauN.org/d/rss.cgi</url>
 </image>
 <channel rdf:about="http://sharl.hauN.org/d/">
  <title>しゃある通信</title>
  <link>http://sharl.hauN.org/d/</link>
  <description><![CDATA[日常の記録<br>最近のキーワード: 日常(14),BUY(11),GAME(6)]]></description>
  <dc:language>ja-jp</dc:language>
  <dc:rights>Copyright (c) 1995-2010 Sharl Morlaroll</dc:rights>
  <dc:date>2010-04-01T13:19:23+09:00</dc:date>
  <dc:publisher>Sharl Morlaroll</dc:publisher>
  <dc:creator>しゃある</dc:creator>
  <dc:subject>diary</dc:subject>
  <items>
   <rdf:Seq>
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014111101" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014071602" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014071601" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014062101" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014060501" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014051901" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014051501" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014050801" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014050201" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014050101" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014041701" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2014041401" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2013122401" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2013121801" />
    <rdf:li rdf:resource="http://sharl.hauN.org/d/2013112901" />
   </rdf:Seq>
  </items>
  <image rdf:resource="http://sharl.hauN.org/d/rss.cgi" />
 </channel>
  <item rdf:about="http://sharl.hauN.org/d/2014111101">
   <title>IngressようやくA8に</title>
   <link>http://sharl.hauN.org/d/2014111101</link>
   <description>sharlinfo 4ヶ月近くかかってますね…。</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
4ヶ月近くかかってますね…。
</p>]]></content:encoded>
   <dc:date>2014-11-11T11:32:15+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>iOS</dc:subject>
   <dc:subject>GAME</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014071602">
   <title>recipient_delimiter laundering problem</title>
   <link>http://sharl.hauN.org/d/2014071602</link>
   <description>sharlinfo やっぱり独自ドメイン + unique local partが最強なのではないだろうか。</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
やっぱり独自ドメイン + unique local partが最強なのではないだろうか。
</p>]]></content:encoded>
   <dc:date>2014-07-16T11:04:14+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>日常</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014071601">
   <title>Ingress始めました</title>
   <link>http://sharl.hauN.org/d/2014071601</link>
   <description>sharlinfo ようやくiOSにきた配布初日(7/14)から始めたんだけど、家の周りにポータルがほとんどなくて、現時点ではiOS版はポータル申請できなくて、ひたすら寄生する感じ(笑)それでもなんだかんだレゾ打ち込んでリンクしてCF作ってってやってたら白ポータル取ることができた(...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
ようやくiOSにきた配布初日(7/14)から始めたんだけど、家の周りにポータルがほとんどなくて、現時点ではiOS版はポータル申請できなくて、ひたすら寄生する感じ(笑)
<p>
それでもなんだかんだレゾ打ち込んでリンクしてCF作ってってやってたら白ポータル取ることができた(先輩ありがとうございます!)
<p>
まずはL8にならんとな・・
<ul>
<li>
  <a href="https://itunes.apple.com/jp/app/id576505181?mt=8">
  <img src="http://a2.mzstatic.com/us/r30/Purple6/v4/20/05/1a/20051a68-2ed0-1b06-b4f4-195a77732d82/mzl.pqdkopfv.175x175-75.jpg" width="175" height="175" />
  iTunes の App Store で配信中の iPhone、iPod touch、iPad 用 Ingress
  </a>
</li>
<li><a href="https://www.ingress.com/">Ingress</a></li>
</ul>
</p>]]></content:encoded>
   <dc:date>2014-07-16T10:50:55+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>iOS</dc:subject>
   <dc:subject>GAME</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014062101">
   <title>IRCでキーワードがあったらBoxcar2で通知するtiarraプラグイン</title>
   <link>http://sharl.hauN.org/d/2014062101</link>
   <description>sharlinfo 7/1に旧Boxcarのインフラレイヤーが止まるのを知ってしまった知り合いがケツを叩いてきたので(笑)、重い腰を上げて4年前に作ったやつを焼き直して記録しておく。Boxcar 2をインストールトークンを取得tiarraの設定ファイルに+ Tools::Boxcar2 { token: トークン sou...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
7/1に旧Boxcarのインフラレイヤーが止まるのを知ってしまった知り合いがケツを叩いてきたので(笑)、
重い腰を上げて<a href="http://sharl.hauN.org/d/2010062301">4年前に作ったやつ</a>を焼き直して記録しておく。
<ul>
<li><a href="https://itunes.apple.com/jp/app/boxcar-2/id782987891?mt=8">Boxcar 2</a>をインストール</li>
<li>
<a href="https://boxcar.uservoice.com/knowledgebase/articles/314474-how-to-get-my-boxcar-access-token">トークンを取得</a>
</li>
<li>tiarraの設定ファイルに
<blockquote>
<pre>
+ Tools::Boxcar2 {
  token: &lt;トークン&gt;
  sound: &lt;通知サウンド名&gt;
  # encodings : perl -MEncode -le 'print for Encode-&gt;encodings(&quot;:all&quot;)'
  encoding: &lt;encoding&gt;

  keyword: &lt;keyword1&gt;[,&lt;keyword2&gt;,...]
  channel-keyword: &lt;channel1&gt;[,&lt;channel2&gt;,...] &lt;keyword1&gt;[|&lt;keyword2&gt;|...]
}
</pre>
</blockquote>
を追加。通知サウンドをプリセットから選べるようしてみた。
<a href="https://boxcar.uservoice.com/knowledgebase/articles/306788-how-to-send-your-boxcar-account-a-notification">プリセット一覧はこの辺を参照</a>。
デフォルトは <kbd>clanging</kbd>。
</li>
<li><strong>perl の libwww-perl (通称LWP) と LWP::Protocol::https 周りを入れる</strong></li>
  <ul>
  <li>NKF やめて Encode にしたので <kbd>encoding</kbd> が増えた。最初からやれ。デフォルトは <kbd>UTF-8</kbd>。
  </ul>
<li>&lt;tiarra directory&gt;/module/<a href="https://raw.githubusercontent.com/sharl/tiarra-plugin/master/Boxcar2.pm">Tools/Boxcar2.pm</a> に配置して再読み込みで完了</li>
</ul>
ユーザから見た大きな変化としては、anonymousで使えるところかな。(Boxcarにアカウント作らなくてもいい)
</p>]]></content:encoded>
   <dc:date>2014-06-21T10:10:23+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>iPhone</dc:subject>
   <dc:subject>IRC</dc:subject>
   <dc:subject>hack</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014060501">
   <title>古いOSにもインストール可能なrpmを作るには</title>
   <link>http://sharl.hauN.org/d/2014060501</link>
   <description>sharlinfo  error: Failed dependencies: rpmlib(FileDigests) = 4.6.0-1 is needed by ... rpmlib(PayloadIsXz) = 5.2-1 is needed by ...と出てrpmパッケージをインストールできない、古いOSの面倒を見なければならないお仕事、おつかれさまです。rpmbuildのオプションに--d...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
<pre>
 error: Failed dependencies:
 rpmlib(FileDigests) &lt;= 4.6.0-1 is needed by ...
 rpmlib(PayloadIsXz) &lt;= 5.2-1 is needed by ...
</pre>
と出てrpmパッケージをインストールできない、古いOSの面倒を見なければならないお仕事、おつかれさまです。
<p>
rpmbuildのオプションに
<blockquote>
<kbd>--define=&quot;_binary_filedigest_algorithm 1&quot; --define=&quot;_binary_payload w9.gzdio&quot;</kbd>
</blockquote>
をつけてシグネチャをSHA256から古いMD5に、LZMA圧縮から古い形式のgzip圧縮に戻せばインストール可能なrpmを作成することができます。
古いOSを入れたビルド環境は必要ありません。たぶん。
<p>
gzip圧縮ではなくbzip2圧縮も可能っぽいけど、互換のためにgzipにしておいたほうがいい気がします。
</p>]]></content:encoded>
   <dc:date>2014-06-05T20:01:21+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>日常</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014051901">
   <title>USB急速充電器とUSB簡易チェッカーを買った</title>
   <link>http://sharl.hauN.org/d/2014051901</link>
   <description>sharlinfo 密輸をして報酬がAmazonギフト券で送られてきたのと、期間限定でお安くなっていたので衝動買い。 Anker 40W 5ポート USB急速充電器 ACアダプタ PowerIQ搭載 iPhone5C/5S/5/4S/4/iPod/iPad/Xperia/GALAXY/ウォークマン等対応[Wireless Phone Accessory]Anker ルート...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
密輸をして報酬がAmazonギフト券で送られてきたのと、期間限定でお安くなっていたので衝動買い。
<table class="amazon-box">
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00GTGETFG" target="_blank"><img src="http://ecx.images-amazon.com/images/I/31wyR3-Ix%2BL._SL160_.jpg" alt="[Anker 40W 5ポート USB急速充電器 ACアダプタ PowerIQ搭載 iPhone5C/5S/5/4S/4/iPod/iPad/Xperia/GALAXY/ウォークマン等対応[Wireless Phone Accessory]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00GTGETFG" target="_blank">Anker 40W 5ポート USB急速充電器 ACアダプタ PowerIQ搭載 iPhone5C/5S/5/4S/4/iPod/iPad/Xperia/GALAXY/ウォークマン等対応[Wireless Phone Accessory]</a></strong><br />
<br />
Anker<br />
</li>
</ul>
  </td>
  </tr>
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00J6ZNKZC" target="_blank"><img src="http://ecx.images-amazon.com/images/I/414rsxZAC2L._SL160_.jpg" alt="[ルートアール USB 簡易電圧・電流チェッカー ストレート型 RT-USBVA2[エレクトロニクス]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00J6ZNKZC" target="_blank">ルートアール USB 簡易電圧・電流チェッカー ストレート型 RT-USBVA2[エレクトロニクス]</a></strong><br />
<br />
ルートアール<br />
</li>
</ul>
  </td>
  </tr>
</table>
簡易チェッカーでダメダメケーブルをもりもり廃棄。荷物が若干減ったわ♪
</p>]]></content:encoded>
   <dc:date>2014-05-19T01:38:38+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>BUY</dc:subject>
   <dc:subject>でじこ</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014051501">
   <title>女ふたり原付で東日本縦断して水曜どうでしょう祭に行って来た!</title>
   <link>http://sharl.hauN.org/d/2014051501</link>
   <description>sharlinfo 買ったのを忘れていた・・ 女ふたり原付で東日本縦断して水曜どうでしょう祭に行って来た![単行本（ソフトカバー）]カワサキ カオリ双葉社 (2014-03-21) エッセイ漫画ですね。UNITE2013に行った人なら面白く読むことができるでしょー。もちろん藩士なら問題なし。</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
買ったのを忘れていた・・
<table class="amazon-box">
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/457530641X" target="_blank"><img src="http://ecx.images-amazon.com/images/I/4196hl2PsXL._SL160_.jpg" alt="[女ふたり原付で東日本縦断して水曜どうでしょう祭に行って来た![単行本（ソフトカバー）]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/457530641X" target="_blank">女ふたり原付で東日本縦断して水曜どうでしょう祭に行って来た![単行本（ソフトカバー）]</a></strong><br />
カワサキ カオリ<br />
双葉社 (2014-03-21)<br />
</li>
</ul>
  </td>
  </tr>
</table>
エッセイ漫画ですね。UNITE2013に行った人なら面白く読むことができるでしょー。もちろん藩士なら問題なし。
</p>]]></content:encoded>
   <dc:date>2014-05-15T20:32:34+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>BUY</dc:subject>
   <dc:subject>COMICS</dc:subject>
   <dc:subject>水曜どうでしょう</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014050801">
   <title>BioLogic BikeBrain</title>
   <link>http://sharl.hauN.org/d/2014050801</link>
   <description>sharlinfo BioLogic BikeBrain - GPS bike and cycle computerを導入して1か月くらい。いい感じ。</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
<a href="https://itunes.apple.com/jp/app/id424193629">BioLogic BikeBrain - GPS bike and cycle computer</a>を導入して1か月くらい。いい感じ。
</p>]]></content:encoded>
   <dc:date>2014-05-08T18:06:22+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>iPhone</dc:subject>
   <dc:subject>BIKE</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014050201">
   <title>DQX2014GWミッションをグラフに</title>
   <link>http://sharl.hauN.org/d/2014050201</link>
   <description>sharlinfo ゴルスラ会長のゴールデンミッションが始まっていて、ミッションの進行状況ページが公開されていたのでとりあえずデータを取得する。んでグラフに・・私家版『ゴルスラ会長のゴールデンミッション』ミッション進行状況データ量増えてきたので間引くことも視野に入れ...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
<a href="http://hiroba.dqx.jp/sc/topics/detail/01f78be6f7cad02658508fe4616098a9/">ゴルスラ会長のゴールデンミッション</a>が始まっていて、
<a href="http://hiroba.dqx.jp/sc/event/2014gw">ミッションの進行状況ページ</a>が公開されていたのでとりあえずデータを取得する。
<p>
んでグラフに・・<a href="http://sharl.hauN.org/d/../dqx2014gw.html">私家版『ゴルスラ会長のゴールデンミッション』ミッション進行状況</a>
<p>
データ量増えてきたので間引くことも視野に入れないとなー
</p>]]></content:encoded>
   <dc:date>2014-05-02T10:07:22+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>GAME</dc:subject>
   <dc:subject>hack</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014050101">
   <title>ログイン数のリアルタイム表示をHerokuで</title>
   <link>http://sharl.hauN.org/d/2014050101</link>
   <description>sharlinfo 自分のサイトでやってるやつをPSGIで書きなおしてHerokuにdeploy...と思い立ったのでmiyagawa/heroku-buildpack-perlを使ってみたところ----- Fetching custom git buildpack... done----- Perl/PSGI app detected----- Bootstrapping cpanm----- Installing depend...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
<a href="http://sharl.hauN.org/d/../MoE/">自分のサイト</a>でやってるやつをPSGIで書きなおしてHerokuにdeploy...と思い立ったので
<a href="https://github.com/miyagawa/heroku-buildpack-perl">miyagawa/heroku-buildpack-perl</a>
を使ってみたところ
<pre>
-----&gt; Fetching custom git buildpack... done
-----&gt; Perl/PSGI app detected
-----&gt; Bootstrapping cpanm
-----&gt; Installing dependencies
       /tmp/buildpack_b77d3c0d-2a81-44a0-93bc-59c252147ccd/bin/compile: 28: cpanm: not found
-----&gt; Installing Starman
       /tmp/buildpack_b77d3c0d-2a81-44a0-93bc-59c252147ccd/bin/compile: 31: cpanm: not found
-----&gt; Discovering process types
       Procfile declares types     -&gt; (none)
       Default types for Perl/PSGI -&gt; web

-----&gt; Compressing... done, 0K
-----&gt; Launching... done, v5
</pre>
ん? と思って原因を調べてみたら、githubが<kbd>raw.githubusercontent.com</kbd>にコンテンツ置くようになってリダイレクトしていたので
cpanmが取得できなくてエラーになっていた。(ことに気がつくまで約1時間・・Heroku初めてなんです!!)
<p>
issueを出したら素早く修正されて
<pre>
-----&gt; Fetching custom git buildpack... done
-----&gt; Perl/PSGI app detected
-----&gt; Bootstrapping cpanm
       Successfully installed version-0.9908 (upgraded from 0.77)
       Successfully installed Module-Metadata-1.000022
       Successfully installed JSON-PP-2.27203
       Successfully installed Test-Simple-1.001003 (upgraded from 0.92)
       Successfully installed CPAN-Meta-YAML-0.012
       Successfully installed Parse-CPAN-Meta-1.4414 (upgraded from 1.39)
       Successfully installed CPAN-Meta-Requirements-2.125
       Successfully installed CPAN-Meta-2.141170
       Successfully installed Perl-OSType-1.007
       Successfully installed ExtUtils-CBuilder-0.280216 (upgraded from 0.2602)
       Successfully installed ExtUtils-ParseXS-3.24 (upgraded from 2.2002)
       Successfully installed Module-Build-0.4205 (upgraded from 0.340201)
       Successfully installed App-cpanminus-1.7004
       13 distributions installed
-----&gt; Installing dependencies
:
:
:
-----&gt; Discovering process types
       Procfile declares types     -&gt; (none)
       Default types for Perl/PSGI -&gt; web

-----&gt; Compressing... done, 2.5MB
-----&gt; Launching... done, v5
       http://moestats.herokuapp.com/ deployed to Heroku
</pre>
おお、入った入った。
<p>
こちらになります。<a href="http://moestats.herokuapp.com/">Master of Epic login status</a>
</p>]]></content:encoded>
   <dc:date>2014-05-01T11:02:00+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>perl</dc:subject>
   <dc:subject>Master of Epic</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014041701">
   <title>gperfによるCompiler::Lexer,mrubyのfootprint最小化実験</title>
   <link>http://sharl.hauN.org/d/2014041701</link>
   <description>sharlinfo gperfで完全ハッシュ関数を作成してキーワードのマッチを高速に行う試みはrubyなどで行われている手法だけど、そこで生成される関数とかハッシュテーブルのサイズをgperfに与えるオプションを変えることで小さくできると嬉しいことがあるんじゃないか? というのを、...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
gperfで完全ハッシュ関数を作成してキーワードのマッチを高速に行う試みはrubyなどで行われている手法だけど、
そこで生成される関数とかハッシュテーブルのサイズをgperfに与えるオプションを変えることで小さくできると
嬉しいことがあるんじゃないか? というのを、ふと思いついたのでやってみてる途中経過。
<p>
コードは<a href="https://github.com/sharl/gperf-min">https://github.com/sharl/gperf-min</a>に。
<p>
ターゲットはLinux x86_64で対象は<a href="http://search.cpan.org/dist/Compiler-Lexer/">Compiler::Lexer</a>で。
<p>
ハッシュ関数はinline化されてしまってよくわからないので、生成されるシンボルテーブルから関連するサイズを求めてみるようにした。
<p>
以下は途中経過なのでまだまだ変わるかも? (4/21に終わってました)
<blockquote>
Compiler::Lexer キーワード 408 個
<pre>
$ sort -k2 gperf-min-p5-Compiler-Lexer-linux.log | head
in_word_set 00e0 asso_values 0200 wordlist 06f78 lookup 0000 total  29272 filesize 2207840 [-i1 -j1 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 075b8 lookup 0000 total  30872 filesize 2213560 [-i0 -j1 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 07cf8 lookup 0000 total  32728 filesize 2215392 [-i2 -j1 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 09998 lookup 0000 total  40056 filesize 2226840 [-i2 -j3 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 09e58 lookup 0000 total  41272 filesize 2228032 [-i0 -j3 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 0a038 lookup 0000 total  41752 filesize 2228512 [-i1 -j3 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 0bf78 lookup 0000 total  49752 filesize 2240632 [-i2 -j5 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 0c878 lookup 0000 total  52056 filesize 2247008 [-i0 -j5 -k1,2,4,5,$]
in_word_set 00e0 asso_values 0200 wordlist 0c878 lookup 0000 total  52056 filesize 2247008 [original]
in_word_set 00e0 asso_values 0200 wordlist 0e1f8 lookup 0000 total  58584 filesize 2257656 [-i1 -j5 -k1,2,4,5,$]
</pre>
</blockquote>
<a href="http://cpansearch.perl.org/src/GOCCY/Compiler-Lexer-0.18/src/compiler/util/Compiler_reserved_keyword.cpp">src/compiler/util/Compiler_reserved_keyword.cpp</a>をコンパイルしてできる<kbd>blib/arch/auto/Compiler/Lexer/Lexer.so</kbd>を<kbd>nm</kbd>してサイズを出してる。
コードサイズは変わってないけど、lookupが減ってトータル38kBytesくらい減ってますな。
<p>
<kbd>in_word_set</kbd>が文字列から構造体のポインタを返すハッシュ関数のサイズ。<kbd>total</kbd>が<kbd>in_word_set+asso_values+wordlist+lookup</kbd>の合計。<kbd>filesize</kbd>は<kbd>Lexer.so</kbd>のサイズ。オリジナルソースから生成されるサイズよりも
少し減ってるのがわかるはず。アラインメントがあるから多少の誤差はあるけども。
<p>
次はOS X Mavericks, Command Line Tools for Xcode5.1.1のLLVM環境で<a href="https://github.com/mruby/mruby">mruby</a>を。
<blockquote>
mruby キーワード 40 個
<pre>
$ sort -k2 gperf-min-mruby-osx.log | head
parser_yylex 66e0 asso_values 0100 wordlist 03b50 lookup 0000 total  41776 filesize 1073700 [-i0 -j1 -k1,2,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03b98 lookup 0000 total  41848 filesize 1073668 [-i0 -j1 -k1,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03bb0 lookup 0000 total  41872 filesize 1073828 [-i1 -j1 -k1,2,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03bf8 lookup 0000 total  41944 filesize 1073796 [-i1 -j1 -k1,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03bf8 lookup 0000 total  41944 filesize 1073796 [original]
parser_yylex 66e0 asso_values 0100 wordlist 03c58 lookup 0000 total  42040 filesize 1073924 [-i2 -j1 -k1,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03c58 lookup 0000 total  42040 filesize 1074052 [-i1 -j3 -k1,2,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03c88 lookup 0000 total  42088 filesize 1074116 [-i2 -j1 -k1,2,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03cd0 lookup 0000 total  42160 filesize 1074084 [-i0 -j3 -k1,3,$]
parser_yylex 66e0 asso_values 0100 wordlist 03cd0 lookup 0000 total  42160 filesize 1074212 [-i0 -j3 -k1,2,3,$]
</pre>
</blockquote>
<kbd>src/lex.def</kbd>をincludeしてる<kbd>parse.y</kbd>から生成される<kbd>y.tab.c</kbd>をコンパイルしてできる<kbd>build/host/src/y.tab.o</kbd>。キーワード少ないからあんまり変わんないね。
<p>
などなど、実験してたりするのでした。CPUパワー足りねえ(笑)
<p>
小さくするんじゃなくて速度を求めるなら<kbd>--switch</kbd>とか<kbd>--readonly-tables</kbd>とかするといいんじゃないかな。
</p>]]></content:encoded>
   <dc:date>2014-04-17T23:50:25+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>hack</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2014041401">
   <title>買ったった</title>
   <link>http://sharl.hauN.org/d/2014041401</link>
   <description>sharlinfo 4/5に到着したけどまだ2回しか乗ってないよ…寒いんだよ… ダホン(DAHON) Curve D7 オブシディアンブラック[その他]ダホン(DAHON) キャットアイ(CAT EYE) CC-MC200W マイクロワイヤレス ブラック[スポーツ用品]キャットアイ(CAT EYE) (2012-04-05) I live(アイリブ)...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
4/5に到着したけどまだ2回しか乗ってないよ…寒いんだよ…
<table class="amazon-box">
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00IGK5BL4" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41vUL6lHQ1L._SL160_.jpg" alt="[ダホン(DAHON) Curve D7 オブシディアンブラック[その他]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00IGK5BL4" target="_blank">ダホン(DAHON) Curve D7 オブシディアンブラック[その他]</a></strong><br />
<br />
ダホン(DAHON)<br />
</li>
</ul>
  </td>
  </tr>
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B007NE32JC" target="_blank"><img src="http://ecx.images-amazon.com/images/I/518amMFEtPL._SL160_.jpg" alt="[キャットアイ(CAT EYE) CC-MC200W マイクロワイヤレス ブラック[スポーツ用品]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B007NE32JC" target="_blank">キャットアイ(CAT EYE) CC-MC200W マイクロワイヤレス ブラック[スポーツ用品]</a></strong><br />
<br />
キャットアイ(CAT EYE) (2012-04-05)<br />
</li>
</ul>
  </td>
  </tr>
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00HIAUWEO" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41OTn3LJmWL._SL160_.jpg" alt="[I live(アイリブ)I live LOCK reflect dial [アイリブ ロック リフレクト ダイヤル] φ18×1200mm[スポーツ用品]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00HIAUWEO" target="_blank">I live(アイリブ)I live LOCK reflect dial [アイリブ ロック リフレクト ダイヤル] φ18×1200mm[スポーツ用品]</a></strong><br />
<br />
I live(アイリブ)<br />
</li>
</ul>
  </td>
  </tr>
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B003VLIWGE" target="_blank"><img src="http://ecx.images-amazon.com/images/I/415c6oGEofL._SL160_.jpg" alt="[PALMY(パルミー) アルミシャックルロック P-ES-101AL/Φ15mm ブラック[スポーツ用品]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B003VLIWGE" target="_blank">PALMY(パルミー) アルミシャックルロック P-ES-101AL/Φ15mm ブラック[スポーツ用品]</a></strong><br />
<br />
PALMY(パルミー) (2012-08-24)<br />
</li>
</ul>
  </td>
  </tr>
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00385XBFA" target="_blank"><img src="http://ecx.images-amazon.com/images/I/416hGsY8S5L._SL160_.jpg" alt="[GENTOS(ジェントス) 閃 355 【明るさ100ルーメン/実用点灯10時間】 SG-355B[スポーツ用品]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00385XBFA" target="_blank">GENTOS(ジェントス) 閃 355 【明るさ100ルーメン/実用点灯10時間】 SG-355B[スポーツ用品]</a></strong><br />
<br />
GENTOS(ジェントス) (2010-03-20)<br />
</li>
</ul>
  </td>
  </tr>
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00DQSI6MM" target="_blank"><img src="http://ecx.images-amazon.com/images/I/51mkU8eQFEL._SL160_.jpg" alt="[キャットアイ(CATEYE) テールライト [NIMA] クロームブラック[スポーツ用品]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/B00DQSI6MM" target="_blank">キャットアイ(CATEYE) テールライト [NIMA] クロームブラック[スポーツ用品]</a></strong><br />
<br />
キャットアイ(CAT EYE)<br />
</li>
</ul>
  </td>
  </tr>
</table>
早くぽたぽたしたいのう…
</p>]]></content:encoded>
   <dc:date>2014-04-14T23:44:17+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>BUY</dc:subject>
   <dc:subject>BIKE</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2013122401">
   <title>【追記あり】serverspecは敷居が高い</title>
   <link>http://sharl.hauN.org/d/2013122401</link>
   <description>sharlinfo CentOS6.5をminimalで入れたら当然のようにrubyは入っていないので入れてみる。$ sudo yum -y install rubygems$ yum list rubyInstalled Packagesruby.x86_64 1.8.7.352-13.el6 @updates$ sudo gem install serverspec --no-ri --no-rdoc1.8.7なのですが、だいじょ...</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
CentOS6.5をminimalで入れたら当然のようにrubyは入っていないので入れてみる。
<p>
<blockquote>
<pre>
$ sudo yum -y install rubygems
$ yum list ruby
Installed Packages
ruby.x86_64                 1.8.7.352-13.el6                   @updates
$ sudo gem install serverspec --no-ri --no-rdoc
</pre>
</blockquote>
1.8.7なのですが、だいじょうぶなのかこれは…と思ったら案の定
<ul>
<li>ruby2.0以降じゃないとホスト名からIPアドレスを引けない</li>
<li>ruby2.1以降じゃないとインターフェイスを指定してIPアドレスが取得できない</li>
</ul>
などの問題が出てきて、お手軽に、というわけにはいかなかった。
<p>
serverspec使うには「rubyが入っている前提です」って説明ではなくて、
「ruby-buildで最新のrubyをビルドします」ってところから説明しないといけないのでは、と思った。
<p>
こういうやつ <a href="https://gist.github.com/ysaotome/5830732">CentOS 6.4 x86_64 にserverspecセットアップするスクリプトー</a>
<p>
20:01追記:<br />
1.8.7でも動くので安心してお使いください、バグあったらpullreqしてください、ということです。
<p>
12/25 15:00追記<br />
<a href="http://d.hatena.ne.jp/tagomoris/20131225/1387939867">serverspecのアーキテクチャ - tagomorisのメモ置き場</a>
<blockquote>
誤解
</blockquote>
モリスさんから説明していただいた…。非常にわかりやすかったです。ありがとうございます。
</p>]]></content:encoded>
   <dc:date>2013-12-24T18:12:05+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>日常</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2013121801">
   <title>Coleman ウォーキングポーチ</title>
   <link>http://sharl.hauN.org/d/2013121801</link>
   <description>sharlinfo 水曜どうでしょう祭 UNITE 2013で売っていたもののオリジナル。違いは刺繍のありなしくらいか。折り畳み傘とiPad miniと小物が一緒に入るのでものすごく便利。 Coleman Walking Pouch ウエスト ショルダーバッグ CBW10111 パープル </description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
<a href="http://unite2013.jp/">水曜どうでしょう祭 UNITE 2013</a>で売っていたもののオリジナル。違いは刺繍のありなしくらいか。
折り畳み傘とiPad miniと小物が一緒に入るのでものすごく便利。
<p>
<table class="amazon-box">
  <tr>
  <td class="amazon-image">
  <a href="http://www.amazon.co.jp/dp/B004S5922U?tag=sharlinfo-22" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41do8wJ7KSL._SL160_.jpg" alt="[Coleman Walking Pouch ウエスト ショルダーバッグ CBW10111 パープル]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://www.amazon.co.jp/dp/B004S5922U?tag=sharlinfo-22" target="_blank">Coleman Walking Pouch ウエスト ショルダーバッグ CBW10111 パープル</a></strong><br />
<br />
<br />
</li>
</ul>
  </td>
  </tr>
</table>
</p>]]></content:encoded>
   <dc:date>2013-12-18T16:00:43+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>BUY</dc:subject>
  </item>
  <item rdf:about="http://sharl.hauN.org/d/2013112901">
   <title>バーナード嬢曰く。</title>
   <link>http://sharl.hauN.org/d/2013112901</link>
   <description>sharlinfo  バーナード嬢曰く。[コミック]施川 ユウキ一迅社 (2013-04-19) SFファンはこんなにも危険です。</description>
   <content:encoded><![CDATA[<p><span style="display:none">-sharlinfo-</span><p>
<table class="amazon-box">
  <tr>
  <td class="amazon-image">
  <a href="http://astore.amazon.co.jp/sharlinfo-22/detail/4758063710" target="_blank"><img src="http://ecx.images-amazon.com/images/I/51gD-l2CkrL._SL160_.jpg" alt="[バーナード嬢曰く。[コミック]]"/></a>
  </td>
  <td class="amazon-info">
<ul>
<li><strong><a href="http://astore.amazon.co.jp/sharlinfo-22/detail/4758063710" target="_blank">バーナード嬢曰く。[コミック]</a></strong><br />
施川 ユウキ<br />
一迅社 (2013-04-19)<br />
</li>
</ul>
  </td>
  </tr>
</table>
SFファンはこんなにも危険です。
</p>]]></content:encoded>
   <dc:date>2013-12-12T14:14:28+09:00</dc:date>
   <dc:creator>しゃある</dc:creator>
   <dc:subject>BUY</dc:subject>
   <dc:subject>COMICS</dc:subject>
  </item>
</rdf:RDF>
