タグ

Programmingとlispに関するsyanbiのブックマーク (13)

  • LisperはなぜLispが読みやすいし書きやすいと思うのか? - nobkzのブログ

    まぁ、なんというか、Lispネタです。はい。 括弧のせいで挫折した! なんかこういう話をよく聞く。ぶっちゃけ、あなたがちゃんと真面目に読んでないからでは?とか思ったりするのだが、まぁそれは置いておこう。 要は、括弧が多過ぎて、カッコとコッカの対応が取れないというあたりかな?挫折する理由としては。何となく思うのが エディタが良くない 多くの場合コレだと思う。あと 書き方が良くない まぁコレもあるよね。地味に全然インデントしてなかったりする。そりゃあ読みにくいですよ。 大学のセンセの教え方が良くない! 知るか! Lisper 「Lispは読みやすい!」 Lisperは多分みんな、「Lispの読みやすい」と思うだろう。@valvallowさんあたり、いつも叫んでいる。 末期症状? ”Lisperが「Lispが読みやすい」と言うのは、Lisp病の末期症状である!(?) "とのこと。知らんがな。 ま

    LisperはなぜLispが読みやすいし書きやすいと思うのか? - nobkzのブログ
  • 最小限Lisp - 西尾泰和のはてなダイアリー

    Web-DB Vol.60が手元にある人はぜひLispの章を見てみてくださいね。Lispのコードがほとんど構文木と同じであって、その構文木を実行するときにどうなるか、という話。 下のコードを見ればわかるとおり、Lispのコードではリストの区切りにカンマがないけどもPythonにはあるってところと、LispのアトムはPythonでは文字列で表現しているので引用符がくっついている。それくらいの違いしかない。で、その構文木がこれくらいのコードで実行出来る、と。 でまあ、これはコードに特殊形式がないから全部「各要素をevalしてから計算をする」という流れになっているのだけども、それじゃifとか実現できなくて困るよね?どうすればいいと思う?というのは機会があればまた今度書く。 # -*- encoding: utf-8 -*- """ mini-Lisp Lisp解説のための、Lisp風構文木を受け

    最小限Lisp - 西尾泰和のはてなダイアリー
  • Lisp Games Development Et Cetera

    Friday, April 16, 2010 CONS improvements The time I've spent on the Xiomacs game editor system has been paying off; both LHARC and I are using it to make levels for our games. The XE2 engine is designed to allow any combination of procedural and hand-drawn elements; in the screenshot below, the map was generated by LOGO commands and then progressively edited by hand via Xiomacs, adding new walls,

  • おとうさん、ぼくにもYコンビネータがわかりましたよ! - 2009-04-09 - きしだのはてな

    やっと、Yコンビネータが何を意味するものなのか、どういう意義があるのかがわかりました。 名前を使わず再帰ができますよ!というだけのものじゃなかったのですね。 まずλありき 関数の話をしたいのです。 そのとき、いちいち hoge(x) = x * 2 としてhogeを・・・、とか名前をつけて話を進めるのがめんどうなので、関数を値としてあらわすと便利ということで、λという値を定義するのです。 そうすると、上のhoge関数なんかはλ(x)(x*2)などとあらわせますが、引数をあらわすのに()を使うといろいろまぎらわしいので、 λx.x*2 のように表記します。 というのがλ。 このとき、λになにかわたされたら、引数としてあらわされる部分を単純におきかえます。 (λx.x*2)y とあったら、xの部分をyでおきかえて (λx.x*2)y → y * 2 となります。λの引数部分を与えられた引数で置

    おとうさん、ぼくにもYコンビネータがわかりましたよ! - 2009-04-09 - きしだのはてな
    syanbi
    syanbi 2010/11/05
    不動点コンビネータ(Yコンビネータ)についてのエントリ。
  • ’(rubikitch wanna be (a . lisper))

    この度、独自ドメイン取得したので、ブログ・サイトを移転します。 今日をもちまして、はてなダイアリーは更新を終了します。 ブックマーク、RSSは解除していただいて構いません。 今後は新サイトでよろしくお願いします。 http://rubikitch.com/ 学校やら勉強会やらセミナーやらやらで、 いろいろ学ぶ機会があると思います。 けれども多くの人たちはとある 大事なことをやっていません。 それは 『復習』 です。 小中学校時代を思い出していただけたらわかると 思いますが、学校から帰って家で勉強するときは、 復習もきちんとやっていましたよね? だからこそ、赤点ばかりにならずに きちんと身に付いたのです。 思春期の定期テストの山だったり受験を乗り越え られたのは、復習をしっかりしていたからです。 けれど大人になると日々の仕事で せいいっぱいなのか、学生時代の 「復習」という大切な習慣を 置

    ’(rubikitch wanna be (a . lisper))
    syanbi
    syanbi 2010/11/01
    emacs使いおいてはブクマ必須ということで
  • Peter Norvig

    #1 Gettysburg Powerpoint Presentation and its making (slides) #2 AI: A Modern Approach (book) and AI on the Web (links) #3 World's Longest Palindrome (for 20:02 02/20 2002) #4 Teach Yourself Programming in 10 Years (essay) #5 Paradigms of AI Programming (book) with code #6 Java IAQ and Python IAQ (FAQs) #7 Design Patterns in Dynamic Languages (slides) #8 Lisp compared to Python, Java, and itself i

    syanbi
    syanbi 2010/10/06
    Lispyの記事があった。また見たことのある記事もいくつかある。ブックマークをしておく。
  • ((Pythonで) 書く (Lisp) インタプリタ)

    Peter Norvig / 青木靖 訳 このページには2つの目的がある。コンピュータ言語の実装について一般的な記述をすることと、Lispの方言であるSchemeのサブセットをPythonで実装する具体的な方法を示すことである。私はこのインタプリタをLispy (lis.py)と呼ぶ。何年か前に私はJavaとCommon LispでSchemeインタプリタを書く方法を示した。今回の目標は、アラン・ケイが「ソフトウェアのマクスウェル方程式」と呼んだところの簡潔さと取っつきやすさを可能な限り実現するということだ。 SchemeのサブセットLispy の構文と意味論 コンピュータ言語の多くは様々な構文的な決まり(キーワード、中置演算子、カッコ、演算子優先順、ドット記法、セミコロンなど)を持っているが、Lisp族言語の1つとして、Schemeの構文はすべてカッコ付きの前置記法であるリストを基とし

    syanbi
    syanbi 2010/10/06
    うお、今まで知らなかった。ブクマ
  • 573397’s gists

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    573397’s gists
    syanbi
    syanbi 2010/09/12
    オブジェクトのメソッド及びイテレータへの値渡しによってLispっぽい()を使った記法を・・・
  • Next Lisps

    I'm a sucker for articles mentioning "the next Lisp". I just read Mark Tarver's, and I thought I'd jot down some quick notes. Not to be taken too seriously, but still. Quotes are from The Next Lisp: Back to the Future. Recursion as the primary mean of expressing procedure calling. Recursion is highly overrated. When I call MAP, I don't care whether that's implemented using recursion or gotos. Also

  • Lisp: Common Lisp, Racket, Clojure, Emacs Lisp - Hyperpolyglot

    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

  • InterfaceBuilderWithCCLTutorial

    Cocoa Interfaces Using the Apple Interface Builder (IB) and Clozure Common Lisp (CCL) Version 1.0 January 2010 Copyright © 2010 Paul L. Krueger All rights reserved. Paul Krueger, Ph.D. Introduction This tutorial provides a guide to creating Cocoa interfaces for Clozure Common Lisp (CCL) programs. It is not a comprehensive guide to Cocoa; that is simply too big an undertaking and there is ample doc

  • Tao Effect

    Until now it hasn't been possible to password protect a single folder on OS X. Now, Espionage is here to solve that problem for good.

    syanbi
    syanbi 2009/12/10
    new lisp。入れたけどほとんど動かしてない、けどやらんとかな・・・いつ・・・
  • Professional Term Paper Writing Help: Expert Midterm Essays Aid

    How To Cope With Midterm Exams Dreaded by most, passed by few; these are the best statements one can make about midterm exams which every student will encounter throughout their lives. These examinations, designed to rehash what the student has learned, provide heavy weight towards your final grade which, of course, causes the student to stress out beyond belief. This is why many of them prefer as

    syanbi
    syanbi 2009/11/27
    PicoLisp
  • 1