code reading

is-a?を追いかける(MOPの片鱗をみた?)

Reading Gaucheにて現在is-a?相当の命令の辺りを読んでいます。 今は大体読み終わった段階なのですが、以下のコードの辺りの理解がいまいち(ひらメソッドで読んだページはReading Gauche/class.c/Scm_GenericChangeClass - Mona OS developers Wiki)。特にk-…

末尾再帰最適化がデフォルト

Gauche-0.8.11のvm.cより 456 /* used for the inlined instruction which is supposed to be called at 457 tail position (e.g. SLOT-REF). This checks whether we're at the tail 458 position or not, and if not, push a cont frame to make the opera…

JUMP発見したがしかし

Reading Gauche/04.項目列挙/VMインストラクション - Mona OS developers Wikiを眺めていて、JUMPってサンプル見つかってないんだったことを思い出す。gauche jumpでぐぐってみたところプログラミング言語の進化を追え:大人のためのブラックボックス読解講…