脳汁でコードを書くこれは夢のはなしです. 以下のようにすると, jailbreak済のiPhone OS 3.1.2とXCode 3.2.1でアプリのがやりとりできる, という夢をみました.
PCL -> Clojure Tags: clojure and tutorial My current leisure-time project is porting the examples from Peter Seibel's excellent Practical Common Lisp (PCL) to Clojure. I think Clojure is interesting for three reasons: Clojure is Lisp, but minus historical baggage. Clojure gives full access to the JVM and Java libraries. Clojure groks concurrency and state. My ground rules are simple: I am not goin
Send More Paramedics λ λ λ Fogus' Thoughts on life, programming, and thinking ❤ c clj erl pl frink fth cl org pure icl qi ❤ Follow me on Twitter... or RSS... Run this blog in mobile 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 On Lisp -> Clojure: ProloG (pt. 1) Jan 15, 2009 some comments ; As always, I will post when the code is “com
I am porting the examples from the macro chapters of Paul Graham's On Lisp (OL) to Clojure. My ground rules are simple: I am not going to port everything, just the code samples that interest me as I re-read On Lisp. Where Paul introduced macro features in a planned progression, I plan to use whatever Clojure feature come to mind. So I may jump straight into more "advanced" topics. Please do not as
(define primitive-procedures (list (list 'car car) (list 'cdr cdr) (list 'cons cons) (list 'string->list string->list) (list 'null? null?) (list 'list list) (list '+ +) (list '* *) (list '/ /) (list '< <) )) (define (primitive-procedure-names) (map car primitive-procedures)) (define (primitive-procedure-objects) (map (lambda (proc) (list 'primitive (cadr proc))) primitive-procedures)) (define (ini
Important Notice Although this Trac will remain online for the foreseeable future, Clozure CL's source code and issue tracker are now on GitHub: http://github.com/Clozure/ccl Please don't make new tickets here on the Trac; use the GitHub site instead. Thank you. See OldWikiStart for the previous contents of this page.
Introduction cl-delicious is a Common Lisp interface to the del.icio.us API licensed under the LLGPL and written by Ryan Moe <ryan.moe@gmail.com>. It has been tested on: Linux/SBCL Linux/CMUCL Linux/CLISP almost works. I don't know enough about CLISP to get it to work. I don't think it would take much. It depends on Drakma and S-XML API Reference First we need to create an instance of the delicio
前回説明するといって放置したやつを再度。 XMLを扱うだけならば、cxmlを使うのがお手軽。 グーグル先生に聞くとcXMLという規格があるようでドキュメントが見つかりづらい。 Closure XMLというのが正式名称らしいのでそちらでググった方が良い。 公式サイトはここ。http://common-lisp.net/project/cxml/ 大体の使い方はQuick-Start Exampleで確認できる。 YahooのXMLを読んでみる Yahooの開発者ベージにXMLのサンプルが乗っている。 http://developer.yahoo.co.jp/search/rest.html このドキュメントのURLの構築の項の例を使う。 http://api.search.yahoo.co.jp/WebSearchService/V1/webSearch?appid=YahooDemo&qu
Friday, July 29, 2005 common lisp: a web application tutorial for beginners Lisp; Programming; Postgresql; Newbie; Tutorial I recently found lisp. (That is that teaching computer programming language) I found lisp by reading too many of Paul Graham's essays and by getting too inspired by him. Curious, I started down the path of giving it a fair evaluation, which meant: getting a decent implemen
JavaScript is disabled on your browser. Please enable JavaScript to use correctly mesosadmin frontend Please login Login Password Forgot your personal password ? We can remind you
以下の順番でリンクを読むと効率的にcommon lispを学習できた xyzzy Lisp Programming Common Lisp 入門 で基礎を学習する。特に以下は注目して読む ラムダリストキーワード 飛ばし読みすると見逃す用語 パッケージの基本的な使い方 だいたいわかったら具体例として lispのpackageの仕組み(clisp) - 週記くらい(BTS開発記)も読む xyzzy Lisp Programming お気楽 CLOS プログラミング入門 CLOS の基礎知識 (1)〜(4) 多重継承 インスタンスの初期化 共有スロット を読んで残りは必要になったら読む 1. テンプレートの使い方と展開形の確認 "," ",@"など他で解説していないものの学習をする asdfの使い方 ASDFによるライブラリの管理 ASDFのインストール ASDFパッケージをインストールする 初
lispのpackageの仕組み(clisp) lisp そろそろ、毎度似たような関数を作っていることに気付いてきたので、共通化の仕組みを調べました。 http://www.geocities.jp/m_hiroi/xyzzy_lisp/abclisp17.htmlを参考にした。 上のサイトは、xyzzyでの説明で、下で動かしているのはclispです。 手探りでパッケージを弄ってみる。 初めの1歩 まず、数値の2乗を求める関数を使って実験をしました。 mathという名前を付けるのも恥ずかしかったので、まずは算数モジュールを作成 sansu.cl (defpackage "sansu") (in-package "sansu") (defun sqr (x) (* x x)) $ clisp [1]> (load "sansu.cl") ;; Loading file sansu.cl .
LISPUSERLISPMEMOLisp is a programmable programming language. -- John Foderaro 最近の Common Lisp 界では FFI の定番といえば CFFI のようです. UFFI のプロジェクトも多いですが. 昔書いたドキュメントの例 を CFFI で試してみました. #include <stdio.h> int float_to_bits (float f) { return *((int*)&f); } int double_to_bits_hi (double f) { return ((int*)&f)[0]; } int double_to_bits_lo (double f) { return ((int*)&f)[1]; } float bits_to_float (int i) { return *(
CLOSとはCommon Lisp Object Systemの略らしい.OOというのはメソッドというしばしば破壊的な関数がバンバンでてきて,Lispとは相容れない世界かと思っていたのだが,そうではないようだ. クラス定義とインスタンンス化とスロットの参照 メソッド スロット 優先度 総称関数 スロットの継承 補助メソッド オペレータメソッドコンビネーション 総称関数の削除 クラス定義とインスタンンス化とスロットの参照クラスはdefclassで定義する. (defclass クラス名 スーパークラスのリスト スロットのリスト) スロットとは,多くのOOプログラミング言語でスロットと呼ばれているものに該当する.以下は二つのスロットfoo,barをもつhogeというクラスを定義している. > (defclass hoge () (foo bar)) #<STANDARD-CLASS HOGE>
Lispを学んでどうするのか…emacsをカスタマイズしまくることぐらいしか思い浮かばないが,その思想等を学ぶことは何かと役に立つはずだ.というわけで,Emacs LispはおいといてCommon Lispをやってみる. 基本編 データ構造 詳細入門編 基本編 なにはともあれCommon Lispでいろいろな式を書いてみる. 準備 2003-07-20T15:13+09:00 matsu 実行環境についての記述とサンプルのための入出力についての記述. 式と評価 2003-07-20T15:13+09:00 matsu 式の記述方法とその評価. データ 2003-07-20T15:13+09:00 matsu Lispにおけるデータについて概観する. 変数の定義と代入 2003-08-24T22:00+09:00 matsu Lispにおける局所変数,大域変数,大域定数の定義と代入について.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く