This weekend I took a big step in upping the ante for JavaScript as a Language. At some point last Friday evening I started coding and didn’t stop until sometime mid-Monday. The result is a good-enough browser/DOM environment, written in JavaScript, that runs on top of Rhino; capable of running jQuery, Prototype, and MochiKit (at the very least). The implications of this are phenomenal, and I’m no
jsでのdomのテストなどを行う際、テストデータとしてのhtmlが欲しくなる。 で前から言ってるようにhtmlunitを流用しちゃおうという話。 もうね。つべこべいうのやめた。 いきなりソース張るw ScriptablePageLoader package org.seasar.teeda.extension.spike.rhino; import java.io.File; import java.net.URL; import org.mozilla.javascript.ScriptableObject; import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit.TopLevelWindow; import com.gargoylesoftware.htmlunit.WebClien
そろそろ継続の勉強をしたいなと思ってRhinoをダウンロード。最近のRhinoには継続の機能が組み込まれているのだ。Lisp風の構文が苦手な人が継続を勉強したい場合は要チェックだと思う。 今年は、もっとブツを作ろうと思っているので、簡単な解説を書いてみた。自分は継続についてあまりよくわかっていないので、使い方が間違っているかもしれない。何かあればご指摘ください。もっと内容が充実すればオブジェクトの広場に寄稿したいな。 Continuationオブジェクトの使い方 継続の機能は組み込みのContinuationオブジェクトに集約されている。Continuationを作成し、呼び出すだけで利用可能。 ある関数内でContuinuationオブジェクトを作成して、適当な変数に代入すればその時点の継続が保存される 多分「その関数を呼び出すまでのコールスタックの情報が保存される」というイメージ修正:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く