#1 In Premium Domains 206,413 Of The World's Best .Com Domains Available For Immediate Purchase Safe & Secure Transactions 100% Satisfaction Guaranteed See our Testimonials
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
";;;; lisp.vim ";;;; Lisp inplementation by vim script ";;;; Author: Pocket <poketo7878@gmail.com> "Global variables"{{{ let s:nil = 'nil' "}}} "Type check functions"{{{ function! IsNumber(thing) if type(a:thing) == type(1) return 1 else return 0 endif endfunction function! IsString(thing) if type(a:thing) == type('test') return 1 else return 0 endif endfunction function! IsListp(thing) if type(a:
In preparation of FormLis leaving open alpha and entering beta status, I though I’d write about some of the technology behind the system. One cool feature is the powerful view engine, which permits powerful yet readable view descriptions. For example, if your page was a survey with several fields that drop downs like so: Question1: This is the question text and etc etc. __Excellent______ [v] __Sat
賃貸暮らしのわが家の地震対策【揺れから命を守る編】 以前のブログでも記載した、防災の優先順位に基づいて対策を進めています。まだ手をつけられていない部分もありますが、ある程度まとまってきたのでざっくりとご紹介していきます。 優先順位別に改善していっているため、今回は主に地震の揺れ対策がメインになります。…
前の前のエントリで紹介した中置記法のマクロですが、「べき乗って右結合じゃね?」ってつぶやいてみたところ即座に改造してくれましたヽ(´▽`)ノわーい右結合がサポートされたことにより代入演算まで入れてくれました。最早C。すごい。if文のtestに中置記法とか反則すぎ!惚れてまうやろー/// ↓以下zeptometer - CLで中間記法(2)から転載 ;ax^2+bx+c=0の大きい方の解を求める (defun test (a b c) (if {a != 0} {{- b + sqrt {b ** 2 - 4 * a * c}} / {2 * a}} {- c / b})) ;sin(a+b)をわざわざ加法定理で展開して求める (defun test2 (a b) {sin a * cos b + cos a * sin b}) ;こんなのもできる。スパゲティ乙。 ;(+ (LOG (SIN
CMU Artificial Intelligence Repository Common Lisp the Language, 2nd Edition This document contains the complete text of the book Common Lisp the Language, 2nd edition by Guy L. Steele, Thinking Machines, Inc. Digital Press 1990 paperbound 1029 pages ISBN 1-55558-041-6 $39.95 in html format. To use it, start with the Title Page or Table of Contents. A searchable index interface to the book is unde
I've enjoyed reading Peter Norvig's recent articles on Lisp. He implements a Scheme interpreter in 90 lines of Python in the first, and develops it further in the second. Just for fun I wondered if I could write one in C++. My goals would be 1. A Lisp interpreter that would complete Peter's Lis.py test cases correctly... 2. ...in no more than 90 lines of C++. Although I've been thinking about this
S式の呪縛 http://www.dwheeler.com/readable/sweet-expressions.html やっぱS式suck! 頭の固いロートルLisperどもよ、俺がLispの美しい代替構文を考えてやったぜ。完全S式コンパチだが中置式もインデントも使えるぜ。ヨロシク。 http://chrisdone.com/posts/2010-11-25-lisk-lisp-haskell.html Haskellクール! だけど構文がsuck! インデントセンシティブで綺麗になるのはサンプルコードだけさ。実世界のコードはどうせぐちゃぐちゃになるんだし。S式にすれば曖昧さ無くなるしマクロも使えるし良いことずくめだね! 中身はHaskell、構文はS式、これ最強! Tags: Programming, Lisp, Haskell Othello (2010/12/01 15:12:5
Oh, you want a definition. I hate definitions; Benjamin Disraeli (1804-1881), Vivian Grey, 1826, (BOOK II, CHAPTER VI) まとめて読んでみると、教育の場でのストーリーはこういうことなのかなと理解しました。某 LISP ラノベ風に書いてみますと……。 T: 例えば、(+ 2 2 2) は 2 を 3 回足しているので (* 2 3) と表せますね。 それでは、次はどう表せばいいのでしょう。 金太郎飴が 4 個ずつ入っているお菓子の箱が 2 箱あります。金太郎飴は全部で何個か。 B子: (* 4 2)だわ。 T: それじゃ、これはどうでしょう。 お皿が 5 皿あります。お皿に 3 個ずつたいやきが乗っています。たいやきは全部でいくつか。 A君: そんなの簡単。(* 5 3) だ。
Common Lisp | 15:47 | 以前この記事を読んで、S式でC言語を書くというアイデアは面白そうだなと思っていた。どうやらgauche.cgenというモジュールを使うとciseが使えるらしいのだが、使い方がよく解らないので使うのは諦めていた。他に何か無いかと探していると、タイトルに「S式ベースC言語」という言葉が含まれている論文がCiNiiにあって(これとこれ)この論文を書かれた方のHPに行ってみると、実際に使えるSC言語の実装が公開されていた。こちらにはちゃんとドキュメントもある。このSCを使うと、CL風のマクロがC言語で使える。試しに使ってみた例。 (decl (printf) (fn int (ptr (const char)) va-arg)) (%defmacro from-to (var from to &body form) `(for ((def ,var in
ようやく社員紹介ページができました。nagata (@handlename) です。 先日の @soh335の記事に感化されて emacs 版を書いてみました。章立てはだいたい同じになってます。 ※ elisp = emacs lisp elispの管理 auto-install.el URLから elisp を直接インストールすることができます。 EmacsWiki: auto-install.el .emacs にはこんな設定を書いておきます。 (require 'auto-install) (add-to-list 'load-path auto-install-directory) (auto-install-update-emacswiki-package-name t) (auto-install-compatibility-setup) (setq ediff-window-
Emacsでの非同期処理は大変 これまでEmacsのGUIアプリをいくつか書いてみて、非同期の処理を何とかしたいと思ったことが deferred.el を書こうと思った動機です。 Emacs Lisp上でコマンドを非同期で処理しようと思うと、コールバックをつなげたり、正しくエラー処理を行うために、かなり長いコードを書く必要があります。また、最近はWebにアクセスする機会も多いのですが、これも非同期で処理するとなるとまた面倒です。非同期をやめて、ブロックする(Emacs全体が固まる)コードで書けば楽なのですが、それではユーザー体験としてマイナスになってしまいます。 特に大変だったのが cacoo.el を作っているときでした。 cacoo.el では、以下のような流れで画像を表示します。 Webから画像取得(wget) 画像サイズ取得(identify) 画像リサイズ(convert) 表示
先日の関西Emacsの会で発表しました deferred.el です。 deferred.el はEmacs Lispでの非同期処理を書きやすくするためのライブラリです。 (2010/10/08 追記:コンパイルできないバグがありますので修正中です。コンパイルしなければとりあえず動きます。。。) (2010/10/08 追記:コンパイル出来るようになりました。毎回ミスばっかりですみません。) 入手・ドキュメント 以下のGutHubの日本語ドキュメントの方に一通り書いてみました。 deferred.el 日本語ドキュメント そのうち頑張って英語に直したいと思っています。(手伝ってもらえると助かります><) ドキュメント目次 インストール 使い方例 インタフェース解説 関数 実行・接続 ポイント deferred.el デモ:慣性スクロール ライブラリなのでdeferred.elを単体でインス
先日の関西Emacsでは、Emacs Lisp の入門記事がうけるとか、「書ける」ようになる情報がないらしいという話を聞きました。確かに、Emacsの初歩的な操作入門と、良く書ける人がアプリやブログなどでelispをばしっと書いてるのはよく見ます。入門から書けるようになるまでの間の過程は見たこと無かったかもしれないと思いました。 ということで、Emacsの先人たちにはまだまだ及びませんが、いくつかのアプリを書いてみた自分がたどった方法を書いてみます。先にまとめると以下の2つになると思います。 elispでどうしても書きたい物があること たくさん書いて動かして(こっちが先)、そしてInfoや他人のコードを見て勉強する 書ける以前のまとめ Emacs歴10年以上。すでに生活の一部。 でも設定を書くのに使っていたぐらい。 既存のアプリの分かりやすいバグを手元でちょっと直すとか。 LISP系の言語
Emacs用の開発支援ツールを集めた「CEDET」、バージョン1.0が登場 CEDET開発グループは8月30日、Emacs用の統合開発環境(IDE)「Collection of Emacs Development Environment Tools(CEDET)1.0」を公開したと発表した。 「Emacs用の開発支援ツールを集めた「CEDET」、バージョン1.0が登場 – SourceForge.JP Magazine」より。 ずいぶんと前に使ったような記憶があるので、CEDETのダウンロードページをみると、「cedet-1.0pre3」の日付が「2005-06-30」となっている。 cedet-1.0.tar.gz 2010-08-27 cedet-1.0pre7.tar.gz 2010-02-26 cedet-1.0pre6.tar.gz 2009-03-01 cedet-1.0pre
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く