<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haru-s</author_name>
  <author_url>https://blog.hatena.ne.jp/haru-s/</author_url>
  <blog_title>...ing logging 4.0</blog_title>
  <blog_url>https://haru-s.hatenablog.com/</blog_url>
  <categories>
    <anon>D言語</anon>
  </categories>
  <description>プログラムにおいて，使いもしない値を用意しておくのは時間的にも空間的にも無駄．遅延評価とは，その引数の値が実際に必要になるまで，評価（引数の値を求めるための計算）を後回しにする技術だ．結局使わなかった場合にはまったく評価されず丸儲けとなる．D言語は，関数の引数を遅延評価させることができる．遅延評価をうまく使うとどれくらい実行時間に差がでるのか，極端なコードを書いて実際にやってみた． import std.c.time; import std.stdio; void main(char[][] args) { clock_t t1, t2; // 普通の関数 t1 = clock(); for(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20070116%2F1168969548&quot; title=&quot; 遅延評価の力 - ...ing logging 4.0&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-01-16 02:45:48</published>
  <title> 遅延評価の力</title>
  <type>rich</type>
  <url>https://haru-s.hatenablog.com/entry/20070116/1168969548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
