<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higepon</author_name>
  <author_url>https://blog.hatena.ne.jp/higepon/</author_url>
  <blog_title>higepon blog</blog_title>
  <blog_url>https://higepon.hatenablog.com/</blog_url>
  <categories>
    <anon>Scheme</anon>
    <anon>SICP</anon>
  </categories>
  <description>いろいろな構文が動いたので悪ノリしてパフォーマンスを測定してみたら恐ろしい罠が! 計測対象 (begin (define count (lambda (x) (if (= 5000 x) x (begin (count (+ x 1)))))) (display (count 0)))条件分岐・変数の参照・再帰・値の比較などなどの要素を盛り込んであります。 結果 Gaucheでは一瞬で実行が終わるのに、数十秒かかる。。。 どうして遅いのか? ループの回数を増やすと極端に遅くなるということから、変数のlookupのあたりが怪しいなぁとあたりをつけます。 で、gprof を使って見たところ。 % …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigepon.hatenablog.com%2Fentry%2F20060729%2F1154147743&quot; title=&quot;関数型言語の勉強にSICPを読もう - (66) 4章 - 超言語的抽象(222ページ) C++でSchemeインタプリタを作ろう15 - higepon blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://images-jp.amazon.com/images/P/489471163X.09.MZZZZZZZ.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-07-29 13:35:43</published>
  <title>関数型言語の勉強にSICPを読もう - (66) 4章 - 超言語的抽象(222ページ) C++でSchemeインタプリタを作ろう15</title>
  <type>rich</type>
  <url>https://higepon.hatenablog.com/entry/20060729/1154147743</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
