Drinkable Chicken A Pythoneer's adventures with Chicken Scheme. ^_^ And more. I took a quick look at Arc. If nothing else, I want to see how it compares to Scheme. Here are a few remarks (in no particular order). = is used for assignment rather than for equality testing. This may be confusing to people using other variants of Lisp. Possibly less so to users of languages that use the same operator.
(This is a snapshot of my old weblog. New posts and selected republished essays can be found at raganwald.com.) Well, you recall my mentioning how real life is a lot like high school. The latest manifestation of this is an “Arc backlash.” In case you haven’t seen it, Arc is a programming language designed by Paul Graham and (I think) Robert Morris. Actually, it’s a Lisp dialect, so in some respect
On Jan 29, 2008, at 10:42 PM, Jeff Bone wrote: > > God help me, I've been dabbling with Lisp(s) again. > > I'm sure you've heard by now, but Arc is finally out: So I took a look. And, it turns out, Paul Graham's a phony. All Arc is, at present, is a little pseudo-meta-circular interpreter on top of Scheme, MzScheme to be precise. I mean, this thing isn't much more than what a first-year CS student
I ordered PAIP today. Good computer books are so expensive. It hurts me to spend $80 on a book. But there are many worse ways to spend $80 than on something which contains so much knowledge, I guess. I got a $25 gift card for a book store for Christmas, so may as well put it to good use. I've read good reviews of PAIP, so I hope it lives up to them. I had only one AI course in college, and it was
gmane.org は、あなたがお探しの情報の全ての最新かつ最適なソースです。一般トピックからここから検索できる内容は、gmane.orgが全てとなります。あなたがお探しの内容が見つかることを願っています!
普段やるようなことをHaskellで書くようにすればよかろうとHaXmlとhttpをつかってみた。 ほとんどhttpのテストサンプルのget.hsだけど。HaXmlのほうはHaXml の Combinators を使って XML をいじるを参考にした。 import Data.Char (intToDigit) import Network.HTTP import Network.URI import System.Environment (getArgs) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) import Text.XML.HaXml import Text.XML.HaXml.Xml2Haskell import Text.XML.HaXml.Pretty main = do arg
Yaws を embedded モードで動かす為のメモ(適当) appmods で使う為のモジュール 適当に、arg を出力するモジュールを準備する。 -module(put_arg). -author('cooldaemon@gmail.com'). -include("/path/to/yaws/include/yaws_api.hrl"). -export([out/1]). out(A) -> Peer = A#arg.client_ip_port, Req = A#arg.req, H = yaws_api:reformat_header(A#arg.headers), {ehtml, [ {html, [], [ {head, [], {title, [], "put arg"}}, {body, [], [ {h5, [], "The headers passed to us
ESL Podcast、正式名English as Second Language (第二言語としての英語)っていう、ポッドキャストサービスが素晴らしくいい感じ。 英語の勉強したい人はiknowよりESL Podcast聞こうぜ | fladdict 同じくESL Podcastおすすめです。ここ二ヶ月、iPodに入れて毎日聞いてます。一回あたり20分たらずなので移動中に聞くのにちょうどいい長さ。 英語でPodcastを聞くなら他にも色々あるけど、ESLが良いのはこの辺り。 とてもゆっくりなのでほとんど聞き取れる 聞き取れるので楽しい・飽きない 全部英語だけで(日本語解説無しで)理解できると、なんとなく出来た気になって嬉しい ESLの前に英語のラジオ&ニュースを試したけど、ほとんど聞き取れないので退屈な上に、聞き逃した部分が分からないまま放置されてしまってこりゃあかん、と。 その点、ESL
[AD] GREEエンジニア募集 GREEで一緒にはたらきましょー(ほんとに)。応募はこちらから! diary.eth.jp トップページ RSS 更新状況 最近の見出し _ [ソフトウェア] PHP拡張モジュールでクラス定義 やっぱりphp5のextensionならクラス定義しなきゃ!ということで昨晩はそのあたりのコードをつらつら眺めていました(sara本、前オフィスにあったのになー)。 ということで今日から始めるクラス定義のしかた、です。まずはMINIT_FUNCTIONでZend Engineのクラステーブルに自分のクラスを登録します(fooという拡張モジュールにbarというクラスを定義してみます)。 static zend_class_entry *php_bar_ce; static zend_object_handlers php_bar_object_handlers; PH
>>> def deco(func): ... return 'Hello, world!' ... >>> @deco ... def foo(): ... print "I'm never called." ... >>> foo 'Hello, world!' 関数fooが関数decoの戻り値により'Hello, world!'という文字列に置き換わっている。 但し、通常デコレータの期待される用途としては、関数に機能を追加することである。 以下の例では関数fooに実行時間を表示する機能を追加している。 >>> import time >>> >>> def profile(func): ... def wrapper(*args, **kw): ... timer = time.clock ... t0
_ Rails 2.0 の ActiveSupport の 1.second とかが地味に変わっている件 Rails 1.2.x の場合 $ ruby script/console >> 1.second => 1 >> 1.second.class => Fixnum Rails 2.0.x の場合 $ ruby script/console >> 1.second => 1 second # ん? Fixnum じゃなくなったのか!? >> 1.second.class => Fixnum # え! Fixnum なんだ??? というわけで、解析ですが、 その前にまずは Rails 1.2.x 系だとどういう定義 だったかを見てみましょう。 Rails 1.2.x のおさらい module Time def seconds self end というのが定義さ
Prerequisite: Knowledge of macros. Either fluency with reading and writing them, or enthusiasm for them and willingness to use macrexpand-1 to see what the macros in the text are doing. 1)Macros or CLOS? If you are learning CL, you need to decide which to learn first, macros or CLOS. Graham has macros in Chapter 10, CLOS in chapter 11. Keene uses macros in her book on CLOS. What neither spot is th
_ Zopeの導くところへ、Pythonはついて行く Web Component Development with Zope 3 の前書きにEJBがコメントを寄せているが、 なかなか面白いと思ったので、ざっくり翻訳してみる。 ちなみに、原文はここにもある。 以下、翻訳。 Zopeの導くところへ、Pythonはついて行く。 長年続いてきたけれど、この潮流は止まりそうな気配さえない。 最新の宣伝文句が何であろうと、RESTful Webプログラミングだろうが、 標準化インタフェースだろうが、プラグ可能コンポーネントだろうが、 実用的制限実行環境だろうが、 Zopeは控えめに行き先を先導し、他の誰よりも何年も先を行って、 本物を送り届けてきた。 技術上の概念だけではなくって、ちゃんとお金を払っている顧客のオフィスに届けられ、稼働してきたんだ。 ところが奇妙なことに、進みつづけるPythonの開発
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く