<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Daydreams</title>
	<atom:link href="http://plmday.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://plmday.wordpress.com</link>
	<description>Day dreams to grow great.</description>
	<lastBuildDate>Wed, 25 Aug 2010 06:01:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='plmday.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Daydreams</title>
		<link>http://plmday.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://plmday.wordpress.com/osd.xml" title="Daydreams" />
	<atom:link rel='hub' href='http://plmday.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ph.D.插图指南</title>
		<link>http://plmday.wordpress.com/2010/08/25/ph-d-%e6%8f%92%e5%9b%be%e6%8c%87%e5%8d%97/</link>
		<comments>http://plmday.wordpress.com/2010/08/25/ph-d-%e6%8f%92%e5%9b%be%e6%8c%87%e5%8d%97/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 05:32:47 +0000</pubDate>
		<dc:creator>DAY</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plmday.wordpress.com/?p=54</guid>
		<description><![CDATA[Might教授解释什么是Ph.D. （The illustrated guide to a Ph.D.） 想象一个涵盖人类所有知识的圆： 当你小学毕业时，你只知道一点儿： 到你中学毕业时，你知道多点儿了： 有了学士学位后，你获得了专长： 硕士学位则加大你的专业纵深： 阅读研究论文将你领向人类知识的边沿： 一旦到达边界，选好发力点： 然后在那个点上使劲推边界几年： 直到有一天，那个边界退却： 你弄出来的那个凸起就叫Ph.D.： 当然，对你来说现在世界看上去不一样了： 因此，别忘了大图： 继续推。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plmday.wordpress.com&amp;blog=3318145&amp;post=54&amp;subd=plmday&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Might教授解释什么是Ph.D. （<a href="http://matt.might.net/articles/phd-school-in-pictures/">The illustrated guide to a Ph.D.</a>）</p>
<p style="text-align:left;">想象一个涵盖人类所有知识的圆：<br />
<img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.001.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">当你小学毕业时，你只知道一点儿：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.002.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">到你中学毕业时，你知道多点儿了：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.003.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">有了学士学位后，你获得了专长：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.004.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">硕士学位则加大你的专业纵深：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.005.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">阅读研究论文将你领向人类知识的边沿：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.006.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">一旦到达边界，选好发力点：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.007.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">然后在那个点上使劲推边界几年：</p>
<p style="text-align:left;"><img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.008.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">直到有一天，那个边界退却：<br />
<img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.009.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">你弄出来的那个凸起就叫Ph.D.：<br />
<img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.010.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">当然，对你来说现在世界看上去不一样了：<br />
<img class="aligncenter" src="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.011.jpg" alt="" width="491" height="369" /></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">因此，别忘了大图：<br />
<img class="aligncenter" src="http://matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.012.jpg" alt="" width="491" height="369" /></p>
<p>继续推。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plmday.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plmday.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plmday.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plmday.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plmday.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plmday.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plmday.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plmday.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plmday.wordpress.com&amp;blog=3318145&amp;post=54&amp;subd=plmday&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plmday.wordpress.com/2010/08/25/ph-d-%e6%8f%92%e5%9b%be%e6%8c%87%e5%8d%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cccef78b56012f1411d577c6c36f736b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DAY</media:title>
		</media:content>

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.001.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.002.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.003.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.004.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.005.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.006.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.007.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.008.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.009.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.010.jpg" medium="image" />

		<media:content url="http://208.109.218.43/matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.011.jpg" medium="image" />

		<media:content url="http://matt.might.net/articles/phd-school-in-pictures/images/PhDKnowledge.012.jpg" medium="image" />
	</item>
		<item>
		<title>Write safe Scheme procedure that handles only proper list</title>
		<link>http://plmday.wordpress.com/2010/01/03/write-safe-scheme-procedure-that-handles-only-proper-list/</link>
		<comments>http://plmday.wordpress.com/2010/01/03/write-safe-scheme-procedure-that-handles-only-proper-list/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 09:28:51 +0000</pubDate>
		<dc:creator>DAY</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Scheme]]></category>

		<guid isPermaLink="false">http://plmday.wordpress.com/?p=47</guid>
		<description><![CDATA[C does not have a string type, thus a string is actually constructed via an array of characters, with a special NUL character marking its end. Similarly, Scheme does not have a list type, a list is actually consed recursively from pairs, with a special constant nil marking its end. The lack of a true [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plmday.wordpress.com&amp;blog=3318145&amp;post=47&amp;subd=plmday&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>C does not have a string type, thus a string is actually constructed via an array of characters, with a special <code>NUL</code> character marking its end.  Similarly, Scheme does not have a list type, a list is actually <code>cons</code>ed recursively from pairs, with a special constant <code>nil</code> marking its end.  The lack of a true list type results in the distinction of &#8220;proper list&#8221; (<code>cons</code>ed pairs ended with a <code>nil</code>) and &#8220;improper list&#8221; (<code>cons</code>ed pairs not ended with a <code>nil</code>), for example, <code>(0 1 2)</code> is a pretty printed form for <code>(0 . (1 . (2 . nil)))</code>, and more primitively <code>(cons 0 (cons 1 (cons 2 nil)))</code>, while <code>(0 1 . 2)</code> for <code>(0 . (1 . 2))</code>, in turn <code>(cons 0 (cons 1 2))</code>.  Although improper list is rarely used in Scheme (as a dialect of Lisp, it of course does a lot of (proper) list processing), we can not presume that one will call a procedure intended to handle a proper list with indeed a proper one.  So when writing a procedure that expects to handle a proper list, we need to take care of the extreme case.</p>
<p>SRFI-1 provides a pair of procedures <code>proper-list?</code> and <code>improper-list?</code> for testing whether a list is proper or not respectively.  Thus when we write a procedure to handle proper list, we can first check to see if the passed in argument is a proper list before we actually deals with it.  For example, the standard <code>length</code> procedure could be defined as follows:</p>
<pre>   (define (length l)
     (cond ((improper-list? l) (print "Error: passed in an improper list"))
           ((null? l) 0)
           (else (+ 1 (length (cdr l))))))</pre>
<p>It&#8217;s easy to see that both <code>proper-list?</code> and <code>improper-list?</code> need to traverse the list before they can tell whether the list is proper or not.  To avoid this unnecessary traversal, we can embed the test inline as shown below:</p>
<pre>   (define (length l)
     (cond ((pair? l) (+ 1 (length (cdr l))))
           ((null? l) 0)
           (else (print "Error: passed in an improper list"))))</pre>
<p>This version of <code>length</code> seems better than the first one, however, it may not generally be true.  For a general procedure on list, the late coming info about the proper/improper attribute of the list (we don&#8217;t till the end) may make us do much useless work on every element of the list except the last.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plmday.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plmday.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plmday.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plmday.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plmday.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plmday.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plmday.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plmday.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plmday.wordpress.com&amp;blog=3318145&amp;post=47&amp;subd=plmday&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plmday.wordpress.com/2010/01/03/write-safe-scheme-procedure-that-handles-only-proper-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cccef78b56012f1411d577c6c36f736b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DAY</media:title>
		</media:content>
	</item>
	</channel>
</rss>
