<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Metaprogramming - To Use C/C++ with Dynamic Languages is Easier Than Pure C++</title>
<link>http://blog.roodo.com/rocksaying/archives/3528035.html/</link>
<description><![CDATA[Tags: metaprogramming template c++

日前在回應 jaceju 《PHP為什麼快》一文時，我提到PHP 之所以快，確實跟它骨子裡包的是 C 語言函數有關。Python, Ruby 也是。在某種程度上，這造成了C++的衰退。因為用C語言寫函數庫給 PHP/Python/Ruby使用，還比寫一個C++ template class 簡單。

]]>
	</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/rocksaying/archives/3528035-comment.xml" rel="self" type="application/rss+xml" />
<item>
	<title>回應：Metaprogramming - To Use C/C++ with Dynamic Languages is Easier Than Pure C++</title>
	<description><![CDATA[你誤會了我的意思，我並不是說兩邊要用一樣的語言，而是指組合的問題，就像我的想法也是大部分的時候用Ruby + C去堆疊，我所謂的選擇是指用C開發函式庫這邊的選項而已，比如說是換成Ruby + C++的開發組合．
用動態語言去組合其他現成已經表現的最好的函式庫．]]>
	</description>
	<link>http://blog.roodo.com/rocksaying/archives/3528035.html</link>
	<guid>http://blog.roodo.com/rocksaying/archives/3528035.html#comment-11045301</guid>
		<category>文章回應</category>
	<pubDate>Tue, 26 Jun 2007 06:40:22 +0800</pubDate>
</item>
<item>
	<title>回應：Metaprogramming - To Use C/C++ with Dynamic Languages is Easier Than Pure C++</title>
	<description><![CDATA[動態語言和靜態語言的區分，請看<a href="http://blog.roodo.com/rocksaying/archives/3530367.html">這篇</a>。

另外，在設計函數庫時的重要考量是開放封閉性。不管怎麼維護，使用方都不需要跟著變。更進一步說，基本上是不考量使用方採用什麼程式語言的。舉個例子來說， PHP 所用到的各種 C 函數庫的內容，這十年來也一直在更新。但我十年前寫的 PHP 程式碼，並不需要跟著 C 函數庫的更新而修改啊。

所以你現在想的解法，可能是因為你常常碰到函數庫設計不良的情形，所以你才會覺得兩邊要用一樣的語言比較好維護。但這種解法其實不會改善問題，設計不良的函數庫就是會常常牽累使用方跟著變動。]]>
	</description>
	<link>http://blog.roodo.com/rocksaying/archives/3528035.html</link>
	<guid>http://blog.roodo.com/rocksaying/archives/3528035.html#comment-11043709</guid>
		<category>文章回應</category>
	<pubDate>Mon, 25 Jun 2007 23:27:09 +0800</pubDate>
</item>
<item>
	<title>回應：Metaprogramming - To Use C/C++ with Dynamic Languages is Easier Than Pure C++</title>
	<description><![CDATA[真巧，我最近再想的議題也是跟石頭大哥說的這個有關．最近覺得搞清楚究竟什麼是Dynamic Language還蠻重要的，就去找了資料閱讀，順便推薦一下這篇講<A href="http://activestate.com/Company/NewsRoom/whitepapers_ADL.plex" target=_blank>Dynamic Language</a>的．

以我現在的知識，會考量自己對solution的解法組合．例如是以ruby為系統主開發框架，在很多地方使用C寫函式庫給ruby用，應該要考量一下，這個函式庫的變動是否頻繁，若將maintain列入考量，則考量是否要用C++ or java．]]>
	</description>
	<link>http://blog.roodo.com/rocksaying/archives/3528035.html</link>
	<guid>http://blog.roodo.com/rocksaying/archives/3528035.html#comment-11041051</guid>
		<category>文章回應</category>
	<pubDate>Mon, 25 Jun 2007 19:10:45 +0800</pubDate>
</item>
</channel>
</rss>