<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8571806295723709379</id><updated>2011-11-28T09:09:38.813+09:00</updated><category term='つぶやき'/><category term='scheme'/><category term='colinux'/><category term='pastebin'/><category term='VT100'/><category term='アニメ'/><category term='latex'/><category term='newLISP'/><category term='メモ'/><category term='ぼやき'/><category term='Gmail'/><category term='ニコニコ動画'/><category term='xyzzy'/><category term='フォント'/><category term='その他'/><category term='GNU'/><category term='Blogger'/><category term='Java'/><category term='Lisp'/><category term='ネタ'/><category term='test'/><category term='辞書'/><category term='GitHub'/><category term='読んだ本'/><category term='Linux'/><category term='haloscan'/><category term='debian'/><category term='Software'/><category term='Emacs'/><category term='Common Lisp'/><category term='勉強会'/><title type='text'>舌足らずなブログ</title><subtitle type='html'>プログラミング言語Lispのこととか、そうでないこととか</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default?start-index=101&amp;max-results=100'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>115</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-895555675618299622</id><published>2011-10-08T08:33:00.001+09:00</published><updated>2011-10-14T12:10:41.600+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>Win64でnewLISPをコンパイルする</title><summary type='text'>
newLISPのソースコードを改造して、Win64環境でコンパイルできるようしてみました。64ビットプログラミングの練習とnewlispの内部動作を調べることを目的とした個人的なビルドなので、とりあえず動く程度の出来なのは勘弁してください。基にしたnewLISPのバージョンはv.10.3.3です。
作成したバイナリはこのエントリの最下に置いておきます。GPLライセンスに則るならソースか差分パッチも公開すべきなんだろうけどどうしよう…。


パッケージに同梱しているマニュアル(doc/INSTALL)によるとnewLISPがコンパイル可能なメモリモデルはILP32とLP64のみらしく、Win64のメモリモデルであるLLP64はサポートされていない様子。
newLISPではlong型を基本として、整数もポインタも同じビット長として扱っているため、その辺も考慮してソースを改造する必要</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/895555675618299622/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/10/win64newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/895555675618299622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/895555675618299622'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/10/win64newlisp.html' title='Win64でnewLISPをコンパイルする'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1264986359334456930</id><published>2011-07-29T01:07:00.002+09:00</published><updated>2011-07-29T01:11:03.188+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISP v.10.3.2リリースノート翻訳</title><summary type='text'>安定版となるnewLISP v.10.3.2がリリースされていたのでリリースノートをざっくりと翻訳。
→newLISPダウンロードページ

とりあえず、newlisp本体とjson.lspが文字列内部のunicodeエスケープ(\unnnn)を解釈してくれるようになったこと、ココには載ってないけどget-urlのカスタムヘッダーのバグが修正されたことが嬉しい。

原文はこちら。配布ファイルのdoc/CHANGESも参照のこと。

newLISP® v.10.3.2 リリースノート

Addtions (追加機能)


  
    文字列が処理可能なクオート文字にUnicodeエンコードを追加。
    例として"\u03b1\u03b2\u03b3"はギリシャ文字"αβγ"に変換される。
    この機能はUTF8版newLISPで利用できる。
  


Other </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1264986359334456930/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/07/newlisp-v1032.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1264986359334456930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1264986359334456930'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/07/newlisp-v1032.html' title='newLISP v.10.3.2リリースノート翻訳'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-9042446080143327891</id><published>2011-06-14T13:09:00.000+09:00</published><updated>2011-06-14T13:09:42.449+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>[newLISP]cygwinでのコンパイルを通す</title><summary type='text'>cygwinからnewlispをコンパイルしようとすると
nl-sock.c:2010: error: ‘ICMP6_FILTER’ undeclared (first use in this function)
と言われてコンパイルエラーが起こってしまうので、それを解決します。


$CYGWIN/usr/include/netinet/icmp6.h があるかどうか確認する。あれば2.を飛ばして3.へ。
GNU謹製のicmp6.hを拾ってきて1.のパスに追加する。（→icmp6.h GNU - Google 検索）
※cygwinのインストーラに上記のヘッダがあれば尚良しですが、見つけられなかったので…
以下のパッチを参考に nl-sock.c を書き換える。
--- nl-sock.c.orig Tue Jun 14 12:52:46 2011
+++ nl-sock.c Tue </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/9042446080143327891/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/06/newlispcygwin.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/9042446080143327891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/9042446080143327891'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/06/newlispcygwin.html' title='[newLISP]cygwinでのコンパイルを通す'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6796527082952204256</id><published>2011-06-10T12:20:00.001+09:00</published><updated>2011-06-10T14:40:09.712+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VT100'/><title type='text'>端末の表示崩れをなんとかする</title><summary type='text'>ターミナルの表示が崩れたときの対処法 - Clouder::Bloggerより。少し改良



端末上でバイナリファイルの中身をうっかり出力させてしまってウィンドウの表示がえらいことになることが時々あったので、この解決方法はありがたいです。ただしBSD由来のshでは、echoコマンドがエスケープシーケンスを理解するためのオプション(-e)を理解してくれないので注意（ksh,zshなど他のシェルまでは分かりませんが）。

参考リンク

ASCII Table - ANSI Escape sequences (ANSI Escape codes) - VT100 / VT52
VT100 Escape Codes
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6796527082952204256/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/06/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6796527082952204256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6796527082952204256'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/06/blog-post.html' title='端末の表示崩れをなんとかする'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6324464738769484329</id><published>2011-06-08T06:43:00.000+09:00</published><updated>2011-06-08T06:43:35.476+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='その他'/><title type='text'>ユニークなURL</title><summary type='text'>URLの短さとサービスのシンプルさが面白いなーと感心したサイト。若干ネタっぽいですが。


ifconfig.me
ifconfigコマンドのようなネットワーク情報（というよりブラウザ情報）を返してくれるサービス。
端末上で curl ifconfig.me と打ち込めば自分のIPアドレスが返ってくるなど、ブラウザだけでなく端末から利用する際にも重宝する。JSON, XML形式にも対応している。

jsonip.com
名前の通り、自分のIPアドレスをJSON形式で返すだけのサービス。
URLにパス名を指定するとコールバック形式のJSONが返ってくる。
http://jsonip.com/getip =&gt; getip({"ip":"72.14.203.191"});

httpstat.us
HTTPステータスコードを返すだけのサービス。
例えば httpstat.us/200 と打</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6324464738769484329/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/06/url.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6324464738769484329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6324464738769484329'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/06/url.html' title='ユニークなURL'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8572613542973716485</id><published>2011-05-28T17:49:00.001+09:00</published><updated>2011-05-28T17:51:28.014+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='フォント'/><category scheme='http://www.blogger.com/atom/ns#' term='ネタ'/><category scheme='http://www.blogger.com/atom/ns#' term='アニメ'/><title type='text'>めんまフォント</title><summary type='text'>



アニメ「あの日見た花の名前を僕達はまだ知らない。」の公式ページで配布されている「めんまフォント」が気になったのでインストールしてみた。…が英数字や記号の一部が表示されないおかげでかゆうま（初代バイオハザード：飼育員の日記）に見えてしまう件。
ちなみにxyzzyでは利用できないみたい。同じTrueTypeフォントのARISAKAフォントやうずらフォントは使えるのになぜ？


あの花オリジナル めんまフォント ダウンロード
あの日見た花の名前を僕達はまだ知らない。| アニメ公式サイト
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8572613542973716485/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/05/blog-post_4861.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8572613542973716485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8572613542973716485'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/05/blog-post_4861.html' title='めんまフォント'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-hsxBr7Nfcx4/TeCzKHG1S-I/AAAAAAAAAR0/6HQXrVuXTeo/s72-c/WS000013.BMP' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-344958608874981569</id><published>2011-05-28T16:35:00.000+09:00</published><updated>2011-05-28T16:35:20.910+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>いろいろ</title><summary type='text'>マシンの新調

デスクトップPC＋Windows7買いました。
今までのノートPCが5年以上前のモノのため、さすがにスペック的に見劣りしてたので。
新マシンはHPの100円アップグレードキャンペーンから選択。
OSを64ビット版Windows7にしたり、プロセッサをAMDのPhenom II X6にしたりと色々冒険してみましたが、まあ何とかなるかと思います。メモリ2Gはおそらく買い替えになるんだろうな…。

レンタルサーバー

実験してみたいことがあったのでアイネットディー様のレンタルサーバーの激安プランを借りてみました。URLはlambda.que.jpです。
レンタルサーバーを選ぶにあたって気に入ったのは、OSが今まで触ったことのなかったFreeBSDだったことと、格安プランでもSSHが利用できる点ですね。あまり迷惑がかかることはできませんが、自前でプログラムをコンパイルもできるので</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/344958608874981569/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/05/blog-post_28.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/344958608874981569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/344958608874981569'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/05/blog-post_28.html' title='いろいろ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3616413415810766418</id><published>2011-05-14T20:04:00.000+09:00</published><updated>2011-05-14T20:04:04.672+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><title type='text'>今日の無題</title><summary type='text'>昨日Bloggerにログインしようとしたらこんなメッセージが表れたので、メンテナンス中かと思ったらどうやら結構深刻な障害だったらしい。現在は復旧している様子。





Blogger Buzz: Blogger is back
GoogleのBloggerサービス、20時間以上にわたる障害から復旧 - ねとらぼ
</summary><link rel='related' href='http://buzz.blogger.com/2011/05/blogger-is-back.html?spref=bl' title='今日の無題'/><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3616413415810766418/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/05/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3616413415810766418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3616413415810766418'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/05/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-QK5BIa0MHB8/Tc5gFuU0UjI/AAAAAAAAARg/y6WvJXTChWo/s72-c/Blogger-20110513.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8931631904009421504</id><published>2011-04-05T22:37:00.003+09:00</published><updated>2011-04-05T23:00:51.134+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pastebin'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISPのコード片を貼り付けるサイト</title><summary type='text'>Pastebin.comがnewLISPのシンタックスハイライトに対応しているらしいので試しに貼り付けてみる。
見た目は他のSchemeのシンタックスとあまり変わらないから分かりにくいけど、ちゃんとキーワードが強調表示されているみたい。

&lt;!--  --&gt;



探してみたら他にもあったので手当たり次第にリンクしておこう。
基本関数へのマニュアルリンクが付与されるおまけつきとか。なにこれ素敵じゃない。


KDE Pastebin Utility [example]
Stirkbin - Pastebin [example]
TdCT’s paste » Bienvenue ! [example]
pzt.me » Welcome! [example]
&lt;!-- tex private pastebin - collaborative debugging tool --&gt;
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8931631904009421504/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/04/newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8931631904009421504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8931631904009421504'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/04/newlisp.html' title='newLISPのコード片を貼り付けるサイト'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8596504549268886087</id><published>2011-03-14T11:32:00.000+09:00</published><updated>2011-03-14T11:32:57.074+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>It works!</title><summary type='text'>11日に発生した東北地方太平洋沖地震ですが、私の住んでいる新潟は軽く揺れた程度で大きな被害はありませんでした。知り合いと身内もどうやら無事みたい。
といっても未だに余震が続いている状態なので油断はできませんが…。

報告は以上。またいつも通りの生活に戻ります。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8596504549268886087/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/03/it-works.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8596504549268886087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8596504549268886087'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/03/it-works.html' title='It works!'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2724813311684403815</id><published>2011-02-16T18:23:00.001+09:00</published><updated>2011-02-19T11:26:56.700+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='メモ'/><title type='text'>今日の無題</title><summary type='text'>2chのCentOSスレより
バックアップツールに関する話題とリンクがあったのでメモ用にコピペ。
なんとなく個人利用向けとはツールとは違う気もするが…

※CSSは2chブラウザ Chaika のものを拝借。


&lt;!--
dl.resContainer {
  margin: 0.5em 15px 0.5em 15px;
}

dt.resHeader {
  background-color: transparent;
  padding: 2px 4px;
  font-size: 0.8em;
  color: #777;
}

dd.resBody {
  margin: 0px 0px 20px 0px;
  padding: 12px 35px 12px 25px;
}

span.resNumber {
  font-weight: bold;
  color: #111</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2724813311684403815/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2011/02/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2724813311684403815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2724813311684403815'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2011/02/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8929797050674542205</id><published>2010-12-24T01:43:00.001+09:00</published><updated>2010-12-24T01:46:15.728+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>今日の無題</title><summary type='text'>今年もVLCメディアプレイヤーは期間限定でクリスマス仕様みたいです。
（左：WindowsXP / 右：Ubuntu9.10）






→去年(2009年)のスクリーンショット</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8929797050674542205/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/12/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8929797050674542205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8929797050674542205'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/12/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WYfJEM2p5Uo/TRN6RjPfMmI/AAAAAAAAAPw/Cc7nZQ_fjbU/s72-c/WS000009.BMP' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1103780617661195765</id><published>2010-11-14T03:38:00.002+09:00</published><updated>2010-11-14T03:42:41.073+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>[newLISP]guiserverをインストールせずに使いたい</title><summary type='text'>newlispに付属のGUI(GUI-Server)は各種ファイルが既にインストールされている状態で
ないと利用できないので、なるべく任意のディレクトリで使うようにするための方法です。

※newlispのバージョンアップに伴い利用できなくなる可能性があります
※Linux環境(CentOS_5)にて動作確認

環境変数NEWLISPDIRにguiserver.{jar.lsp}が置いてあるディレクトリを指定してプロセスを起動させる
(ソースパッケージを展開した場合は"newlisp-10.x.x/guiserver"以下にあるはず)

% pwd 
/home/kosh/src/newlisp-10.2.16/guiserver
% NEWLISPDIR=`pwd` newlisp table-demo.lsp
newLISP-GS v.1.42 on Linux
(guiserver</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1103780617661195765/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/11/newlispguiserver.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1103780617661195765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1103780617661195765'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/11/newlispguiserver.html' title='[newLISP]guiserverをインストールせずに使いたい'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3052233952029693320</id><published>2010-11-08T04:16:00.003+09:00</published><updated>2010-11-08T15:41:52.936+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISP v10.2.X インストールメモ</title><summary type='text'>&lt;!-- -*- markdown -*- --&gt;

&lt;!-- newLISP v10.2.X インストールメモ --&gt;

以前書いた情報
がすっかり古くなったので書き直し。

現在(2010年11月時点)の安定版はnewlisp v.10.2.8
開発版はnewlisp v.10.2.17です。

このページは以下のURLと配布ファイルに同梱しているREADMEを参考に作成しています。

newLISP - Downloads

ダウンロードページ


すべてのファイル- http://www.newlisp.org/downloads/
モジュール - http://www.newlisp.org/modules/
開発版 - http://www.newlisp.org/downloads/development/


配布されているtarballの中身

</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3052233952029693320/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/11/newlisp-v102x.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3052233952029693320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3052233952029693320'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/11/newlisp-v102x.html' title='newLISP v10.2.X インストールメモ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1657576730299367086</id><published>2010-10-30T06:29:00.004+09:00</published><updated>2010-10-30T17:31:12.661+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='読んだ本'/><title type='text'>今年読んだ本</title><summary type='text'>なんとなく、今年(2010年)買った技術書を列挙してみる。


  プログラミング言語系
  JavaScript: The Good Parts ―「良いパーツ」によるベストプラクティス
  Pythonチュートリアル 第2版

  開発ツール
  入門git
  入門SSH
  GDBハンドブック
  HTML &amp; CSS ビジュアル・リファレンス 改訂版

  その他
  Software Design 総集編 【2000~2009】(DVD付)
  Puzzles for Hackers:スクリプトキディから大人のハッカーへ (IT Architects' Archive 知の連環)
  Winnyの技術  


後は図書館とか大学の蔵書をちょこちょこと。
「プログラミングClojure」や「Scheme手習い」などのLisp系の書籍は面白そうと思いながらも結局買ってなかったな…</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1657576730299367086/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/10/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1657576730299367086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1657576730299367086'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/10/blog-post.html' title='今年読んだ本'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8176948693122430000</id><published>2010-09-08T08:30:00.016+09:00</published><updated>2010-09-08T08:30:00.323+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs]Unicodeエスケープ文字を復元する</title><summary type='text'>
\u0040\u006b\u006f\u0073\u0068\u005f\u0062\u006f\u0074

上記のようなUnicodeエスケープ文字を元の文字列に戻すためのEmacs Lispです。ついでなので逆のエスケープする関数も書いておきます。

xyzzyの方は単純にElispのコードを書き換えただけ。xyzzyはemacsより書き方に幅があるようだけど、あんまりトリッキーなコードだとelisp&lt;=&gt;xyzzy間のコードの移植が大変になりそう。



emacsでこんな感じの置換操作を行う場合は以下のように書くのが定石らしい。

(while (re-search-forward "検索したい文字列" nil t)
  (replace-match "置換後の文字列" nil 'リテラルかどうか))


xyzzyならストリームを扱う関数を作ってed::</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8176948693122430000/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/09/emacsunicode.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8176948693122430000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8176948693122430000'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/09/emacsunicode.html' title='[Emacs]Unicodeエスケープ文字を復元する'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-9078634557370480104</id><published>2010-07-20T12:49:00.002+09:00</published><updated>2010-07-20T12:52:18.293+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='colinux'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>今日の無題</title><summary type='text'>&lt;!-- -*- mode:markdown; coding:utf8n -*- --&gt;

Debian4.0終了のお知らせ(遅)


10/01/21 Debian GNU/Linux 4.0 へのセキュリティサポートが終了します
10/05/22 Debian GNU/Linux 4.0 更新
10/06/02 Debian 4.0 "Etch" の全パッケージが archive.debian.org へ移動します


半年くらい前にインストールしたcoLinuxを久々に
引っ張りだしてみたら、どうやら Debian-4.0r0-etch.ext3 ではディストリビュ
ーションのバージョンが少々古くなってしまったらしい。

apt-getが使えないと色々困るので
Debian -- ディストリビューションアーカイブ
に書いてあるのを参考に /etc/apt/sources.list </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/9078634557370480104/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/07/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/9078634557370480104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/9078634557370480104'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/07/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2178383936195428836</id><published>2010-05-31T23:39:00.002+09:00</published><updated>2010-06-01T00:28:26.350+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs]sha1-file</title><summary type='text'>舌足らずなブログ: あれ？
がようやく解決したのでメモ。

こっちもxyzzyのエンコーディング指定と同じミスでした。
sha1.elはそれなりに長い文字列を受け取ると外部プロセスに処理を投げるので、その時の入力をバイナリ指定にしないといけないらしい。

(defun sha1-file (filename)
  (require 'sha1)
  (let ((coding-system-for-write 'binary))
    (with-temp-buffer
      (insert-file-contents filename)
      (sha1 (buffer-string)))))


ちなみにEmacs内部で処理する場合はエンコーディング指定は要らない。

(let ((sha1-use-external nil))
  (with-temp-buffer
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2178383936195428836/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/05/emacssha1-file.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2178383936195428836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2178383936195428836'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/05/emacssha1-file.html' title='[Emacs]sha1-file'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5289504765618554201</id><published>2010-05-19T11:25:00.008+09:00</published><updated>2010-07-22T13:53:55.615+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>[newLISP]今日の無題</title><summary type='text'>自作したnewlisp.elの挙動がおかしかった原因が少し分かったのでメモ。newlispのREPLはデフォルトで行編集ライブラリ(readline)が使えるが、 複数行を入力する場合は[cmd]~[/cmd]タグでS式を囲まなければいけないのが newlispの面倒な仕様。newlisp.elの newlisp-eval関数はその辺を考慮してプロセスに文字列を 送るようにしているのだけど、なぜか効果が無いようでREPLバッファに 入力が溜まってしまう現象がよく起きていた。
(defun newlisp-eval (str-sexp)
 "Eval newlisp s-expression."
 (interactive "snewLISP Eval: ")
 (let ((proc (newlisp-process)))
   (labels ((sendln (str)
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5289504765618554201/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/05/newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5289504765618554201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5289504765618554201'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/05/newlisp.html' title='[newLISP]今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5618196253871367777</id><published>2010-05-16T06:01:00.002+09:00</published><updated>2010-05-17T18:17:19.461+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><category scheme='http://www.blogger.com/atom/ns#' term='test'/><title type='text'>テスト投稿</title><summary type='text'>テストですよー

curl+newLISPからBloggerに投稿するテスト

関連リンク

  Blogger API - Google Code
  (newLISPer): Posting to Google Blogger using newLISP
  Google Data API Tips: Post on Blogger using curl
  Big Sky :: curlを使ってコマンドラインからGDataにログインし、picasaに画像をアップロードする
letter: [Common Lisp] Emacs Muse で書いて、Common Lisp 経由で Blogger に投稿する

</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5618196253871367777/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/05/blog-post_16.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5618196253871367777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5618196253871367777'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/05/blog-post_16.html' title='テスト投稿'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-218267452932433888</id><published>2010-02-09T08:18:00.013+09:00</published><updated>2010-07-21T21:37:01.841+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISP基礎文法最速マスター</title><summary type='text'>待っていても誰も書きそうにないので自分で作りました。
これは何？Lisp風スクリプト言語newLISPの文法一覧です。(→newLISP公式ページ)
S式について多少でも知っている人は他の処理系と比較してもよし。
そもそもS式を知らない人はLisp入門にしてもよし。 (先に他の有名なScheme処理系やCommon Lispに手を出す方が無難ですが)
newLISPの簡易リファレンスとして利用できるかと思います。ただし無保証です。 

基礎対話環境として使う$ newlisp -C
newLISP v.10.1.7 on Win32 IPv4 UTF-8, execute 'newlisp -h' for more info.

&gt; _
スクリプトを実行する$ newlisp file.lsp
評価コマンドラインからの利用では、複数行にわたるS式の評価は[cmd]~[/cmd]タグを用</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/218267452932433888/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/02/newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/218267452932433888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/218267452932433888'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/02/newlisp.html' title='newLISP基礎文法最速マスター'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6875382823470420837</id><published>2010-02-01T07:30:00.003+09:00</published><updated>2010-07-21T21:59:44.399+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[xyzzy]zone.l移植</title><summary type='text'>Emacsのジョークプログラムzone.elを移植したのでGitHubに置いておきますね。 壁||´･ω･`)っ kosh04/xyzzy-lisp/site-lisp/zone.l※コード内の説明文はシフトJISなのでブラウザから開くとたぶん文字化けしますん。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6875382823470420837/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/02/xyzzyzonel.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6875382823470420837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6875382823470420837'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/02/xyzzyzonel.html' title='[xyzzy]zone.l移植'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2988411251364263933</id><published>2010-01-30T02:51:00.011+09:00</published><updated>2010-01-30T05:03:02.417+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='scheme'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>Scheme コードバトンに参加</title><summary type='text'>次回3月予定のShibuya.lispに向けて、現在面白げな企画が進行中です。


Shibuya.lisp に向けて Scheme コードバトンするのはどうか？
第1回 Scheme コードバトンのお知らせ - ひげぽん OSとか作っちゃうかMona-



;; ■ これは何か？
;; Scheme のコードをバトンのように回していき面白い物ができあがるのを楽しむ遊びです。
;; 次回 Shibuya.lisp で成果を発表します。
;; Scheme 初心者のコードを書くきっかけに、中級者には他人のコードを読む機会になればと思います。
;;
;; ■ 2 つのルール
;;
;; (1)自分がこれだと思える変更をコードに加えて2日以内に次の人にまわしてください。
;; 「人に優しい」変更なら何でも良い。1文字の変更でも可。
;; 「人に優しい」とは例えば、次の人が読みやすいコードを書</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2988411251364263933/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/01/scheme.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2988411251364263933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2988411251364263933'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/01/scheme.html' title='Scheme コードバトンに参加'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-553726572154491880</id><published>2010-01-15T00:32:00.001+09:00</published><updated>2010-01-15T00:34:26.991+09:00</updated><title type='text'>今日の無題</title><summary type='text'>小野和俊のブログ:成長しないプログラマーの7つの悪習慣

4つほど該当。

ただ、自分にとって不満な事柄を「人のせいにする」のではなく「自分のせいにして無限ループに陥る」ことも悪習慣の一つなんじゃないかな。。

今年は少しずつでいいから出来ることを噛み締めて形にしていこうと思います。</summary><link rel='related' href='http://blog.livedoor.jp/lalha/archives/50281602.html' title='今日の無題'/><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/553726572154491880/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/01/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/553726572154491880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/553726572154491880'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/01/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2978721642279971354</id><published>2010-01-07T22:34:00.003+09:00</published><updated>2010-01-07T22:58:45.878+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><title type='text'>[xyzzy]分かったけど解決はしていない</title><summary type='text'>xyzzyを初期化ファイルなし(xyzzy.exe -q)で起動するとメニューバーの
[表示]-&gt;[ツールバー]部分が表示されない問題の原因が分かったのでメモ。

これはどうやらツールバーメニューの初期化を行う関数 (ed::load-command-bar-info)
が *load-history-hook* から呼び出されていて、さらにこのフック変数を実行する関数
(load-history-file) が.xyzzyのロードと共に呼び出されている為に -q オプションを
指定して起動するとツールバーメニューが空になる現象が起こるらしい。

;; estartup.l:148:
(unless no-init-file
  (trap-errors
    (let ((*loading-user-initial-file* t))
      (load (namestring </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2978721642279971354/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2010/01/xyzzy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2978721642279971354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2978721642279971354'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2010/01/xyzzy.html' title='[xyzzy]分かったけど解決はしていない'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5317587312392691181</id><published>2009-12-21T20:10:00.007+09:00</published><updated>2009-12-22T02:00:06.900+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>[VLC][クリスマス]あと数日ですよ</title><summary type='text'>
  


今年もやはりVLC media playerのアイコンがクリスマス仕様になっている様子。
こういう遊び心のあるソフトウェアは個人的に好感がもてます。

そして多分、今回も年明けまでこのアイコンのままだと予想。

→去年のスクリーンショット</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5317587312392691181/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/12/vlc.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5317587312392691181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5317587312392691181'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/12/vlc.html' title='[VLC][クリスマス]あと数日ですよ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_WYfJEM2p5Uo/Sy9Zu1H6Y0I/AAAAAAAAAMY/I7zYgBEnPy8/s72-c/vlc-xmas-20091221.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-68444440120054632</id><published>2009-12-08T04:06:00.008+09:00</published><updated>2009-12-08T05:38:14.890+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>今日の無題</title><summary type='text'>対応するプラットフォームの多さ[1]が魅力の一つのnewLISPですが、MaemoというOSベースのインターネットタブレット"N810"に移植した人がいるようです。

(apply newLisp Maemo)

guiserver(Javaで書かれたnewLISPのGUI環境)も稼動するようでリンク先の参考画像はなかなか派手目。CUIの起動画面にも凝っていてちょっとカッコイイです。

[1] Linux, MacOSX, FreeBSD, OpenBSD, NetBSD, Solaris/SunOS, Win32(MinGW) などなど

関連リンク


newlisp on the Nokia N810 Internet tablet -n ewlispfanclub.alh.net
Maemo OS - Wikipedia
N810 - Google 画像検索
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/68444440120054632/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/12/blog-post.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/68444440120054632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/68444440120054632'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/12/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-4634898550252195909</id><published>2009-11-30T01:50:00.006+09:00</published><updated>2009-12-08T05:34:06.064+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs]eldocをほんの少し便利にする</title><summary type='text'>LISPファイルの編集時に関数の引数を表示するマイナーモードとして、Emacsではeldoc-mode、CLではslime-autodoc-modeがあるんですが、両者の表示形式が微妙に異なることが気になったのでついカッとなってeldocの方を軽く改造しました。反省はしていない。

gist: 244937 - GitHub

参考画像を見れば分かると思いますが、ポイント位置の引数の強調方法がデフォル
トでは太字ではなくハイライトになってます。



その他、関数・変数ともにdocstringの表示が可能です。

ソースコードはGistに置いておくのでinstall-elispからインストールすればCL(SLIME)使いは幸せになれるかもしれません。

(install-elisp-from-gist 244937 "eldoc.el")

動作環境

Emacs22以上で動作確認。

</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/4634898550252195909/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/11/emacseldoc.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4634898550252195909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4634898550252195909'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/11/emacseldoc.html' title='[Emacs]eldocをほんの少し便利にする'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WYfJEM2p5Uo/SxKo1BROC6I/AAAAAAAAAL4/LJxE8o6uQkk/s72-c/eldoc-demo.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1011104757773833333</id><published>2009-11-11T08:30:00.004+09:00</published><updated>2009-12-08T05:44:13.715+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs]そんなことよりeval-after-load使おうぜ</title><summary type='text'>もっと使われてもいいのにと思うEmacsの設定周りのメモ。

[関数] (eval-after-load FILE FORM)

この関数は、指定されたライブラリFILEがロードされているときにのみ2番目の引数FORMを評価するというもの。

例えばmigemoをロードする時の自分の設定はこんな感じ。

;; migemoを読み込む。存在しない場合はnilを返す
(load "migemo" 'noerror)

(eval-after-load "migemo"
 (quote
  (progn
    ;; この辺がmigemoをロードした後に評価される
    (defadvice isearch-mode (before migemo-off activate)
      "初期状態は常にnil"
      (setq migemo-isearch-enable-p nil)</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1011104757773833333/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/11/emacseval-after-load.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1011104757773833333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1011104757773833333'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/11/emacseval-after-load.html' title='[Emacs]そんなことよりeval-after-load使おうぜ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-669311410147936591</id><published>2009-09-12T19:21:00.003+09:00</published><updated>2009-12-08T05:46:52.088+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>Swank server for newLISP</title><summary type='text'>ひっそりと更新。

以前挑戦した「newLISPをSLIMEから動かす」が、一応お遊び程度に完成したので公開してみます。

http://github.com/kosh04/newlisp-files/tree/master &gt;&gt; swank-newlisp.lsp

簡単なREPLが使えるくらいで、SLIMEの特徴であるシンボル名の補完、定義ファイルへのジャンプなどなど実装されていない残念な出来です。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/669311410147936591/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/09/swank-server-for-newlisp.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/669311410147936591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/669311410147936591'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/09/swank-server-for-newlisp.html' title='Swank server for newLISP'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6986248838998196844</id><published>2009-07-15T08:30:00.006+09:00</published><updated>2009-12-08T05:50:19.363+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GitHub'/><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>今朝の無題</title><summary type='text'>Lispは未来に生きている - リリカル☆Lisp開発日記 - http://blog.bugyo.tk/lyrical/2009/02/lisp-15.html

そろそろCLのuniversal-timeがキリ番になりますね。



---

そういえば自分のGitHubのリポジトリをちまちま更新しました。
主に個人用に作っているのでフォローしている人がいるとなんだか申し訳ない気分です。

今のところの更新頻度は emacs-lisp &gt; newlisp-files &gt;&gt; xyzzy-lisp こんな感じです（左に行くほど頻度が高い）。
研究室の端末がDebianなのでEmacsを弄りがちで、xyzzyとの挙動の違いを自作のxyzzy.elで埋めるのが主な目的。

---

それにしてもnewLISPは話題に乗りませんねー。
毎回検索の上位にこのブログが入っているのを見ると嬉</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6986248838998196844/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/07/blog-post_15.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6986248838998196844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6986248838998196844'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/07/blog-post_15.html' title='今朝の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5559535904775686103</id><published>2009-07-10T23:20:00.007+09:00</published><updated>2011-02-22T17:21:42.387+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><title type='text'>TeXのバージョンが円周率に近づいているらしい</title><summary type='text'>ということが「LaTeX2e 美文書作成入門」に書かれていて、なんだかトリビアを覚 えた気分です。
（ ・∀・)つ〃∩ﾍｪｰﾍｪｰﾍｪｰLaTeXで物書きをしている人にとっては常識だったりするんでしょうか、コレ。

以下書籍より引用（ただし手元にあるのは改訂第4版ではなく初版）


...そして，TEX第3.1版(1990年)の時点で次のような終結宣言をしました。 

もうこれ以上TEXは拡張しない。
もし新しい不具合があれば修正して第3.14版，第3.141版，第3.1415版，...と番号を進めていき，自分の死と同時に第π版とする。それ以後はどんな不具合があっても誰も手をつけてはならない。
TEXに関することはすべて文書化したので，このノウハウを生かして新たにソフトを作ることは自由である。





TeX - Wikipedia http://ja.wikipedia.org/</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5559535904775686103/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/07/texbnp.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5559535904775686103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5559535904775686103'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/07/texbnp.html' title='TeXのバージョンが円周率に近づいているらしい'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8870973865988120468</id><published>2009-07-09T21:05:00.003+09:00</published><updated>2009-12-08T06:47:40.129+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VT100'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>[VT100]アスキーアニメーション[AA]</title><summary type='text'>端末エミュレータのエスケープシーケンスを使ったアスキーアニメなんてものがある事を知ったのでちょっと自分でキャプチャしてみました。画像はGIFファイルです。



やり方は簡単で、エスケープシーケンスを含むテキストファイル(*.vt)を端末エミュレータで表示するだけ。ただしファイルの中身は一行づつ、パラパラ漫画のように時間差で表示させる方がいいみたいです(catコマンドを使うとアニメーションを見る余裕なく表示されてしまうので)。

今回はこの時間差表示を実現するためにnewlispをスクリプトとして使っていますが、端末で実行できるならCでも他のスクリプト言語で書いてもたぶんOK。

しかしこのアスキーアニメーション、実際に表示(というより再生)するために
当時の人は何の呪文を使っていたんでしょうかね。

使用したnewlispのソースは以下



ウィンドウのキャプチャ方法

上の画像は</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8870973865988120468/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/07/vt100aa.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8870973865988120468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8870973865988120468'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/07/vt100aa.html' title='[VT100]アスキーアニメーション[AA]'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_WYfJEM2p5Uo/SlXLuiSgWtI/AAAAAAAAALk/-rrTInH4j90/s72-c/vt100ascii-anime.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2120093305117943789</id><published>2009-07-07T17:20:00.002+09:00</published><updated>2009-12-08T06:59:45.659+09:00</updated><title type='text'>今日の無題</title><summary type='text'>このブログ(Blogger)に自作の動画を貼り付けようと思ったらGoogleVideoへのアップロードはすでに停止されていたというオチ。

Official Google Video Blog: Turning Down Uploads at Google Video- http://googlevideo.blogspot.com/2009/01/turning-down-uploads-at-google-video.html</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2120093305117943789/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/07/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2120093305117943789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2120093305117943789'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/07/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8302581734195155428</id><published>2009-06-29T18:00:00.003+09:00</published><updated>2009-12-08T07:03:00.493+09:00</updated><title type='text'>あれ？</title><summary type='text'>別にそれほど困った話ではないけど、xyzzyのsha-1,emacsのsha1関数を使った
ファイルのチェックサムを求める方法がよく分からない。

テストしたファイルは newLISPv10.1(UTF-8_win32)

SHA1(newlisp.dll)= 5ef2a160350fde6312baa2a6fa3d964c308f7faf
SHA1(newlisp.exe)= 561ff028b606c3671393848e279b845c5fdf60c1


で、以下が結果。

# [cygwin]
/cygdrive/c/Program Files/newlisp$ sha1sum.exe newlisp.exe
561ff028b606c3671393848e279b845c5fdf60c1 *newlisp.exe

;; [xyzzy]
(with-open-file (fp</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8302581734195155428/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/06/blog-post.html#comment-form' title='3 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8302581734195155428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8302581734195155428'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/06/blog-post.html' title='あれ？'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-7234225266925985566</id><published>2009-06-03T08:09:00.009+09:00</published><updated>2009-12-08T07:09:02.540+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[xyzzy]regexp-optを移植</title><summary type='text'>Emacsのregexp-opt.elをxyzzyに移植してみました。

一応Emacs移植キットは使わずに自前で動くようにしてあります。
あまり実用的な出来ではないですが、よかったらどうぞ。

https://github.com/kosh04/xyzzy-lisp/tree -&gt; site-lisp/ -&gt; regexp-opt.l

から入手できます。

regexp-opt.elとは?:

GNU Emacs Lispリファレンスマニュアル: 探索と一致

 -- Function: regexp-opt STRINGS &amp;optional PAREN
    この関数は、文字列STRINGSのいずれかに一致する効率よい正規表現を返
    す。これは、たとえばフォントロック（font-lock）モードなどで、可能
    な限り高速な一致や探索を行う必要がある場合に有用である。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/7234225266925985566/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/06/xyzzyregexp-opt.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/7234225266925985566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/7234225266925985566'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/06/xyzzyregexp-opt.html' title='[xyzzy]regexp-optを移植'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1403287192388439792</id><published>2009-05-26T01:11:00.009+09:00</published><updated>2009-12-08T07:12:16.709+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>「１０分でコーディング x 2 〜リストの破壊的操作篇〜」を解いてみる</title><summary type='text'>乗り遅れた感はありますが、g00000さん出題のLISP問題を解いてみました。

１０分でコーディング x 2 〜リストの破壊的操作篇〜 - わだばLisperになる - cadrグループ

リストの破壊的操作 - 日々ごちゃごちゃと考える 経由

(1) alistを破壊的にplistに変換する関数(nalist-to-plist)を書いて下さい。

(2) nplist-to-alistも作ってみて下さい。

まず自分がやったのは「リストの図を書く」こと。実際は紙の上で考えた。

;; 連想リスト:alist  '((foo . 1) (bar . 2))

   +-+    +-+
--&gt;|1|---&gt;|3|---&gt;nil
   +-+    +-+
    |      |
    V      V
   +-+    +-+
   |2|-&gt;1 |4|-&gt;2
   +-+</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1403287192388439792/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/05/g00000-lisp-x-2-lisper-cadr-1.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1403287192388439792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1403287192388439792'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/05/g00000-lisp-x-2-lisper-cadr-1.html' title='「１０分でコーディング x 2 〜リストの破壊的操作篇〜」を解いてみる'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8307274937746889813</id><published>2009-05-21T20:42:00.005+09:00</published><updated>2009-12-08T07:14:13.984+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>「なぜJAVAなのか」と聞かれたら</title><summary type='text'>細かい経緯は面倒なんで省略しますが、自分が大学内でLISPの話題をした際に
「なんでJAVAでLISPを動かす必要があるの？」
と質問されました。

特にこれはLISPに限った話ではなく、「なぜ他の言語をJAVAで実装する必要があるのか」
ということになりそうです。実際、JAVAで実装されたプログラミング言語は多々あります。


JRuby(ruby)
Rhino(javascript)
Jython(python)
Kawa(scheme)
ABCL(common-lisp)
JBasic(basic)


などなど...

で、「なぜJAVAなのか」と聞かれたら「便利だから」と答えたら身も蓋もないし…
もうちょっと無い脳みそ振り絞って「何が便利なのか」を考えてみると、


特定のプラットフォームに依存しなくなる
JAVAとLISPのコード間で双方アクセスが可能になる
総じてLISP</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8307274937746889813/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/05/java.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8307274937746889813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8307274937746889813'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/05/java.html' title='「なぜJAVAなのか」と聞かれたら'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-293625258754669239</id><published>2009-05-20T08:27:00.009+09:00</published><updated>2009-12-08T07:18:19.903+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='辞書'/><title type='text'>DICT:2628</title><summary type='text'>

ubuntuのgnome-dictionaryが簡易辞書として便利なので紹介。

ほとんどのリソースは外国語なので英英辞書くらいにはなるかなと思っていたら、日本語用の辞書サーバを提供しているところもあるので漢字の読みを調べることも出来そうです。

# もちろん細かく調べるときは手持ちの電子辞書か英辞郎に頼むんですが


GNOME 辞書 - Wikipedia

http://nihongobenkyo.org/index_ja.php



Web用のインターフェースもあるのでクライアントをインストールする前に試用してみるのも良いかもしれません。


DICT.ORG (英英など)
http://nihongobenkyo.org/lookup.php (和英・英和)


ちなみに日本語辞書用の辞書サーバなのに、そのサーバはフランスにあるみたい。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/293625258754669239/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/05/dict2628.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/293625258754669239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/293625258754669239'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/05/dict2628.html' title='DICT:2628'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WYfJEM2p5Uo/ShNBMSdc8wI/AAAAAAAAAKk/txLOWOHPODE/s72-c/gnome-dictionary.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-900106936935740062</id><published>2009-05-08T20:17:00.005+09:00</published><updated>2009-12-08T07:19:21.267+09:00</updated><title type='text'>今日の無題</title><summary type='text'>ブログの更新遅れも甚だしい今日この頃ですが 、ここにはあんまり技術的でな
いどーでもいいことを書くのは自分の性格上ためらってしまうのです。
(どちらかといえば口下手か、単に面倒臭がりなだけなんだと思いますがね)

さすがに Lisp ばかりに手をつけるわけにもいかないので、
とりあえず今はオブジェクト指向の理解のために Java の勉強中。

その他書きたいことがあったような気がしたけど、毎度の事で頭の中でとろけ
てしまったみたいなので、今日はこの辺で。
# だめだこの性格…

$ echo *** &gt; /dev/null
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/900106936935740062/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/05/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/900106936935740062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/900106936935740062'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/05/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6246010392431389890</id><published>2009-04-19T20:17:00.010+09:00</published><updated>2009-12-08T07:34:33.383+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GitHub'/><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>GitHubアカウントをとりました</title><summary type='text'>いくつかファイルを置いておいたので、よかったらどうぞ。

GitHubアカウント - github.com/kosh04


  xyzzy/
    
      etc/
        
          newLISP - newlisp-mode用キーワードファイル
        
      
      site-lisp/
        
          cl.l - xyzzyにないCL関数の移植のようなもの
          corman_search.l - CLのsearch関数移植
          cygwin.l - 主にmanコマンドを利用するため
          newlisp.l - newLISP編集用メジャーモード
          redef.l - xyzzy組み込み関数を再定義したもの
          util.l -</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6246010392431389890/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/github.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6246010392431389890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6246010392431389890'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/github.html' title='GitHubアカウントをとりました'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8297992810380130474</id><published>2009-04-19T15:40:00.005+09:00</published><updated>2009-04-20T01:37:06.206+09:00</updated><title type='text'>今日の無題</title><summary type='text'>cygwinのパッケージを検索するのに目grepはもうしたくないでござる。
emacsクローンのzileがいつの間にかGNUプロジェクトのパッケージに入っていることに気づいた。

GNU Zile - GNU Project - Free Software Foundation
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8297992810380130474/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8297992810380130474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8297992810380130474'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3163073642539803418</id><published>2009-04-16T03:14:00.002+09:00</published><updated>2009-04-16T03:22:13.430+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>参考にならないmanコマンドの文字化けについてのメモ</title><summary type='text'>
配属先研究室の端末Emacsのマニュアルコマンドの文字化けが気持ち悪い
ので、文字コードにはあまり知識がないけど、ない脳みそこねこね考えて
みる。あれはDebianだっかかな。

manプロセス側でなく、なるべくEmacs側で処理出来るようにするのが目的です。

---

うちのubuntu環境の文字コードは標準でUTF-8

(getenv "LANG")                         ; "ja_JP.UTF-8"
default-process-coding-system           ; (mule-utf-8 . mule-utf-8)
locale-coding-system                    ; utf-8


(1) manプロセスが処理した文字列をそのまま表示すると(つまりエスケー
    プシーケンス処理しない)と、こんな</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3163073642539803418/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/man.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3163073642539803418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3163073642539803418'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/man.html' title='参考にならないmanコマンドの文字化けについてのメモ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-544928371836595405</id><published>2009-04-07T02:35:00.006+09:00</published><updated>2009-12-08T07:46:48.758+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>ubuntu インストール</title><summary type='text'>windows と併用している linux を vine4.2 から ubuntu-ja-8.10 に変えてみた。


linux のインストールは何度かやったことがあるのでパーティション操作などは特に
  苦労なし。ubuntu(と言うより GUI)楽だなあ。
  以前に入れたもといえば
  opensuse,fedora,vine (LiveCD も含めれば slax,knoppix)
  …ディスクへのインストールは4度目か。苦労はしなくなったが上達した気がしないなあ。
インストールは windows とのデュアルブート。
  windows 領域に ubuntu をインストールすることも可能なのだが、 以前に knoppix 
  でそれを試した時は、あまり操作感がよろしくなかった印象だったので。マシンスペック
  が貧弱でなかったら仮想化なんかも出来そうなものだが...


</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/544928371836595405/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/ubuntu.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/544928371836595405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/544928371836595405'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/ubuntu.html' title='ubuntu インストール'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1998840141734225212</id><published>2009-04-06T23:04:00.005+09:00</published><updated>2009-12-08T07:47:30.867+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gmail'/><title type='text'>[Gmail]既読ボタンを有効にする</title><summary type='text'>Google Japan Blog: Gmail Labs が日本語に対応しました

らしい。ちょっと見てみると「既読ボタン」なんてものがあったので早速導入。
これは重宝しそうな予感。

Gmail -&gt; 設定 -&gt; Labs -&gt; 既読ボタンの項目を有効にする

あと「酒気帯びテスト」ってこれか。

Google、「真夜中のラブレター」を防ぐ「Mail Goggles」 - ITmedia News

実験サービス「Gmail Labs」が日本語化　送信取り消しや「酒気帯びテスト」も - ITmedia News</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1998840141734225212/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/gmail.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1998840141734225212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1998840141734225212'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/gmail.html' title='[Gmail]既読ボタンを有効にする'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3641128543966225694</id><published>2009-04-06T04:30:00.006+09:00</published><updated>2009-12-08T07:58:38.328+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs] シンボルから info を呼び出す</title><summary type='text'>
info-lookup-symbol について -- mshkhの日記
http://d.hatena.ne.jp/mshkh/20090404/1238843884


Infoの参照 -- 開発ツールとしての Emacs http://www.netlaputa.ne.jp/~kose/LinuxWorld/#11



指定したシンボルに対応した Info を表示するには `info-lookup-symbol'
を使えばいいのか。なるほど。

Elisp 用の Info は標準で入っているので、とりあえず C ライブラリのだけでも入れて
おくことにする。以下、その手順。

libc の info を持ってくる
http://www.gnu.org/software/libc/manual/ 
http://www.gnu.org/software/libc/manual/</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3641128543966225694/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/emacs-info.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3641128543966225694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3641128543966225694'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/emacs-info.html' title='[Emacs] シンボルから info を呼び出す'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2934637798390278377</id><published>2009-04-03T08:30:00.002+09:00</published><updated>2009-04-03T08:30:00.389+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><title type='text'>[LISP]マクロのエイリアス</title><summary type='text'>マクロ名の定義にも setf が使えるらしいことに気づいたのでメモ。
ついでに xyzzy だと macro-function に setf 出来ないので定義しておく。
たぶん間違ってるけど。
# xyzzy, CLISP-2.44 で確認

#+xyzzy (defsetf macro-function si:*fset)

(progn
  (setf (macro-function 'if-progn)
        (macro-function 'when))
  (list (if-progn t "てー")
        (if-progn nil "てー")))
;=&gt; ("てー" NIL)

(progn
  (setf (macro-function '&amp;&amp;)
        (macro-function 'and))
  (list (&amp;&amp; t "てー")
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2934637798390278377/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/04/lisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2934637798390278377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2934637798390278377'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/04/lisp.html' title='[LISP]マクロのエイリアス'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6148314981869582521</id><published>2009-03-27T08:30:00.003+09:00</published><updated>2009-12-08T07:59:39.324+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ニコニコ動画'/><title type='text'>今日のバカ</title><summary type='text'>なんというか、物凄くくだらない事に真剣になってしまったので
ここに断片だけ残して、後で振り返って一人で悶絶しようと思う。

# LISP と全く関係ないですよ。

---
ABABABAABABA
BAAABAAA↓→→A→
←←AA←BAA↓B↓
↑↑↑BBA

ABABABAABABA
→←AAAABABBABB↓B
↑BBBBAAAABBBA↑B
↓BBABB→←BBA

A

(global-set-key #\S-Right (lambda () (interactive) (insert "→")))
(global-set-key #\S-Left (lambda () (interactive) (insert "←")))
(global-set-key #\S-Up (lambda () (interactive) (insert "↑")))
(</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6148314981869582521/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_27.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6148314981869582521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6148314981869582521'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_27.html' title='今日のバカ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3004123435780783491</id><published>2009-03-24T08:30:00.006+09:00</published><updated>2009-12-08T08:01:16.198+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Elisp] font-lock の勉強中</title><summary type='text'>newLISP を Emacs から弄るなら、関数・シンボルなどのキーワードの色付けは
必須項目な訳で、しぶしぶ Google 先生と $EMACS/lisp 内のファイル群を頼り
に font-lock について調べています。

xyzzy ならキーワードファイルに単語を放り込んでハッシュで勝手に色分けして
くれるのが楽チンだったんだが…

それはよしとして、Elispの色付けといえばこれが便利。

Lisp 関数だけに色付け
http://www.bookshelf.jp/cgi-bin/goto.cgi?file=meadow&amp;node=font-lock-func

で、紹介されている Elisp のソースをよく見たら、関数定義などは内部で呼び
出している関数が一部違うだけで重複している部分が結構あることに最近気づき
ました。

「これはマクロの出番だ」と思い立って書き直</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3004123435780783491/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/elisp-font-lock.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3004123435780783491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3004123435780783491'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/elisp-font-lock.html' title='[Elisp] font-lock の勉強中'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-4429944102127483137</id><published>2009-03-22T22:57:00.001+09:00</published><updated>2009-12-08T08:03:16.136+09:00</updated><title type='text'>今日の無題</title><summary type='text'>何気なく Windows Update で新しいフォントを入れたら見事にやられた。

Windows XP および Windows Server 2003 向けJIS2004 対応 MS ゴシック &amp; MS 明朝フォントパッケージについて
http://www.microsoft.com/japan/windows/products/windowsvista/jp_font/jis04/default.mspx

ぼんやりしていても気づくほどフォントに違和感がありすぎる…
しかも主に騒がれていたのは2007年。2年前の問題に反応する自分も自分だなあ。
ということでアンインストールさせていただきます</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/4429944102127483137/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_22.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4429944102127483137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4429944102127483137'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_22.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-444098380696806002</id><published>2009-03-18T21:41:00.003+09:00</published><updated>2009-12-08T08:14:08.945+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haloscan'/><title type='text'>今日の無題</title><summary type='text'>haloscanどうした？

HaloScan.comのページが文字化けするなと思って HTML ソースを眺めていたら、ヘッダ部分が

&lt;meta equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;


となっているんだが、UTF-8 が使えなくなったのだろうか。
以前は設定に "Character Encoding" なる項目があったはずなのにいつの間にかそれもなくなってるし。

最近買った本


入門UNIXシェルプログラミング第2版 --- Bruce Blinn / 山下哲典 (訳)
就活のバカヤロー --- 石渡嶺司 / 大沢仁
ふたつのスピカ (12-14) --- 柳沼行</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/444098380696806002/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_18.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/444098380696806002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/444098380696806002'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_18.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-822611989961015364</id><published>2009-03-11T03:12:00.001+09:00</published><updated>2009-12-08T08:16:04.570+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>本家にばれてた</title><summary type='text'>以前書いたEmacs用のnewlisp-modeが本家様に気づかれたようです。さすがマイナー言語。

http://www.newlisp.org/code/newlisp.el

というかこれならシンボル補完とか色付けとかもっと頑張ればよかった。
最近newLISP弄るのはもっぱらxyzzyからだしなあ。

SLIME+newLISPを完成させるか。。。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/822611989961015364/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_10.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/822611989961015364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/822611989961015364'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post_10.html' title='本家にばれてた'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1694574320848368047</id><published>2009-03-11T01:57:00.007+09:00</published><updated>2009-12-08T08:21:57.853+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='勉強会'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>Slimy hackathon #1 に参加してきた</title><summary type='text'>g000001さん発案のSlimy Hackathonにちょこっとだけ参加してきました。
ハッカソンとはいえ連絡手段はLingrとSkypeだったので、ほとんど部屋に篭りきり生活でしたが(笑)

自分が行おうとしたタスクは2つ。

#### SLIME⇔Elispのコマンド対応

Common LispもEmacs Lispも元はMACLISPが祖先らしいから、CLの便利関数はきっとelispにもあるに違いないと考えたが始まり。CLのといいますか、SLIMEのコマンドですが。

で、出来たのがこれ → http://gist.github.com/75589

もう少しSLIMEに達者になっていればslime-who-callsとかslime-list-callersに対応するelispも探せたんじゃないかなと反省してます。とりあえずelisp-macroexpand-1は作ってみて</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1694574320848368047/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/slimy-hackathon-1.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1694574320848368047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1694574320848368047'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/slimy-hackathon-1.html' title='Slimy hackathon #1 に参加してきた'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8086902313783733948</id><published>2009-03-05T23:35:00.014+09:00</published><updated>2011-02-22T13:22:55.938+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>ブログのまとめエントリ</title><summary type='text'>これまで作ったもの、調べたもの。の中からそこそこ有益そうなものリスト。
ブログに書いたコードの断片はGitHubの方で纏めているかもです。


  
    GitHubアカウントをとりました
  

  xyzzy 関連
    
      
 関数の引数を返す (arglist)
      

      
 外部コマンドの結果を文字列として出力する (command-substitution)
      

      
 xyzzyを再起動させる (reboot-xyzzy)
      

      
 辞書引き関連 (edict)
      

      
 括弧の対応を調べる (check-parens)
      

      
 newLISP メジャーモード (newlisp-mode)
      

      
 その他べんりすぷ
      
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8086902313783733948/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post_26.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8086902313783733948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8086902313783733948'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post_26.html' title='ブログのまとめエントリ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6789584757599507299</id><published>2009-03-03T08:30:00.005+09:00</published><updated>2009-03-03T22:50:29.901+09:00</updated><title type='text'>今日の無題</title><summary type='text'>OnLisp邦訳のwebページが3月末で消滅するので注意しましょう。
(訳者の野田さんの大学院修了のため)
ミラーあります→http://www.komaba.utmc.or.jp/~flatline/
長いコードを貼り付けるのにpaste.lisp.orgはちょっと不便なので、何か別のアカウントをとろうかと考え中。
とりあえず候補は
gist.github
CodeRepos</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6789584757599507299/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6789584757599507299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6789584757599507299'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-4260011587451836571</id><published>2009-03-03T02:45:00.007+09:00</published><updated>2009-12-08T08:27:39.358+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='勉強会'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='ニコニコ動画'/><title type='text'>読書感想文#2</title><summary type='text'>「Shibuya.lisp テクニカルトーク #2」が無事に開催されたようです。

自分はニコニコ動画から見させてもらいました。
→http://www.nicovideo.jp/mylist/11305224

個人的には処理系/性能について語るのもいいけど、それから何か作ってみた系
の発表が面白かったかな。やはり動くものは見ていて楽しい。

特に印象に残ったTOP3


okuoku氏: SchemeでBluetoothスタックを書く
Scheme(mosh)で外部プロトコルの処理をしようとする試み。
Wiiリモコンと通信するデモに思わず感嘆の声。
FFI(Foreign Function Interface)とは違うんだろう、たぶん。


和田英一氏: 私がLispでプログラムを書く理由
楽しいから←結論
本当に楽しそうに話すなあ。
ダメ学生の自分はPostscriptプログラム</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/4260011587451836571/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/03/2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4260011587451836571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4260011587451836571'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/03/2.html' title='読書感想文#2'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2031171954230436047</id><published>2009-02-27T12:19:00.015+09:00</published><updated>2011-09-13T12:26:15.207+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISPの特徴、軽くまとめ</title><summary type='text'>去年から少しずつ弄っていたnewLISPですが、
人様に見せるようなものは出来なかったのでとりあえず使ってみて分かったことだけでも書いておきます。
これからnewLISPを使ってみようかと思っている人の参考にでもなれば、と。


リンク

newLISP - Wikipedia, the free encyclopedia
newLISP - Home - 公式ページ
newLISPの哲学と歴史
newLISP Fan Club [RSS] - フォーラム
Twitter @newlisp


マニュアル・リファレンス

newLISP Users Manual and Reference - 関数リファレンス、マニュアル
newLISP - An Interactive Tutorial - newLISP入門
newLISP Code Patterns
Introduction to</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2031171954230436047/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2031171954230436047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2031171954230436047'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/newlisp.html' title='newLISPの特徴、軽くまとめ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6203520448036716814</id><published>2009-02-25T08:30:00.003+09:00</published><updated>2009-12-08T08:29:28.195+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><title type='text'>[xyzzy]check-parens</title><summary type='text'>(defun check-parens ()
  "バッファの括弧の釣り合いを調べる."
  (interactive)
  (handler-case
      (let ((home (point)))
        (goto-char (point-min))
        (while (forward-list))
        (goto-char home)
        (message "だいたいあってる")
        t)
    (simple-error (c)
      (message "このへん間違ってるかも")
      (ding)
      nil)))
(compile 'check-parens)

使い方
lisp-mode、lisp-interaction-modeで
M-x: check-parens

</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6203520448036716814/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzycheck-parens.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6203520448036716814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6203520448036716814'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzycheck-parens.html' title='[xyzzy]check-parens'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-4564809893123565695</id><published>2009-02-24T08:30:00.002+09:00</published><updated>2009-12-08T08:31:50.713+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs]tabba.elのせいだったのか</title><summary type='text'>tabbar-modeを使うと基本的に「M-x b」等は通常操作と同じ一つ前に開いたバッファにもどります。ただ、kill-bufferしたときだけグループ化された前のファイルに戻ります。

Elisp/タブでバッファを切り替える

どうりでkill-bufferしたとき元のバッファに戻らないわけだ。。
パッチも紹介されているが、どうやらフック関数のコメントアウトだけなのでelispで修正できる範囲のよう。

(remove-hook 'kill-buffer-hook 'tabbar-buffer-kill-buffer-hook)


直った直った。すっきりした。

ちなみにtabbar.elの設定

(require 'tabbar)
(tabbar-mode (if window-system 1 -1))
(remove-hook 'kill-buffer-hook '</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/4564809893123565695/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/emacstabbael.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4564809893123565695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4564809893123565695'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/emacstabbael.html' title='[Emacs]tabba.elのせいだったのか'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1443650467312603476</id><published>2009-02-22T13:15:00.002+09:00</published><updated>2009-02-24T02:06:06.756+09:00</updated><title type='text'>今日の無題</title><summary type='text'>ブログトップが真っ白なんですが…
---
この記事更新したら直った。なんだったんだろう？</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1443650467312603476/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post_22.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1443650467312603476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1443650467312603476'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post_22.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2361887347855303814</id><published>2009-02-22T05:31:00.010+09:00</published><updated>2011-02-20T05:59:28.665+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><title type='text'>xyzzyのべんりすぷ(汎用編)</title><summary type='text'>もともとこのブログを作った趣旨が「xyzzyでこんな関数作ったよ、見てね」
のつもりだったのに、最近まですっかり忘れていたような気がする今日この頃です。

Xyzzy Wikiに投稿するのもありなんですが、あまりに雑多すぎて分類に困りそうなのでブログの方にしました。（気が小さいなんて言えないです…）

普段使っている関数群なので、そこそこ枯れていると思います。
→http://paste.lisp.org/display/75922

以下軽く解説


keyboard-quit

ほとんどquitと同じですが、マークがクリアされます。
kill-region(C-w)のうっかりタイプを防ぐ効果があります。（それでもたまに誤爆しますが）
リージョンを反転表示するrv-regionとの併用がおすすめ。
;; 載せるの忘れてた…
(global-set-key #\C-g '</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2361887347855303814/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2361887347855303814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2361887347855303814'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzy.html' title='xyzzyのべんりすぷ(汎用編)'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8115571527537076275</id><published>2009-02-21T22:01:00.003+09:00</published><updated>2009-02-21T22:07:47.484+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>今日の無題</title><summary type='text'>地方県民はUSTREAMで我慢すればいいや、と思っていた結果がこれですか。。。ぐはぁ（泣）

今回の発表のUSTREAMでの中継/動画アップロードにつきまして

前回のTT#1では、発表者全員より撮影許可を頂けましたので、内容全編を中継/アップロード致しましたが、今回は、すべての発表者の方に撮影承諾を頂けておりませんので、一部内容の中継/アップロードができません。

Shibuya.lisp TT#2 ライトニングトークの発表内容決定!</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8115571527537076275/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post_21.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8115571527537076275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8115571527537076275'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post_21.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-124115998334330625</id><published>2009-02-17T11:54:00.006+09:00</published><updated>2009-12-08T08:36:10.130+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><title type='text'>progvの途中</title><summary type='text'>(let ((buffer-read-only nil))
  (declare (special buffer-read-only))
  (hogehoge))

Emacsのような動的束縛を使うなら上のように書くのがたぶん一般的なんだろうけど、動的束縛といえばprogvなんてものがあることに気づいたので以前自分で書いたものを引っ張ってきてみた。

(defmacro progv (symbols values &amp;body body)
  (let ((label (gensym "progv-form"))
        (var (eval symbols))
        (val (eval values)))
    `(labels ((,label () ,@body))
       ((lambda (,@var)
          (declare (</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/124115998334330625/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/progv.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/124115998334330625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/124115998334330625'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/progv.html' title='progvの途中'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-7989703558264510895</id><published>2009-02-14T08:30:00.011+09:00</published><updated>2009-12-08T08:42:03.987+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>今日の無題</title><summary type='text'>あの時の話、聞かせてください！：第1回 電波少年の“なすび”に会いたい！ - R25.jp

なんと懐かしい…見ていたのは小・中学時代だったかな。

当たった懸賞の品に一喜一憂する姿とか、「当選の舞」とか、ぼさぼさ頭にチョ
ンマゲ姿とか、ポスターか何かを見て下部のなすマークが大きくなったり(!?)と
か、とにかく見ていて面白かった。日曜日の深夜が楽しみだったよ。

現在のインタビュー時の写真を見て「変わんないなー」とにんまり。
当時の電波少年のホームページ(あったんだ)を読みふけって、懐かしさのあまり
もう一度にんまりしてしまった。

なすびさんも元気そうで何よりですね。
この人のポジティブ思考は見習うべきかも。

電波少年的懸賞生活 - 日本テレビ</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/7989703558264510895/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/7989703558264510895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/7989703558264510895'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/blog-post.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3914065122806878084</id><published>2009-02-14T08:30:00.010+09:00</published><updated>2009-12-08T08:40:44.181+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><title type='text'>[xyzzy]autoloadされたモジュールの一覧</title><summary type='text'>xyzzyではロードされたモジュールの一覧はmodulesで参照できるわけですが、
autoload関数で指定された関数は呼び出されるまでロードされません。
そういうモジュール一覧を参照出来ないかと思ってこんなものを作りました。
利用する箇所が見当たらないので、ネタということで。

http://paste.lisp.org/display/75440

まあ、autoload-function-pを弄っただけなんですが。
find-all-symbolsを使っているのでコンパイルしないと重いです。

ところで"hh-call"って何なんでしょう？$XYZZY/lispディレクトリ内には見つか
らないし、検索してみても答えは出ず。。。HTML-Helpをcallするとか？</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3914065122806878084/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzyautoload.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3914065122806878084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3914065122806878084'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzyautoload.html' title='[xyzzy]autoloadされたモジュールの一覧'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2362885008819131150</id><published>2009-02-10T03:43:00.010+09:00</published><updated>2009-12-08T08:45:39.877+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><title type='text'>[xyzzy]HexlのPatch</title><summary type='text'>勉強不足以上に実践不足が否めないと思う今日この頃。
テストが終わった(笑)のでちまちまとアウトプットをしていこうと思います。

まあ、たいしたものではないですが。

Hexl@xyzzyのpatch

NANRIさん配布のHexlに対するpatchです。今更な気がするのでひっそりと。
→http://xyzzy.s53.xrea.com/wiki/index.php?patch%2Fpatch%2Fhexl.l
先生、"patch/patch/hexl.l"ってなんですか…

;; Hexlにあると便利そうなおまけ
(defun hexl-coloring-hook ()
  "hexl-modeの表示に色を付ける."
  (make-local-variable 'regexp-keyword-list)
  (setq regexp-keyword-list (</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2362885008819131150/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzyhexlpatch.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2362885008819131150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2362885008819131150'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/02/xyzzyhexlpatch.html' title='[xyzzy]HexlのPatch'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2400343479300762847</id><published>2009-01-28T23:09:00.006+09:00</published><updated>2009-12-08T08:47:12.316+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><title type='text'>[CL] 0から1000までに含まれる0をカウントする</title><summary type='text'>http://d.hatena.ne.jp/rubikitch/20081120 より

(count #\0 (format nil "~{~D~}" (loop :for i :from 0 :to 1000 :collect i)))
;=&gt; 193

Commom Lisp は文字列を弄ることが出来るから面白い。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2400343479300762847/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/01/cl-010000.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2400343479300762847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2400343479300762847'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/01/cl-010000.html' title='[CL] 0から1000までに含まれる0をカウントする'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1275163775818059539</id><published>2009-01-28T22:39:00.010+09:00</published><updated>2009-01-31T14:22:23.250+09:00</updated><title type='text'>今日の無題</title><summary type='text'>ああ…期末試験は近いよ

Googleが6つのサービスを終了
Googleノートブックは地味に使っていたから残念。
[emacs]Emacs初心者向け記事へのリンク集
でもやはり、Emacsの使いにくさを飛び越えて、楽しくなる人はそう簡単に増えないんだろうなとネガティブな予測。
ここはひとつ、練習台としてxyzzyを使ってみませんか。
C with lambda(仮) (オレンジニュース経由)
C言語にλ式の構文を組み込んだような言語。これはマクロといえばいいのか、それともコンパイラコンパイラ？これは今後に期待。
---
リンク先をsourceforgeに修正 (2009-01-31)
Lingrに新たにlisp_learner_groupなる部屋が出来てる！
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1275163775818059539/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/01/blog-post_28.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1275163775818059539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1275163775818059539'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/01/blog-post_28.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5290392460244408553</id><published>2009-01-18T01:44:00.007+09:00</published><updated>2009-12-08T08:48:38.745+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='勉強会'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>[PCL]第29回CL勉強会セルフ反省会[CADR]</title><summary type='text'>反省会というより、単なるログです。

PCL第4章

特に疑問はないので省略
Lispマシンエミュレータの話題

第29回CL勉強会CADR Lispマシンで遊んでみよう篇の準備物
からエミュレータ本体とディスクイメージを落とす
今回はchaosサーバは使わない
エミュレータは実行形式で配布されているのでコンパイルの必要なし(ソース同梱)
Winバイナリもあるけど、色々不便らしいので今回はLinux版を使う
以下エミュレータ起動までの手順
[~/lisp/]$ ls
chaos-cadr.tar.gz
disk.img.tar.gz
usim.tar.gz
[~/lisp/]$ tar fxvz usim.tar.gz
[~/lisp/]$ tar fxvz disk.img.tar
[~/lisp/]$ cd usim
[~/lisp/usim]$ ln -s ../disk.img </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5290392460244408553/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/01/pcl29clcadr.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5290392460244408553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5290392460244408553'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/01/pcl29clcadr.html' title='[PCL]第29回CL勉強会セルフ反省会[CADR]'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_WYfJEM2p5Uo/SXILOttphmI/AAAAAAAAAJU/tzKKFK7olcA/s72-c/crock.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5482671678940151522</id><published>2009-01-06T00:38:00.005+09:00</published><updated>2009-12-08T08:49:48.471+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GNU'/><title type='text'>丑年</title><summary type='text'>

2009年の干支は己丑(つちのとうし)。

ウシといえばGNUという発想は安直すぎるだろうか…

今年はもう少し自己主張できるようになりたいです。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5482671678940151522/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2009/01/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5482671678940151522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5482671678940151522'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2009/01/blog-post.html' title='丑年'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-255783543215096825</id><published>2008-12-28T12:23:00.000+09:00</published><updated>2008-12-28T12:24:30.690+09:00</updated><title type='text'>今日の無題</title><summary type='text'>そうだ帰省しよう。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/255783543215096825/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_28.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/255783543215096825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/255783543215096825'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_28.html' title='今日の無題'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8047511771457841166</id><published>2008-12-26T08:30:00.002+09:00</published><updated>2009-12-22T06:45:43.795+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='メモ'/><title type='text'>'fooと#'fooの違いは環境の違い</title><summary type='text'>QUOTEとFUNCTIONを使い分ける:もう少し詳しい説明 -- 逆引きCommonLisp

をぼんやり見ていて、そういえば FUNCTION と COERCE では環境が違うってうちの CLISP が言ってたのを思い出した。

(funcall '(lambda (x) (1+ x)) 1)
;; =&gt; Error
;; *** - FUNCALL: argument (LAMBDA (X) (1+ X)) is not a function.
;;       To get a function in the current environment, write (FUNCTION ...).
;;       To get a function in the global environment, write (COERCE '... 'FUNCTION).

CLHS </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8047511771457841166/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/foofoo.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8047511771457841166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8047511771457841166'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/foofoo.html' title='&apos;fooと#&apos;fooの違いは環境の違い'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5503884701073247073</id><published>2008-12-19T01:23:00.005+09:00</published><updated>2009-12-22T06:43:20.500+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>あと一週間</title><summary type='text'>

万能プレーヤーである VLC media player の起動アイコンがクリスマス仕様になっている事に気づいた。

Google のトップページが時期によって模様替えされるのは何度か見たけれど、こういう遊びをするソフトウェアって少ないんじゃないかな。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5503884701073247073/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_19.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5503884701073247073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5503884701073247073'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_19.html' title='あと一週間'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_WYfJEM2p5Uo/SUp5QNURNVI/AAAAAAAAAF4/BKC1f7wW0SE/s72-c/vlc-Xmas-icon.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2098651928441110383</id><published>2008-12-18T07:52:00.008+09:00</published><updated>2009-12-22T06:42:01.041+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>おおえまくすよ マクロをつかわないとは なさけない</title><summary type='text'>(require 'cl) は悪なのか？の続き。

気が向いたので軽く調べてみた。

---
GNU Emacs のマニュアルには以下のような注意書きがある。

Common Lisp Extensions Overview

Please note: the CL functions are not standard parts of the Emacs Lisp name space, so it is legitimate for users to define them with other, conflicting meanings.  To avoid conflicting with those user activities, we have a policy that packages installed in Emacs must not load CL at run</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2098651928441110383/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_18.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2098651928441110383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2098651928441110383'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_18.html' title='おおえまくすよ マクロをつかわないとは なさけない'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-4810844341310071683</id><published>2008-12-15T20:20:00.010+09:00</published><updated>2009-12-22T06:38:17.259+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[Emacs] newLISP 環境を構築してみたい</title><summary type='text'>[追記@2009-04-20T03:29:05]
もう少し拡張したものを置いておきます。
http://github.com/kosh04/newlisp-files/tree/master



Emacs から newLISP のプロセスを操作する関数群を書いたのでちょっと醸してみます。
もともと xyzzylisp 用に作ったんだけど、やっぱり資産がある elisp の方が短くできてしまったので。

使い方:

以下の URL のコードを newlisp.el で保存して eval-buffer。
http://paste.lisp.org/display/72178

必要に応じて、以下の変数を書き換え。

newlisp バイナリのパス名: *newlisp-command*
プロセス間文字コード: *newlisp-process-coding-system*

</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/4810844341310071683/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/emacs-newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4810844341310071683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4810844341310071683'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/emacs-newlisp.html' title='[Emacs] newLISP 環境を構築してみたい'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6635742409417523457</id><published>2008-12-15T11:26:00.002+09:00</published><updated>2009-12-22T06:31:30.764+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>(require 'cl) は悪なのか？</title><summary type='text'>自分の中で Emacs Lisp の CL パッケージの評判があまりよろしくない印象なんだが、はっきりした理由を聞いたことがないなあ。

気が向いたらまとめのページが無いか詮索してみよう。

→詮索した。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6635742409417523457/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/require-cl.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6635742409417523457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6635742409417523457'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/require-cl.html' title='(require &apos;cl) は悪なのか？'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6159979796702332904</id><published>2008-12-15T08:30:00.008+09:00</published><updated>2009-12-22T06:30:55.233+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>elisp にもラベル記法があったのか</title><summary type='text'>(let ((print-circle t)
      (lst '(7 8 3 9 4 0 1 6 5 2)))
  (princ (list (sort lst #'&lt;) lst))
  (terpri))
;-&gt; ((0 1 2 3 4 5 6 . #1=(7 8 9)) #1#)
;=&gt; t

((lambda (x)
   ((lambda (y1)
      ((lambda (&amp;optional y2)
         ((lambda (z)
            (list x y1 y2 z))
          (car (cdr #1=(cdr #2='(1 (2) 3))))))
       (car (cdr #3=(car #1#)))))
    (car #3#)))
 (car #2#))
;=&gt; (1 2 nil 3)

;; 上のコード</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6159979796702332904/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/elisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6159979796702332904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6159979796702332904'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/elisp.html' title='elisp にもラベル記法があったのか'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8215669216191641331</id><published>2008-12-12T22:15:00.010+09:00</published><updated>2009-12-22T06:29:08.466+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISP v.10.0 インストールメモ</title><summary type='text'>newLISP v.10.0 がリリースされていました

newLISP v.10.0 Release Notes

インストーラも用意されていますが、せっかくなので野良ビルドしてみようかなと
以下手順を列挙

Makefile の typo 修正:


41c41
&lt;  @echo "  make linux           # newlisp for LINUX
---
&gt;  @echo "  make linux           # newlisp for LINUX"
47,48c47,48
&lt;  @echi "  make debian          # newlisp for UBUNTU debian with readline support"
&lt;  @echi "  make debian_utf8     # newlisp for UBUNTU </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8215669216191641331/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/newlisp-v100.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8215669216191641331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8215669216191641331'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/newlisp-v100.html' title='newLISP v.10.0 インストールメモ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1908358470139529270</id><published>2008-12-07T23:38:00.008+09:00</published><updated>2009-12-22T06:24:55.353+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><category scheme='http://www.blogger.com/atom/ns#' term='Common Lisp'/><title type='text'>あったら便利だと思う</title><summary type='text'>パス名も setf で変更できたらいいのに

(setf (pathname-type "/home/kosh/foo.l") "lsp")
;=&gt; "/home/kosh/foo.lsp"



パッと思いついたもの。
これだと置換する文字数同じでないとダメだし、ファイル名とディレクトリ名が被ると面倒だなあ。やはり make-pathname だろうか

(and (setf (subseq #1="C:/home/xyzzy/xyzzy.exe"
                   (search (pathname-type #1#) #1#))
           "mp3")
     #1#)
;=&gt; "C:/home/xyzzy/xyzzy.mp3"



[追記] 2008-12-13T20:16:43+09:00

初めから make-pathname 使おうと思</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1908358470139529270/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_07.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1908358470139529270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1908358470139529270'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post_07.html' title='あったら便利だと思う'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2739726369554828324</id><published>2008-12-06T01:34:00.005+09:00</published><updated>2009-12-22T06:23:24.744+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='メモ'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>メモ化のメモ</title><summary type='text'>再帰関数を効率の良いコードに直せ、と言われてパッと思い浮かぶのが
ループに還元
末尾再帰
これくらいしかないと思ってた。メモ化なんて選択肢もあるのね。


関数の値のメモワイズ -- On Lisp (邦訳)



計算コストの高い関数を同じ引数で複数回呼び出したいときがあるなら，値をメモワイズ(memoize)しておくのが得だ．以前の返り値をみな保管しておき，関数が呼び出される度にまず保管場所を見て，値が既に得られていないか調べる．


memoize 関数のコードはここでは省くとして、ハッシュをキャッシュに使えるのかと知ってひとつ賢くなった気分。

;; ベタベタな2重再帰フィボナッチ定義
(setf (symbol-function 'fibo)
      (memoize #'(lambda (n)
                   (cond ((= n 0) 0)
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2739726369554828324/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2739726369554828324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2739726369554828324'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/12/blog-post.html' title='メモ化のメモ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8564816919489316113</id><published>2008-11-30T18:19:00.008+09:00</published><updated>2009-12-22T06:19:59.300+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='ネタ'/><title type='text'>xyzzy を再起動させる</title><summary type='text'>新しいネタを提供する気力がないので手元にある既存のものを。

(defun reboot-xyzzy (&amp;optional cleanup)
  "xyzzyを再起動する."
  (interactive "P")
  ;; ついでに初期化する
  (when cleanup
    (delete-file (si:dump-image-path) :if-does-not-exist :skip)
    (let ((siteinit (find-load-path "siteinit")))
      (and siteinit
           (string-match "\\.lc$" siteinit)
           (delete-file siteinit))))
  (cond ((modified-buffer-exist-p)
         (</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8564816919489316113/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/xyzzy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8564816919489316113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8564816919489316113'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/xyzzy.html' title='xyzzy を再起動させる'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-124032811018850686</id><published>2008-11-28T23:34:00.002+09:00</published><updated>2009-12-22T06:16:43.782+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>ネット断食</title><summary type='text'>この間の日曜日未明からルータの調子がおかしかったのかネットワークから遮断された生活を送っていました。

今日の夕方からようやく回復。しかし原因は不明。

まあ、あれだ。
ネットがなくても生きていけることを身を以て知ることができただけ良しとしようか。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/124032811018850686/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_28.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/124032811018850686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/124032811018850686'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_28.html' title='ネット断食'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-4904757255898896141</id><published>2008-11-22T19:02:00.005+09:00</published><updated>2009-12-22T06:16:05.171+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='勉強会'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>CL のライブラリを眺める [Metatilities]</title><summary type='text'>今日行われる CL勉強会@Lingr の予習を少し。


11/22 第24回 慢性的CL勉強会@Lingr8時だョ!全員集合告知


CL勉強部屋@Lingr




今回読むライブラリ: Metatilities




生 REPL くらいしか触ったことがないから CL のライブラリを見るのは今回が初めて。
そんな CLer 初心者なのでパッと見た感じの感想だけ書いておきます。
勉強会はおとなしく ROM かな。

Metatilities はユーティリティライブラリ
CL のライブラリを読み込ませる方法が分からない
インストールは ASDF
 Linux のパッケージシステム(RPM とか YaST とか)、xyzzy の NetInstaller みたいなもの？
かろうじて分かったもの
 anaphoric.lisp (OnLisp からアナフォリックマクロ)
 </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/4904757255898896141/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/cl-metatilities.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4904757255898896141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/4904757255898896141'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/cl-metatilities.html' title='CL のライブラリを眺める [Metatilities]'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8767373582044441576</id><published>2008-11-20T01:21:00.005+09:00</published><updated>2009-12-22T06:15:01.155+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ぼやき'/><title type='text'>アロンアルファ棒</title><summary type='text'>


半年前に買ったのを使おうとした結果がこれだよ。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8767373582044441576/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_20.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8767373582044441576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8767373582044441576'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_20.html' title='アロンアルファ棒'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_WYfJEM2p5Uo/SSQ9BXK4_uI/AAAAAAAAAFg/5qOexktu5Cc/s72-c/%3D%3FISO-2022-JP%3FB%3FGyRCJSIlbSVzJSIlayVVJSFLQBsoQi5qcGc%3D%3F%3D-785089' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2817926831093614965</id><published>2008-11-18T00:51:00.016+09:00</published><updated>2009-12-22T06:14:19.993+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>[xyzzy] newLISP 環境を構築してみたい</title><summary type='text'>※一応 Emacs 版もあります。

newLISP に付属のエディタが使いにくい。

やっぱり使い慣れたエディタがいいよね、ということで xyzzy から newLISP シェル (REPL) を操作する簡単な xyzzylisp を書いてみた。

(defvar *newlisp-exe*
  (merge-pathnames "newlisp.exe" (si:getenv "NEWLISPDIR")))

(defun run-newlisp ()
  (interactive)
  (let ((*eshell* (format nil "~A -C -w ~A"
                          *newlisp-exe* (default-directory)))
        (*shell-mode-hook*
         (list #'(</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2817926831093614965/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/xyzzy-newlisp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2817926831093614965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2817926831093614965'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/xyzzy-newlisp.html' title='[xyzzy] newLISP 環境を構築してみたい'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-881838752356310842</id><published>2008-11-18T00:24:00.010+09:00</published><updated>2009-12-22T06:10:27.524+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><title type='text'>トラックバックはじめました</title><summary type='text'>HaloScan のサービスを使わせてもらうことに。
HaloScan.com - Weblog Commenting, Ratings and Trackback

参考にした記事
GoogleBlog(Blogger)におけるTrackBackの方法

気をつけるべき点は、 Sineup した後で


Members-&gt;Settings
---
Time Zone を "(GMT + 9:00) Osaka, Sapporo, Seoul, Tokyo"
Character Encoding を "UTF-8"


の設定を忘れないことくらいか。まだ使ってないから知らないけど。

さっそく参考にさせてもらった記事の方にトラックバックpingを送りつけようと思ったらトラックバックURLが見つからない罠。



2008-11-18T22:27:12+09:00 [追記]
ブログの</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/881838752356310842/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_2183.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/881838752356310842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/881838752356310842'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_2183.html' title='トラックバックはじめました'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_WYfJEM2p5Uo/SSQlMkwQE-I/AAAAAAAAAFY/HttP0U8cTpk/s72-c/%E3%83%88%E3%83%A9%E3%83%90.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-9182548421140576849</id><published>2008-11-18T00:04:00.011+09:00</published><updated>2009-12-22T06:07:11.315+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='ぼやき'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>ないないない</title><summary type='text'>newLISP なる LISP 処理系に手を出してみた。
付属のデモを眺めてみた感じ、LISP というよりもスクリプト言語という印象。

しかし困った点がいくつか...



Common Lisp との挙動の違い

以前の記事で書いた通り。これは慣れるしかない、か。

日本語のドキュメントが少ない
検索で見つかる日本語の記事が少ないのです。
ただでさえ少ない(と思われる)LISP人口で、newLISP を使う日本人がどれだけいるのか。
自分が newLISP を知るきっかけになった方の記事はまだ続いてるみたい。参考にさせてもらってます。

サンプルコードが少ない
日本語ドキュメント以上にこれは正直キツイ。
インストールディレクトリにもサンプルはいくつかあるのだが、どうしてだろう、コードがすごく見づらい。
全部タブインデントとか、束縛していない変数に代入とか。
開発者の中に Emacs </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/9182548421140576849/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_18.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/9182548421140576849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/9182548421140576849'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post_18.html' title='ないないない'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-8710603617252123944</id><published>2008-11-14T08:30:00.001+09:00</published><updated>2009-12-22T06:05:36.736+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ぼやき'/><category scheme='http://www.blogger.com/atom/ns#' term='ニコニコ動画'/><title type='text'>なにこれ・・・</title><summary type='text'>

ニコニコ動画にアップロードされている動画を音声ファイル(mp3)に変換するWebサービス「nicomimi」が、えらく混雑している。キャプチャは昨日の 22:30 くらいの。

同じサービスを運営しているこっちが現在メンテナンス中(08/11/13 2:00 ～ 08/11/14 17:00)ということもあるのだろうが、ユーザも少しは自重しろと言いたい。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/8710603617252123944/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8710603617252123944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/8710603617252123944'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/blog-post.html' title='なにこれ・・・'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WYfJEM2p5Uo/SRx3jA6IpOI/AAAAAAAAAFQ/RiAKNRpkS_s/s72-c/nicomimi_busy.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2619042607188851334</id><published>2008-11-11T07:49:00.015+09:00</published><updated>2011-02-21T05:31:00.333+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='newLISP'/><title type='text'>newLISP と CL/Scheme の比較</title><summary type='text'>意訳、省略を含むので参考程度に眺めることを推奨します。

ところで newLISP ってなに？



Comparison to Common Lisp and Scheme

このページでは newLISP と他の標準な Common Lisp, Scheme とのいくつかの違いを明らかにする。newLISP 特有のアプローチを知りたいなら About を読んで下さい。


CL と異なり、newLISP と Scheme は式のオペレータ部分を(引数に適用する前に)評価する。

ラムダ式は自身を評価する。それらはリストの副タイプであり、他のリスト同様に扱えるファーストクラス・データオブジェクトである。

newLISP ではラムダ式の自由変数の束縛はラムダ式の適用時にのみ行われる。

newLISP のラムダ式は関数定義の後いつでも処理できる。
(last (lambda (x) (</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2619042607188851334/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/newlisp-clscheme.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2619042607188851334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2619042607188851334'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/newlisp-clscheme.html' title='newLISP と CL/Scheme の比較'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2694902668822805843</id><published>2008-11-03T16:42:00.010+09:00</published><updated>2009-12-22T04:09:31.182+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='ぼやき'/><title type='text'>CLISP on Cygwin が使えない</title><summary type='text'>半年くらい前からだろうか、cygwin にインストールした clisp が起動と同時にエラーになる症状に陥った。


$ clisp
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8

*** - Internal error: statement in file
       "/usr/src/clisp/clisp-2.46-1/src/clisp-2.46/src/stream.d"
      , line 5658 has been reached!!
      Please see &lt;http://clisp.cons.org/impnotes/faq.html#</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2694902668822805843/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/clisp-on-cygwin.html#comment-form' title='3 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2694902668822805843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2694902668822805843'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/clisp-on-cygwin.html' title='CLISP on Cygwin が使えない'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-6574638779076790723</id><published>2008-11-02T08:40:00.004+09:00</published><updated>2009-12-22T04:08:36.750+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>[xyzzy] EDICT とべんりすぷ</title><summary type='text'>なんとなく xyzzy の辞書ファイルを更新しようとしたらちょっと驚いた。
なんでかというと、その辞書ファイルの元となる EDICT ファイルが現在も更新されていたから。

xyzzy で辞書を使う方法は XyzzyWiki か $XYZZY/etc/README.gendic を参照のこと。
2008-11-02 現在、 Wiki の edict へのリンクは切れてます。
編集したいけどページが凍結されている…

辞書ファイル配布元:
The Monash Nihongo ftp Archive
http://ftp.monash.edu.au/pub/nihongo/00INDEX.html
トップページから "edict.gz" を検索すれば見つかるはず。大分上の辺り。

で、少し古くても構わないのならば同じ辞書ファイルは sdic (Emacs 用辞書引きメジャーモード) の作者</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/6574638779076790723/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/11/xyzzy-edict.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6574638779076790723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/6574638779076790723'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/11/xyzzy-edict.html' title='[xyzzy] EDICT とべんりすぷ'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_WYfJEM2p5Uo/SREgnznm9JI/AAAAAAAAAFI/t_wJpH5LRhQ/s72-c/lookup-current-word-demo.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3581338851017441780</id><published>2008-10-24T02:34:00.005+09:00</published><updated>2009-12-22T03:54:29.295+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>整数を３けた区切り形式の文字列に変換する関数</title><summary type='text'>この間の日曜日、基本情報処理技術者試験を受けに行ってきました。
合格するかどうかは正直微妙…

そこでこんな設問が


午後の問題 問6:
[プログラムの説明]
金額を表すときのように、整数を３けた区切り形式の文字列に変換する関数 convert である。(以下略)
           表 変換例
┌────┬────────────┐
│  整数  │３けた区切り形式の文字列│
├────┼────────────┤
│1234567 │1,234,567               │
│ -57482 │-57,482                 │
│     63 │63                      │
│-999999 │-999,999                │
└────┴────────────┘

Ｃ言語での問題だったけど、なんとなく </summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3581338851017441780/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_24.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3581338851017441780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3581338851017441780'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_24.html' title='整数を３けた区切り形式の文字列に変換する関数'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1405298909163269974</id><published>2008-10-23T20:32:00.007+09:00</published><updated>2009-12-22T03:48:40.429+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='ネタ'/><category scheme='http://www.blogger.com/atom/ns#' term='Emacs'/><title type='text'>elispでarglist関数っぽいの</title><summary type='text'>「xyzzyでarglist関数っぽいの 」[その1][その2] のおまけ。

何でこんなの作ったんだろう…

;;; for Emacs Lisp
(defun arglist (def)
  (unless (keymapp def)
    (let ((argstr (car (help-split-fundoc (documentation def) def))))
      (if argstr
          (format "%s" (cdr (car (read-from-string argstr))))
        (help-function-arglist def)))))

(arglist 'arglist)        ; (def)
(arglist 'lambda)         ; "(ARGS [DOCSTRING] [</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1405298909163269974/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/elisparglist.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1405298909163269974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1405298909163269974'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/elisparglist.html' title='elispでarglist関数っぽいの'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-7543413988330208946</id><published>2008-10-23T08:30:00.015+09:00</published><updated>2009-12-22T03:47:04.665+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><category scheme='http://www.blogger.com/atom/ns#' term='メモ'/><title type='text'>とりあえず「特殊」だということは分かった</title><summary type='text'>「CLのスペシャルに秘められた罠(?)」より

関係あるっぽい記述を見つけたのでメモ。

SPECIAL-OPERATOR-P - CLHS


Notes:
 
Historically, this function was called special-form-p. The name was finally declared a misnomer and changed, since it returned true for special operators, not special forms. 
 

注意: (適当訳)
古くから、この関数は special-form-p と呼ばれていた。
この関数はスペシャル・フォーム(リスト)でなく、スペシャル・オペレータ(シンボル)が与えられる場合に真を返すことから、この名前は最終的に誤った名前であると認められ改定された。

仕様を決</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/7543413988330208946/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_23.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/7543413988330208946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/7543413988330208946'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_23.html' title='とりあえず「特殊」だということは分かった'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1678677643594515465</id><published>2008-10-21T19:15:00.004+09:00</published><updated>2009-12-22T03:41:27.722+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>読書感想文</title><summary type='text'>Shibuya.lisp テクニカルトーク #1 (Ustream.TV)での配信をリアルタイムで見てました。

# 途中あまりの眠気に落ちたのはナイショ

Lispを使った実例を見れた(聞けた)ところ、これが良かった。
Lispで作られたアプリの例をあまり知らないので。

一番印象に残ったのはmitamex4uさんの「俺Lisp」の話。
ケータイで動くREPLを見てみたいです。

もう少し文章書いていた気がするんだけど、気に入らない部分を添削し
てたらこんなに短くなってしまったよ。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1678677643594515465/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_21.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1678677643594515465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1678677643594515465'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_21.html' title='読書感想文'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-2460424154038995324</id><published>2008-10-19T22:39:00.007+09:00</published><updated>2009-12-22T03:40:11.375+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>なんでだろう</title><summary type='text'>「APIを叩く」って言葉は誰が言い出したんだろう。

「叩け(リクエストすれ)ば埃(レスポンス)が出る」みたいな意味合いだと思うが。
うまい表現だなあと思った。それだけ。



2008-11-01T03:46:40+09:00
[追記]

コンピュータ用語として「叩く」を取り上げていたページ

叩く - 通信用語の基礎知識

プログラミングに於いては、ハードウェアの接続されているI/Oポートにアクセスすることを "ポートを叩く" と表現する。

日本版 Jargon File

vt. プログラマが「叩く」ものはポートである。英語ではもっぱら `bashing' が使われるが、それと対応している。 

まあ、スラングなんでしょう。</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/2460424154038995324/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_19.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2460424154038995324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/2460424154038995324'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_19.html' title='なんでだろう'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-3164795416565860626</id><published>2008-10-15T08:06:00.009+09:00</published><updated>2009-12-22T03:38:49.420+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xyzzy'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>[xyzzy]外部コマンドの結果を文字列として出力する</title><summary type='text'>command-substitutionという関数があります。けっこう便利。

上の関数を、バッファを介せずにCLの標準関数だけで作れないかなーと
思ってこんなものを書いてみた。まだまだ処理系依存。

やっていることは以下の3点


  外部コマンドを呼び出して、結果をファイルに保存
  保存したファイルの中身を文字列ストリームに流す
  ついでに右端の空白文字を取り除く


(defun cat (file &amp;optional stream)
  "print file contents."
  (with-open-file (fp file)
    (do ((ch (read-char fp nil nil)
             (read-char fp nil nil)))
        ((null ch))
      (princ ch stream))))
</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/3164795416565860626/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/xyzzy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3164795416565860626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/3164795416565860626'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/xyzzy.html' title='[xyzzy]外部コマンドの結果を文字列として出力する'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-1683036827211349313</id><published>2008-10-14T20:22:00.005+09:00</published><updated>2009-12-22T03:34:55.873+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='勉強会'/><category scheme='http://www.blogger.com/atom/ns#' term='Lisp'/><title type='text'>第20回CL勉強会@Lingrセルフ反省会</title><summary type='text'>勉強会ログ

g000001さんによる勉強会まとめ

前半:
Let Over Lambda 概略 2～3章まで (g000001さん)

筆者が別だから当然だけど、OnLispとは違った側面でマクロを使ってい
る印象。マクロの導入部分はどうしても他のマクロ本と似たり寄ったり
の説明になってしまうのかも。ちょっと勘違い。

xyzzyはインタプリタとしてしか使ってないから、コンパイルする際の
マクロ展開やら変数補足やらを気にしたことなんてなかったなあ。

後半:
CL永続化入門 (onjoさん)

GoogleDocsによるスライドはとても見やすかったです。

xyzzyが吐き出すダンプファイルもLispのデータを保存している例では
なかろうかと思ったり思わなかったり。

(si:dump-image-path)  ; =&gt; "C:/home/xyzzy/xyzzy.wxp"

次回の</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/1683036827211349313/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/20cllingr.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1683036827211349313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/1683036827211349313'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/20cllingr.html' title='第20回CL勉強会@Lingrセルフ反省会'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5619887011547778480</id><published>2008-10-12T13:56:00.007+09:00</published><updated>2009-12-22T03:33:21.672+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>チャットにおける「&gt;」「&lt;」の使い方</title><summary type='text'>チャット上での用語・表現 - Wikipedia


「&gt;」「&lt;」
      特定の相手にコメントする場合に用いる簡易接続詞。「&gt;」は左にコメントを、右に固有名詞を入れて二人称的に扱う。例えば「こんばんは&gt;スズキ」なら「スズキさん、こんばんは」という程度の意味だが、「落ちます&gt;ALL」なら、参加者全員にお別れを云っている事になる。「&lt;」は三人称的に用いるが「大変ですね&lt;イトウ」なら、「イトウさんは大変なんですね」といった感じで問い掛けているような意味に使われる。これらの場合、固有名詞は大抵、敬称を略して使われる。

Lingrのログを参考にして適当に使っていたけれど、それなりの意味があったと
は知らなんだ。「&gt;」ばかり使っていた気がする。

Wikipediaだと「&lt;」の説明がよく分からなかったので他にも検索してみた。   

多分こんな感じ

Ω 自分の発言 &lt; 話題 &gt; 相手(HN</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5619887011547778480/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_12.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5619887011547778480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5619887011547778480'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/blog-post_12.html' title='チャットにおける「&gt;」「&lt;」の使い方'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8571806295723709379.post-5394483873164353670</id><published>2008-10-10T08:48:00.008+09:00</published><updated>2009-12-22T03:31:51.315+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='つぶやき'/><title type='text'>.emacs &gt;&gt;&gt; .xyzzy (いろんな意味で)</title><summary type='text'>

たまにVineLinuxを使っています。

これに付属のEmacsの標準背景色(紫)がキーワードの色と軽くかぶっていて見づ
らいのです。仕方ないから配色変えようかとelispを弄りだしたのが失敗だった。

「そういえばこっちの設定ファイル、Windowsのより古かったな」

「namestringって使えなかったっけ？」

「関数調べるの面倒くさいな(info-modokiとHyperSpecに慣れていたので)」

とかなんとか愚痴りながら作業してたら、いつの間にか日付が変わっていた。

ナンテコッタイ

とりあえず

elispにもCommonLispのような仕様書があれば良いのに、と思った。
関数定義に一発でジャンプできるのがいいなあ。関数のdoc-stringとか、
elisp-infoもあるけど、慣れていないと使いづらい。

あと、パッケージの概念がないから標準関数と拡張関数</summary><link rel='replies' type='application/atom+xml' href='http://lisperblog.blogspot.com/feeds/5394483873164353670/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://lisperblog.blogspot.com/2008/10/emacs-xyzzy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5394483873164353670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8571806295723709379/posts/default/5394483873164353670'/><link rel='alternate' type='text/html' href='http://lisperblog.blogspot.com/2008/10/emacs-xyzzy.html' title='.emacs &gt;&gt;&gt; .xyzzy (いろんな意味で)'/><author><name>kosh</name><uri>http://www.blogger.com/profile/03796272959925221937</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_WYfJEM2p5Uo/SO6ijT0CO3I/AAAAAAAAAFA/C1taF2esep4/s72-c/emacs_before.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
