どうも、Ramencozoです。 卒研発表終わって一息ついてるとこです(´ω`) さて、某OJAGや某JavaKucheなあたりの方々から「関数型言語」とか「Emacs」とかの単語をよくお聴きする機会がありましたので、ちょっと触ってみました。 (xHAGO楽しかったです!自分のLTが宣言のみになっちゃったのはアレでしたがw) さてさてひとまず、環境構築話となります。 対象はLispという関数型言語の方言(?)らしい、Schemeです。動作環境はWinXPです。 でもってUNIXライクなOSでの作業もできるように鍛錬するつもりで、エディタはEmacsを使います。 もうひとつのScheme入門さんとMengurumeLabsさんのページを参考に構築してみました。それぞれダウンロード場所は下記。 ・MzScheme(右端で「close」してページ中央「Download」) ・Emacs for
最近、私のまわりでは様々な角度から多面的に話題な"Lisp"ですが、20年以上の歴史を持つLisp解説書の日本語翻訳版が2010年10月22日に新発売されます。 「Scheme手習い」です。 最近、私はインターネットのカタチに関して語るという本をオーム社で執筆しているのですが、そこでお世話になっている編集の方の熱い想いが、この訳本を実現しました。 この書籍への熱い想いがネット越しに伝わって来たので、遅れ遅れになっている私の原稿に関するミーティングを含めて、お話を聞きに行ってきました。 第4版の版権を得て翻訳 原著のおおもとである「The Little LISPer」は1974年にまでさかのぼります。 原著は何度か版が変わっていますが、1990年に邦題「Shecme手習い - 直感で学ぶLisp」としてマグロウヒル出版から刊行されたのは、1987年の版でした。 しかし、マグロウヒル出版の解散
This is a gentle and step by step Scheme tutorial for beginners. The expected readers are PC users with little programming experience. Try this tutorial if you have not been satisfied with other tutorials. There are many ways to explain abstracted subjects like programming language Scheme and the best way for a reader is strongly depend on his/her ability and background. (There is no absolute best
Wizard Book n. Hal Abelson's, Jerry Sussman's and Julie Sussman's Structure and Interpretation of Computer Programs (MIT Press, 1984; ISBN 0-262-01077-1), an excellent computer science text used in introductory courses at MIT. So called because of the wizard on the jacket. One of the bibles of the LISP/Scheme world. Also, less commonly, known as the Purple Book. from The New Hacker's Dictionary, 2
This tutorial is based on the Kawa - Scheme Language Framework developed by Per Bothner. Kawa Scheme is used by Google's AppInventor framework. However Appinventor only allows you to develop using a visual interface. The tutorials here will show you how to develop Android Apps by writing code in Scheme. So let us jump into it straight away. Here is the source code for a simple app that will displa
Schematics Scheme Cookbook The following table of contents is generated automatically. It includes all topics with a TopicType of Chapter in the CookbookForm. See also RecipeIndex and SectionIndex. To see a more detailed TOC which includes individual recipes, click here (only some chapters will show individual recipes, this feature is under development). Macros Introduction Recipes Introduction C
Scheme is a dialect of Lisp, one of the oldest programming languages still in use today. Lisp was the first language to implement conditionals, first class functions (lambdas), closures and recursion. Some Lisp features, such as closures and macros, have yet to penetrate mainstream languages and it has been observed that mainstream languages are slowly converging on the feature set of Lisp. Scheme
紙面で Scheme プログラミングしてみました。 帰ってから、実際に動かしたコードは下の方に掲載しました。 なぜこんなことをしたのか手元にノートしかない状態に長時間置かれたためです。結構、オススメかもしれません。 なぜ Y Combinator なのか他に適当なネタが思いつきませんでした。すぐ書けるようなものだと、暇つぶしになりませんし・・・。 Y Combinator については、以下の記事を見たときの衝撃からか、何かと気になる存在です。 Y コンビネータって何? - IT戦記 The Little Schemer, 4th Edition 含め、何度も書いているので、どういうものか理解できている(つもり)です。 vallog: Y Combinator いつも Web 上の解説を読んだり、The Little Schemer, 4th Edition のやり方を真似てやっていました。
前回のブログの最後. Schemeの実装はTAOCPのアルゴリズムそのもののコピーで, 実はもっと関数プログラムらしく書きたかった. 書き直したのが以下のプログラムである. ある変数を後段で1回しか使わぬなら, 直接使う場所の書き込んである. (define (b x- x x+) (define (and a b) (fix:and a b)) (define (or a b) (fix:or a b)) (define (xor a b) (fix:xor a b)) (define (lsh a b) (fix:lsh a b)) (let* ((a0 (and x- x+)) (b0 (xor x- x+)) (c0 (xor x b0)) (d0 (lsh c0 -1)) (c1 (lsh c0 1)) (e0 (xor c1 d0)) (f1 (or (and b0 e0) (
ca side-by-side reference sheet grammar and execution | variables and expressions | arithmetic and logic | strings | regular expressions | dates and time | lists | fixed-length arrays | dictionaries | user-defined types | functions | execution control | exceptions | streams | emacs buffers | files | directories | processes and environment | libraries and namespaces | objects | lisp macros | reflec
LispでWebサービスを作ればYahoo!に60億で買ってもらえると聞いて 実はCと同じくらい速いコードが書けると聞いて ルンバがLispで書かれていると聞いて リリカルなので 面接で笑われてカッとなった マンガでわかるらしいので iPhoneアプリが開発できると聞いて iアプリでLispが書けると聞いて 初めて手に入れたポケコンがAI-1000だった ハッカーと画家を読んでしまった 普通のやつらの上を行きたいので 舌足らずなので セグウェイを制御するコードが一日で書けるようになると聞いて How to become a Hackerを読んだ 専用の求人情報に応募できると聞いて プログラミングClojureを読んだ 初めての人のためのLispを読んだ 自前のLispで書かれた将棋が強かったので LispとPostScriptがあればハッピーになれると聞いて LOLの熱にあてられた On
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く