amachang―メランコリックな渋谷系Javascriptハッカー:New Generation Chronicle(1/3 ページ) 常に明るく振る舞うその裏で、理想と現実のかい離を常に思い悩み続けてきたamachang。幾つもの伝説を持つ一風変わった渋谷系ライフハッカーに「New Generation Chronicle」のWeb2.0系スレッドを継承していただいた。
昨日は、1000speakers の第1回のイベントがありました。1次会は Ustream にて参加し、2次会から現地で参加しました。 2次会でSICP読書会の話で盛り上がり、水曜日の読書会に参加しようと言うことになり、amachang など数名の方々に色々と Scheme の書き方を教えてもらいました。 3次会が楽しかったです!23:30頃からサイボウズラボにて3次会が始まったんですが、僕が、せっかく教えて頂いたので、Scheme の実装を JavaScript で始めたら、西尾くん(id:nishiohirokazu)と id:amachang が参加し始め、実装大会となりました。 その5時間の成果が、http://goldenscheme.accelart.jp/ です。 全員、基本文法は実装できました!! 処理系を実装するに当たり、言語を問わず、一般論として、難しいのは2カ所です。
Javascriptで無限ループを実現する5つの方法 http://mono.kmc.gr.jp/~yhara/d/?date=20080114#p02 sleep はまだなさそうだけど、原理的には出来るはず おお、JSRubyにも言及してくださってありがとうございます。 sleep かあ。やっぱりできると嬉しいのかな。 でも実は今の JSRuby って構文木を再帰的に解釈しながら実行していっているので、今のままだと sleep とか絶対無理なんですよねえ。 これを sleep できるようにするには、少なくとも例えばスタックマシンとかに作り変えなくちゃあならないんですが、そうするとインタプリタのコア部分はすっかり作り直しになるのはもちろん、Rubyのクラスやメソッドの実装回りも残らず全部影響を受けるし、構文木をスタックマシン用の命令列に変換するコンパイラも新しく必要に。 ちょっと今来週締切
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く