<?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>Yi Wang&#039;s Tech Notes</title>
	<atom:link href="http://cxwangyi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cxwangyi.wordpress.com</link>
	<description>A blog ported from http://cxwangyi.blogspot.com</description>
	<lastBuildDate>Mon, 23 Jan 2012 15:49:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cxwangyi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yi Wang&#039;s Tech Notes</title>
		<link>http://cxwangyi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cxwangyi.wordpress.com/osd.xml" title="Yi Wang&#039;s Tech Notes" />
	<atom:link rel='hub' href='http://cxwangyi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Using Clang: C++0x Features</title>
		<link>http://cxwangyi.wordpress.com/2012/01/23/using-clang-c0x-features/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/23/using-clang-c0x-features/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 15:49:11 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[System Config Skill]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1188</guid>
		<description><![CDATA[I am using Ubuntu Linux 10.10, with which, comes Clang based on LLVM 2.8. When I use Clang to build google-test, it complains that &#8220;variadic template&#8221; is a C++0x feature and is not yet supported. However, the Clang installed by Homebrew on my Mac OS X 10.7 (Lion) is based on LLVM 3.0 and works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1188&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am using Ubuntu Linux 10.10, with which, comes Clang based on LLVM 2.8.  When I use Clang to build <a href="http://code.google.com/p/googletest/">google-test</a>, it complains that &#8220;variadic template&#8221; is a C++0x feature and is not yet supported.</p>
<p>However, the Clang installed by Homebrew on my Mac OS X 10.7 (Lion) is based on LLVM 3.0 and works well with google-test.</p>
<p>The homepage of LLVM listed pre-built Clang and LLVM 3.0 for Ubuntu 11.04 and 11.10.  So I guess I would have to upgrade to at least Ubuntu 11.04.</p>
<p>FreeBSD 9.0 comes with Clang based on LLVM 3.0. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1188&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/23/using-clang-c0x-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Python under Linux, Mac OS X and FreeBSD Tells Differently</title>
		<link>http://cxwangyi.wordpress.com/2012/01/21/python-under-linux-mac-os-x-and-freebsd-tells-differently/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/21/python-under-linux-mac-os-x-and-freebsd-tells-differently/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 15:55:28 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1185</guid>
		<description><![CDATA[It is interesting: under Linux and Mac OS X running on x64 computers, Python 2.7 tells the machine is &#8216;x64_64&#8242;; whereas under FreeBSD, Python 2.7 tells &#8216;amd64&#8242;. You can try: import platform platform.machine()<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1185&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is interesting: under Linux and Mac OS X running on x64 computers, Python 2.7 tells the machine is &#8216;x64_64&#8242;; whereas under FreeBSD, Python 2.7 tells &#8216;amd64&#8242;.  You can try:<br />
<code>  import platform<br />
  platform.machine()</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1185&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/21/python-under-linux-mac-os-x-and-freebsd-tells-differently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Clang: Linkers with Different Platforms</title>
		<link>http://cxwangyi.wordpress.com/2012/01/20/using-clang-linker-on-different-platforms/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/20/using-clang-linker-on-different-platforms/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 08:55:11 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[System Config Skill]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1181</guid>
		<description><![CDATA[I am using clang++ as the linker with both Ubuntu Linux and Mac OS X. The Ubuntu version invokes collect2, which has parameters &#8211;whole-archive and &#8211;no-whole-archive to force linking libraries, whereas the Mac OS X version invokes ld (llvm based), which has -force_load for the same purpose.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1181&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am using clang++ as the linker with both Ubuntu Linux and Mac OS X. The Ubuntu version invokes collect2, which has parameters &#8211;whole-archive and &#8211;no-whole-archive to force linking libraries, whereas the Mac OS X version invokes ld (llvm based), which has -force_load for the same purpose.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1181&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/20/using-clang-linker-on-different-platforms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Clang: Cannot Find Standard C++ Library</title>
		<link>http://cxwangyi.wordpress.com/2012/01/20/using-clang-cannot-find-standard-c-library/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/20/using-clang-cannot-find-standard-c-library/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 07:40:42 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[System Config Skill]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1178</guid>
		<description><![CDATA[When I use clang as the linker to link a C++ program, it complains cannot find standard symbols like std::cout. But if I use clang++ as the linker, it works. However, on both Ubuntu and Mac OS X, clang++ is just a symbolic link to clang! I guess when clang runs, it checks the name [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1178&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I use clang as the linker to link a C++ program, it complains cannot find standard symbols like std::cout.  But if I use clang++ as the linker, it works.  However, on both Ubuntu and Mac OS X, clang++ is just a symbolic link to clang!  I guess when clang runs, it checks the name in which it was started and work accordingly.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1178&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/20/using-clang-cannot-find-standard-c-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Clang: Cannot Find Standard C++ Header Files</title>
		<link>http://cxwangyi.wordpress.com/2012/01/20/using-clang-cannot-find-standard-header/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/20/using-clang-cannot-find-standard-header/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 07:15:13 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[System Config Skill]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1176</guid>
		<description><![CDATA[I got a problem with clang today: it complains cannot find standard C++ header files. So I used two magic options: clang -v -E, which outputs details about how it tries to find the header files. This reveals that clang finds in /usr/local/c++/4.4.x, but not including /usr/local/c++/4.5.1, which is my only version installed together with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1176&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got a problem with clang today: it complains cannot find standard C++ header files.</p>
<p>So I used two magic options: clang -v -E, which outputs details about how it tries to find the header files.  This reveals that clang finds in /usr/local/c++/4.4.x, but not including /usr/local/c++/4.5.1, which is my only version installed together with GCC 4.5.1.</p>
<p>So, my solution is simply sudo apt-get install g++-4.4. (Note that is not enough to install gcc-4.4, because that does not bring you C++ header files and libraries.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1176&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/20/using-clang-cannot-find-standard-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>用Go语言实现Design Patterns</title>
		<link>http://cxwangyi.wordpress.com/2012/01/01/%e7%94%a8go%e8%af%ad%e8%a8%80%e5%ae%9e%e7%8e%b0design-patterns/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/01/%e7%94%a8go%e8%af%ad%e8%a8%80%e5%ae%9e%e7%8e%b0design-patterns/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 15:05:27 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/2012/01/01/%e7%94%a8go%e8%af%ad%e8%a8%80%e5%ae%9e%e7%8e%b0design-patterns/</guid>
		<description><![CDATA[王海磊提醒我注意一篇论文：GoHotDraw: Evaluating the Go Programming Language with Design Patterns。这篇论文里介绍了作者用 Go 语言实现了三种常见的 design patterns：singleton、adaptor 和 template method。作者说，其实他实现了所有的 23 种 GoF design patterns，文中只说了上述三种。 除了这篇论文，我注意到这篇blog：Design patterns in Go programming language 里，作者介绍了如何用 Go 实现另外三种 design patterns：command, strategy 和 factory。 在我的这篇幻灯片里，我本来试图从 design patterns 如何用 Go 实现的角度来介绍 Go 语言。但是因为总结的不够，所以没有这么写。希望接下来能总结一下如何使用 Go 语言。 当然，纯粹的考虑一种语言如何实现一种 pattern 是机械的。一种观点是：如果需要一种 pattern，则说明使用的语言缺乏对应的语法。比如，这篇题为 The (lack of) design patterns in Python [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1175&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>王海磊提醒我注意一篇论文：<a href="http://www.doc.ic.ac.uk/~ncameron/papers/schmager_plateau10.pdf">GoHotDraw: Evaluating the Go Programming Language with Design Patterns</a>。这篇论文里介绍了作者用 Go 语言实现了三种常见的 design patterns：singleton、adaptor 和 template method。作者说，其实他实现了所有的<a href="http://en.wikipedia.org/wiki/Design_Patterns"> 23 种 GoF design patterns</a>，文中只说了上述三种。</p>
<p>除了这篇论文，我注意到这篇blog：<a href="http://loadcode.blogspot.com/2009/12/design-patterns-in-go-programming.html">Design patterns in Go programming language</a> 里，作者介绍了如何用 Go 实现另外三种 design patterns：command, strategy 和 factory。</p>
<p>在我的<a href="http://cxwangyi.wordpress.com/2011/12/13/a-learning-note-on-go/">这篇幻灯片</a>里，我本来试图从 design patterns 如何用 Go 实现的角度来介绍 Go 语言。但是因为总结的不够，所以没有这么写。希望接下来能总结一下如何使用 Go 语言。</p>
<p>当然，纯粹的考虑一种语言如何实现一种 pattern 是机械的。一种观点是：如果需要一种 pattern，则说明使用的语言缺乏对应的语法。比如，这篇题为 <a href="http://assets.en.oreilly.com/1/event/12/_The%20Lack%20of_%20Design%20Patterns%20in%20Python%20Presentation.pdf">The (lack of) design patterns in Python</a> 幻灯片里，作者 Joe Gregorio 展示了一些用 Java 和 C++ 需要专门描述的 designs，如果用 Python，则只需少数几行，以至于没必要总结成一种 pattern。</p>
<p>在我的这篇博文里，列了 Peter Novig 的一个幻灯片，其中说 23 种常见 design patterns 中的 16 种，在 Lisp 语言种都有语法可以支持。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1175&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/01/%e7%94%a8go%e8%af%ad%e8%a8%80%e5%ae%9e%e7%8e%b0design-patterns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Latent Dirichlet Allocation: The Gritty Details</title>
		<link>http://cxwangyi.wordpress.com/2012/01/01/latent-dirichlet-allocation-the-gritty-details/</link>
		<comments>http://cxwangyi.wordpress.com/2012/01/01/latent-dirichlet-allocation-the-gritty-details/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 03:54:40 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[Machine Learning]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1104</guid>
		<description><![CDATA[This is my learning note on the LDA model: Latent Dirichlet Allocation: The Gritty Details<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1104&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my learning note on the LDA model: <a href='http://cxwangyi.files.wordpress.com/2012/01/llt.pdf'>Latent Dirichlet Allocation: The Gritty Details</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1104&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2012/01/01/latent-dirichlet-allocation-the-gritty-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>A Learning Note on Go</title>
		<link>http://cxwangyi.wordpress.com/2011/12/13/a-learning-note-on-go/</link>
		<comments>http://cxwangyi.wordpress.com/2011/12/13/a-learning-note-on-go/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 10:09:07 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[programming language]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1101</guid>
		<description><![CDATA[This deck is my learning note about the Go programming language: Ready To Go? .<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1101&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This deck is my learning note about the Go programming language: <a href="https://docs.google.com/open?id=1MwhhrRYbdJpQEoAe7hTkDuYNIQYIENPQcnWppFQnpgrDPLfh_7YyKeFDJYQw"> Ready To Go? </a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1101&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2011/12/13/a-learning-note-on-go/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Back from the Other Side of GFW</title>
		<link>http://cxwangyi.wordpress.com/2011/12/11/get-back-from-the-other-side-of-gfw/</link>
		<comments>http://cxwangyi.wordpress.com/2011/12/11/get-back-from-the-other-side-of-gfw/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 08:44:20 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[Go]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1096</guid>
		<description><![CDATA[Once again, wordpress.com was blocked at where I live.  And I have been forbidden to update this pure technical blog for two months. Anyway, the good thing is I am back. To make this post technical, here follows a pretty PDF library written in Go: bitbucket.org/zombiezen/gopdf/pdf, and an ldd implementation in Go https://bitbucket.org/rminnich/ldd/overview.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1096&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Once again, wordpress.com was blocked at where I live.  And I have been forbidden to update this pure technical blog for two months. Anyway, the good thing is I am back.</p>
<p>To make this post technical, here follows a pretty PDF library written in Go: <a href="http://bitbucket.org/zombiezen/gopdf/pdf" target="_blank">bitbucket.org/zombiezen/gopdf/pdf</a>, and an ldd implementation in Go https://bitbucket.org/rminnich/ldd/overview.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1096/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1096&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2011/12/11/get-back-from-the-other-side-of-gfw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
		<item>
		<title>My Common Lisp Programming Environment</title>
		<link>http://cxwangyi.wordpress.com/2011/10/07/my-common-lisp-programming-environment/</link>
		<comments>http://cxwangyi.wordpress.com/2011/10/07/my-common-lisp-programming-environment/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 13:12:51 +0000</pubDate>
		<dc:creator>cxwangyi</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Lisp]]></category>

		<guid isPermaLink="false">http://cxwangyi.wordpress.com/?p=1094</guid>
		<description><![CDATA[Just for fun, I want to try Common Lisp. (I&#8217;ve been using Scheme when I was a student.) As an ancient language, CL has many implementations. Following Wikipedia, I chose SBCL, a descendent of CMUCL. It it just like Eclipse for Java, Emacs + SLIME is powerful for Common Lisp (or Scheme). Auto-complete and other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1094&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just for fun, I want to try Common Lisp. (I&#8217;ve been using Scheme when I was a student.)</p>
<p>As an ancient language, CL has many implementations. Following Wikipedia, I chose <a href="http://www.sbcl.org/">SBCL</a>, a descendent of CMUCL.</p>
<p>It it just like Eclipse for Java, Emacs + <a href="http://common-lisp.net/project/slime/">SLIME</a> is powerful for Common Lisp (or Scheme). Auto-complete and other stuff are so well supported.</p>
<p><a href="http://users-phys.au.dk/harder/dpans.html">dpans2texi</a> enables us to get help about the word under cursor by simply typing &#8216;C-h S&#8217;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cxwangyi.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cxwangyi.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cxwangyi.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cxwangyi.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cxwangyi.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cxwangyi.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cxwangyi.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cxwangyi.wordpress.com/1094/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cxwangyi.wordpress.com&amp;blog=11093547&amp;post=1094&amp;subd=cxwangyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cxwangyi.wordpress.com/2011/10/07/my-common-lisp-programming-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa326442e1afcccad56609d49b3c5a63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cxwangyi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
