<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Jason Yu]]></title> 
<link>http://jasonyu.cn/index.php</link> 
<description><![CDATA[井长 ， Jason Yu , 分享我的发现，分享我的收藏，分享我的心情 !!_______________________]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Jason Yu]]></copyright>
<item>
<link>http://jasonyu.cn/post/221/</link>
<title><![CDATA[我是断掌，而且两个手都是断掌]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的心情]]></category>
<pubDate>Tue, 09 Mar 2010 08:56:20 +0000</pubDate> 
<guid>http://jasonyu.cn/post/221/</guid> 
<description>
<![CDATA[ 
	关于断掌：<br/><br/>感情线和事业线合而为一者为断掌纹，也叫通贯掌<br/>关于断掌，通常的说法是<br/><br/>1 身体健康，自我康复能力强，精力充沛，喜欢活动；<br/>2 真通贯掌纹(断掌纹)，表示，智商高，有魅力，懂管理；<br/><br/>3 有极强的自我意识，喜欢冒险与行动，是一个闲不住的人；<br/><br/>4 懂感情，对爱情的珍重.。但是脾气固执，自我膨胀意识，容易得罪人；<br/><br/>5 容易得泌尿 系统疾病。 
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/220/</link>
<title><![CDATA[如果你想靠互联网创业]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的心情]]></category>
<pubDate>Sat, 06 Mar 2010 04:41:21 +0000</pubDate> 
<guid>http://jasonyu.cn/post/220/</guid> 
<description>
<![CDATA[ 
	如果你是草根，如果你没有中国平安和清华同方的后台，如果你对中国互联网抱有强大信心，如果你想凭一己之力在互联网中闯出一片天下，切记！<br/><br/>论坛不能做，微博不能做，SNS不能做，新闻不能做，资讯不能做，IDC不能做，相册不能做，视频不能做，音乐不能做，搜索不能做，博客不能做，小说不能做。<br/><br/>以上诸如此类的站点可能会让你背负版权、涉黄、审查、颠覆、煽动……等等多种社会或者国家给你的罪名。<br/><br/>如果你仍然抱有希望，那么我推荐你做“购物类”站点。<br/><br/>然而，根据目前我国严打扫黄、文化审查、食品安全、互联网前景来看：成人用品不能做，外版书籍不能做，奶制品不能做，网络虚拟物品不能做。<br/><br/>好吧，如果你还有一丝希望的话，我也无言以对了。
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/218/</link>
<title><![CDATA[网站开发流程]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Sun, 28 Feb 2010 16:05:43 +0000</pubDate> 
<guid>http://jasonyu.cn/post/218/</guid> 
<description>
<![CDATA[ 
	简明开发流程是假设网站开发的每个步骤都可以一次设计开发成功时的网站开发流程。这种开发流程比较适合超小型的项目。<br/>............<br/>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/217/</link>
<title><![CDATA[30个很有用（又不为人知的）网络服务！]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 25 Feb 2010 01:59:33 +0000</pubDate> 
<guid>http://jasonyu.cn/post/217/</guid> 
<description>
<![CDATA[ 
	<a href="http://article.yeeyan.org/view/90729/90097" target="_blank">http://article.yeeyan.org/view/90729/90097</a><br/><a href="http://article.yeeyan.org/view/50206/90584" target="_blank">http://article.yeeyan.org/view/50206/90584</a><br/>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/216/</link>
<title><![CDATA[中国贫富标准线]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的发现]]></category>
<pubDate>Wed, 24 Feb 2010 05:21:07 +0000</pubDate> 
<guid>http://jasonyu.cn/post/216/</guid> 
<description>
<![CDATA[ 
	由总部在美国纽约的经济实验室集团(EconomicLba)颁布的中国贫富标准线：<br/><br/>　　超级大富豪：年收入在5000万以上<br/><br/>　　大富豪：年收入在1000--5000万<br/><br/>　　富豪：年收入在300--1000万之间<br/><br/>　　富人：年收入在100--300万之间<br/><br/>　　高产者：年收入在30--100万之间<br/><br/>　　中产者：年收入在15--30万之间<br/><br/>　　低 产 者：年收入在8--15万之间<br/><br/>　　穷 人：年收入在3--8万之间<br/><br/>　　很穷的人：年收入在1--3万之间<br/><br/>　　非常穷的穷人：年收入在5千--1万之间<br/><br/>　　穷得没衣服穿的人：年收入在1千--5千之间<br/><br/>　　穷得求生不得求死不能的穷人：年收入在100--1000元之间<br/><br/>　　穷得几乎要死的穷人：年收入在30--100元之间<br/><br/>　　死路一条的穷人：年收入在30元以下...... 
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/215/</link>
<title><![CDATA[新26步打造高访问量网站]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Tue, 23 Feb 2010 15:30:03 +0000</pubDate> 
<guid>http://jasonyu.cn/post/215/</guid> 
<description>
<![CDATA[ 
	正如我们已经知道的，为网站带来高访问量并不象表面上看那么简单，除了需投入脑力分析与探索外，其还是一项相当繁琐的工作。在1999年9月，Brett Tabke在Webmaster World论坛上发布了其“26 Steps to 15k a Day” （注：Webmaster World论坛在2002年曾经过改版，故目前该文的发布日期为2002年2月），这篇被许多Webmaster视作经典的文章的网上广泛流传。随时间的演变，其中的有些内容依然有效，如保持内容的不间断更新，而另一部分内容则渐渐显示出过时的迹象，如向搜索引擎注册。Shawn Campbell，一位SEO专家，撰写了一篇新的26步打造高访问量网站的文章。<br/><br/>....<br/>............<br/>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/212/</link>
<title><![CDATA[ 戴旭的主要观点]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的心情]]></category>
<pubDate>Sat, 20 Feb 2010 13:40:29 +0000</pubDate> 
<guid>http://jasonyu.cn/post/212/</guid> 
<description>
<![CDATA[ 
	一、中国需要正确的战略定位。历史上，中国没有成为世界大国的意识，失去地理大发现的机会后，已没有成为世界大国的可能。现实中，周边强国林立，注定中国只能成为地区大国。客观上，现在中国还没有奠定成为地区大国的国体基础。中国人应该从不切实际的大国梦中清醒：复兴任重道远。<br/><br/>......<br/>............<br/>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/211/</link>
<title><![CDATA[html 5]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[UED]]></category>
<pubDate>Sat, 20 Feb 2010 10:02:39 +0000</pubDate> 
<guid>http://jasonyu.cn/post/211/</guid> 
<description>
<![CDATA[ 
	http://jilion.com/sublime/video<br/><br/><br/><br/>这两天陆续把玩了几个HTML 5的应用，感觉HTML 5真的十分强大。<br/><br/>用HTML＋JS，或者再加上SVG技术，实现出来的网络应用丝毫不比Flash之类的要差。<br/><br/>比较喜剧的是，下文将介绍的一个HTML＋JS＋SVG应用，竟部分实现了Flash。<br/><br/>这个应用的名字是：Gordon，号称：An open source Flash runtime， 是一个用纯JS＋SVG技术实现的Flash运行环境。<br/><br/>刚开始听说时，我还不敢相信，认为只是用SVG矢量技术，实现类似于Flash的动画效果吧。没想到真的是解析SWF文件，然后按照标准的Flash动画模式播放出来。100％不需要Flash插件。见：http://paulirish.com/work/gordon/demos/<br/><br/>从下面我的截图也可以看到，真的是去播放SWF文件的。<br/><br/>这个应用还顺利地在iPhone等不支持Flash的平台上将SWF显示了出来，尽管并不是所有Flash都能放，但足以证明JS＋SVG的威力了吧。<br/><br/>现在我明白Apple为何不上Flash了，作为HTML 5制定者之一的Apple，心里明白HTML能做的事情。<br/><br/>另外一个则是今天别人发出来的一个基于HTML 5的在线画板。<br/><br/>看下图，这么炫丽，这真的是HTML的？不信访问下：http://mugtug.com/sketchpad/ 试试<br/><br/>这可是个全功能的画板，不仅能设置各种样式的笔刷，丰富的颜色（包括渐变），还能像本地应用一样，点击“保存”后输出一张PNG呢。<br/><br/>有了这样么强大的画板，我真不觉得那些本地的画板还有什么存在的必要了？<br/><br/>最后一个，则是展示HTML 5视频的一个强大的应用。叫：sublimeVideo，我用它放了视频以后，觉得YouTube的那个HTML 5测试版真不如它。<br/><br/>下图是正在播放中的样式，进度条可以拖，当鼠标不在时还会消失。反正跟之前Flash的那种完全一样。<br/><br/>更牛的是，还有一个全屏按钮，这个全屏可不是桌面全屏，而是浏览器全屏。<br/><br/>全屏以后，播放条变成了渐隐渐现的浮动工具栏，仍旧可以在需要时操作播放。体验的效果真是棒极了！<br/><br/>以上一切，仅仅是HTML＋CSS＋JS＋SVG，不需要任何插件或者其他相关私有版权技术。<br/><br/>现在你应该知道Google为什么要出一个Chrome OS了吧？<br/>Tags - <a href="http://jasonyu.cn/tags/html5/" rel="tag">html5</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/210/</link>
<title><![CDATA[Facebook Seattle Engineering Road Show ...]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的发现]]></category>
<pubDate>Wed, 10 Feb 2010 13:16:38 +0000</pubDate> 
<guid>http://jasonyu.cn/post/210/</guid> 
<description>
<![CDATA[ 
	Facebook Seattle Engineering Road Show: Mike Shroepfer on Engineering at Scale at Facebook<br/><br/>http://goo.gl/CA78<br/><br/>Facebook 每位工程师服务 120 万名用户 v.s. Google 1:190,000 v.s. Amazon 1:96,000 v.s. Microsoft 1:75,000
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/207/</link>
<title><![CDATA[Xdebug终极教程]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的发现]]></category>
<pubDate>Fri, 05 Feb 2010 03:15:25 +0000</pubDate> 
<guid>http://jasonyu.cn/post/207/</guid> 
<description>
<![CDATA[ 
	Xdebug安装<br/>详细介绍了什么是Xdebug，为什么要用Xdebug，以及如何安装Xdebug。<br/>Xdebug教程之Xdebug安装：<a href="http://www.phpq.net/tutorial/xdebug-install.html" target="_blank">http://www.phpq.net/tutorial/xdebug-install.html</a><br/><br/>Xdebug使用<br/>从一个最简单的出错信息开始，到复杂的调试，一步一步向你演示Xdebug的使用。<br/>Xdebug教程之Xdebug使用：<a href="http://www.phpq.net/tutorial/xdebug-use.html" target="_blank">http://www.phpq.net/tutorial/xdebug-use.html</a><br/><br/>Xdebug配置<br/>根据Xdebug的官方文档来详细解释Xdebug的参数配置。<br/>Xdebug教程之Xdebug配置：<a href="http://www.phpq.net/tutorial/xdebug-config.html" target="_blank">http://www.phpq.net/tutorial/xdebug-config.html</a><br/><br/>Xdebug调试<br/>列举如何通过Xdebug来获取PHP程序的一些调试信息。<br/>Xdebug教程之Xdebug调试：<a href="http://www.phpq.net/tutorial/xdebug-debug.html" target="_blank">http://www.phpq.net/tutorial/xdebug-debug.html</a><br/><br/>WinCacheGrind工具<br/>教你如何利用Xdebug配合WinCacheGrind工具来检测PHP代码的效率以及分析PHP代码。<br/>Xdebug教程之WinCacheGrind：<a href="http://www.phpq.net/tutorial/xdebug-wincachegrind.html" target="_blank">http://www.phpq.net/tutorial/xdebug-wincachegrind.html</a><br/><br/>Xdebug终极教程<br/>Xdebug终极教程分为五个部分，从Xdebug安装、Xdebug使用、Xdebug配置、Xdebug调试到WinCacheGrind工具的使用，完整而详细的一步一步揭秘Xdebug。<br/>Xdebug终极教程：<a href="http://www.phpq.net/tutorial/xdebug.html" target="_blank">http://www.phpq.net/tutorial/xdebug.html</a><br/>Tags - <a href="http://jasonyu.cn/tags/xdebug/" rel="tag">xdebug</a> , <a href="http://jasonyu.cn/tags/php/" rel="tag">php</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/206/</link>
<title><![CDATA[PHP之父评Facebook的HipHop]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Fri, 05 Feb 2010 02:01:11 +0000</pubDate> 
<guid>http://jasonyu.cn/post/206/</guid> 
<description>
<![CDATA[ 
	PHP的执行速度往往不是问题最大的地方，应该好好分析系统的各个方面，找到元凶。工具方面，他推荐用Yahoo的YSlow和Google的Page Speed分析前端的问题，再用Valgrind的Callgrind分析低层的后端性能，用XDebug分析用户空间PHP的性能。此外，他还顺带手指出了读写网前端的性能问题。<br/>............<br/><br/>Tags - <a href="http://jasonyu.cn/tags/phplerdorf/" rel="tag">phplerdorf</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/205/</link>
<title><![CDATA[开源全文索引技术收集一下]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的发现]]></category>
<pubDate>Thu, 04 Feb 2010 05:16:41 +0000</pubDate> 
<guid>http://jasonyu.cn/post/205/</guid> 
<description>
<![CDATA[ 
	Sphinx ,<br/>Xapian , <br/>Lemur, <br/><br/>Firtex:<br/><a href="http://www.docin.com/p-16408737.html" target="_blank">http://www.docin.com/p-16408737.html</a><br/><br/>Lucene<br/><br/><br/>分词：<br/><a href="http://ictclas.org/index.html" target="_blank">中科院分词系统ICTCLAS </a>， <a href="http://code.google.com/p/nlpbamboo/" target="_blank">bamboo</a><br/>Tags - <a href="http://jasonyu.cn/tags/firtex/" rel="tag">firtex</a> , <a href="http://jasonyu.cn/tags/xapian/" rel="tag">xapian</a> , <a href="http://jasonyu.cn/tags/sphinx/" rel="tag">sphinx</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/204/</link>
<title><![CDATA[Xapian 资料收集]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[search]]></category>
<pubDate>Thu, 04 Feb 2010 05:03:17 +0000</pubDate> 
<guid>http://jasonyu.cn/post/204/</guid> 
<description>
<![CDATA[ 
	<a href="http://www.kexiangsoft.com/news/findNews.html?newsId=20" target="_blank">http://www.kexiangsoft.com/news/findNews.html?newsId=20</a><br/><a href="http://www.oschina.net/docs/article/11203" target="_blank">http://www.oschina.net/docs/article/11203</a><br/>Tags - <a href="http://jasonyu.cn/tags/xapian/" rel="tag">xapian</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/203/</link>
<title><![CDATA[qgserver]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[C / C++]]></category>
<pubDate>Wed, 03 Feb 2010 14:25:34 +0000</pubDate> 
<guid>http://jasonyu.cn/post/203/</guid> 
<description>
<![CDATA[ 
	http://code.google.com/p/qgserver/<br/><br/>QGServerLib是一个C++实现的简单易用的Tcp服务器框架库，旨在简化服务器的构建过程。具有如下特点：<br/><br/>1, 以模块化的处理池为基本构建元素，能够方便的实现安全稳定的服务架构。<br/><br/>2，事件触发，多线程事件监听，任务化读写访问，解决单线程监听及数据读写带来的性能瓶颈，连接不受线程数限制。<br/><br/>3，写队列，并行读写逻辑，支持服务器数据推送（Push）。<br/><br/>4，数据传送协议，避免数据传送错误，封装数据流。<br/><br/>5，类远过程调用。<br/><br/>6，提供相配套的ActionScript脚本客户端。能够方便的实现网页实时通讯，解决传统网页通讯的消息轮询问题。 <br/>Tags - <a href="http://jasonyu.cn/tags/libevent/" rel="tag">libevent</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/202/</link>
<title><![CDATA[ epoll-参考资料]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[C / C++]]></category>
<pubDate>Wed, 03 Feb 2010 14:22:37 +0000</pubDate> 
<guid>http://jasonyu.cn/post/202/</guid> 
<description>
<![CDATA[ 
	<br/>http://zhoulifa.bokee.com/5351040.html<br/>http://lse.sourceforge.net/epoll/index.html <br/>http://www.hudong.com/wiki/epoll<br/><br/>Epoll是Linux内核为处理大批量句柄而作了改进的poll。要使用epoll只需要这三个系统调用：epoll_create(2)， epoll_ctl(2)， epoll_wait(2)。它是在2.5.44内核中被引进的(epoll(4) is a new API introduced in Linux kernel 2.5.44)，在2.6内核中得到广泛应用，例如LightHttpd。<br/>............<br/><br/>Tags - <a href="http://jasonyu.cn/tags/epoll/" rel="tag">epoll</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/201/</link>
<title><![CDATA[C libevent]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[C / C++]]></category>
<pubDate>Wed, 03 Feb 2010 14:07:16 +0000</pubDate> 
<guid>http://jasonyu.cn/post/201/</guid> 
<description>
<![CDATA[ 
	http://blog.gslin.info/2005/11/network-programming-using-libevent-i.html<br/>http://zh.wikipedia.org/wiki/Libevent<br/>............<br/><br/>Tags - <a href="http://jasonyu.cn/tags/c/" rel="tag">c</a> , <a href="http://jasonyu.cn/tags/libevent/" rel="tag">libevent</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/200/</link>
<title><![CDATA[TIOBE编程社区指数2010年1月]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的发现]]></category>
<pubDate>Wed, 03 Feb 2010 02:22:00 +0000</pubDate> 
<guid>http://jasonyu.cn/post/200/</guid> 
<description>
<![CDATA[ 
	<a href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html" target="_blank">http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html</a><br/><br/><a href="http://jasonyu.cn/attachment.php?fid=22" target="_blank"><img src="http://jasonyu.cn/attachment.php?fid=22" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/198/</link>
<title><![CDATA[戴旭：中国能否摆脱下一场战争劫难！]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的心情]]></category>
<pubDate>Fri, 29 Jan 2010 01:11:10 +0000</pubDate> 
<guid>http://jasonyu.cn/post/198/</guid> 
<description>
<![CDATA[ 
	http://blog.people.com.cn/blog/c9/s48177,w1262618868842967<br/><br/>战争总是跟着财富走，这是世界经济规律，就像食肉动物跟着食草动物走一样。<br/><br/>整个世界，其实就是一个非洲草原上的动物世界。看国际政治焦点随着财富的转移，其实就是食肉动物，围着食草动物迁徙。那些豹子狮子，一般都是跟着羊群、牛群走的。那是他们的食物来源。现在，最大的羊群和牛群在中国。所以，美国、欧洲、日本这些一百多年来的老列强，人类社会的食肉动物，所以都围中国的旁边。<br/><br/>从短期说，美国现在包围中国，就是要把资本赶到美国去。资本是什么？是一只鸟。鸟的胆最小，哪里安全去哪里。这也是本拉登的高明之处，把美国世贸大楼打掉了，把资本之鸟驱散了，其中很多跑到中国。现在，美国拿着“枪”来了，想把这些鸟再吓走，再飞到美国去。吓不走就打走。这就是美国在中国周边制造危机，在中国国内制造动乱的全部目的。<br/>............<br/>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/197/</link>
<title><![CDATA[一个很古老的问题： 堆 栈 的区别]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[C / C++]]></category>
<pubDate>Thu, 28 Jan 2010 16:00:47 +0000</pubDate> 
<guid>http://jasonyu.cn/post/197/</guid> 
<description>
<![CDATA[ 
	堆（Heap）栈（Stack）<br/><br/>1、内存分配方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：一般由程序员分配释放， 若程序员不释放，程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事，分配方式是类似于链表。可能用到的关键字如下：new、malloc、delete、free等等。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：由编译器(Compiler)自动分配释放，存放函数的参数值，局部变量的值等。其操作方式类似于数据结构中的栈。<br/><br/>2、申请方式方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：需要程序员自己申请，并指明大小。在c中malloc函数如p1 = (char *)malloc(10)；在C++中用new运算符，但是注意p1、p2本身是在栈中的。因为他们还是可以认为是局部变量。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：由系统自动分配。 例如，声明在函数中一个局部变量 int b；系统自动在栈中为b开辟空间。<br/><br/>3、系统响应方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：操作系统有一个记录空闲内存地址的链表，当系统收到程序的申请时，会遍历该链表，寻找第一个空间大于所申请空间的堆结点，然后将该结点从空闲结点链表中删除，并将该结点的空间分配给程序，另外，对于大多数系统，会在这块内存空间中的首地址处记录本次分配的大小，这样代码中的delete语句才能正确的释放本内存空间。另外由于找到的堆结点的大小不一定正好等于申请的大小，系统会自动的将多余的那部分重新放入空闲链表中。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：只要栈的剩余空间大于所申请空间，系统将为程序提供内存，否则将报异常提示栈溢出。<br/><br/>4、大小限制方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：是向高地址扩展的数据结构，是不连续的内存区域。这是由于系统是用链表来存储的空闲内存地址的，自然是不连续的，而链表的遍历方向是由低地址向高地址。堆的大小受限于计算机系统中有效的虚拟内存。由此可见，堆获得的空间比较灵活，也比较大。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：在Windows下, 栈是向低地址扩展的数据结构，是一块连续的内存的区域。这句话的意思是栈顶的地址和栈的最大容量是系统预先规定好的，在WINDOWS下，栈的大小是固定的（是一个编译时就确定的常数），如果申请的空间超过栈的剩余空间时，将提示overflow。因此，能从栈获得的空间较小。<br/><br/>5、效率方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：是由new分配的内存，一般速度比较慢，而且容易产生内存碎片，不过用起来最方便，另外，在WINDOWS下，最好的方式是用 VirtualAlloc分配内存，他不是在堆，也不是在栈是直接在进程的地址空间中保留一快内存，虽然用起来最不方便。但是速度快，也最灵活。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：由系统自动分配，速度较快。但程序员是无法控制的。<br/><br/>6、存放内容方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：一般是在堆的头部用一个字节存放堆的大小。堆中的具体内容有程序员安排。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：在函数调用时第一个进栈的是主函数中后的下一条指令（函数调用语句的下一条可执行语句）的地址然后是函数的各个参数，在大多数的C编译器中，参数是由右往左入栈，然后是函数中的局部变量。 注意: 静态变量是不入栈的。当本次函数调用结束后，局部变量先出栈，然后是参数，最后栈顶指针指向最开始存的地址，也就是主函数中的下一条指令，程序由该点继续运行。<br/><br/>7、存取效率方面：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;堆：char *s1 = "Hellow Word"；是在编译时就确定的；<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;栈：char s1[] = "Hellow Word"； 是在运行时赋值的；用数组比用指针速度要快一些，因为指针在底层汇编中需要用edx寄存器中转一下，而数组在栈上直接读取。<br/>Tags - <a href="http://jasonyu.cn/tags/%25E6%2595%25B0%25E6%258D%25AE%25E7%25BB%2593%25E6%259E%2584/" rel="tag">数据结构</a> , <a href="http://jasonyu.cn/tags/datastructure/" rel="tag">datastructure</a>
]]>
</description>
</item><item>
<link>http://jasonyu.cn/post/195/</link>
<title><![CDATA[绝不做随波逐流者]]></title> 
<author>jason &lt;yu@jasonyu.cn&gt;</author>
<category><![CDATA[我的心情]]></category>
<pubDate>Mon, 11 Jan 2010 15:04:24 +0000</pubDate> 
<guid>http://jasonyu.cn/post/195/</guid> 
<description>
<![CDATA[ 
	坚持自己认准的方向，绝不做随波逐流者。那个方向可能还不是很清晰，但你知道，它就在你心底。<br/><br/>Eric S. Raymond 说：尽量不要去想一种语言或操作系统最多能做多少事情，而是尽量去想这种语言或操作系统最少能做的事情——不是带着假想行动，而是从零开始。<br/><br/>p.s. 说这话的大师应该是达到了 "万物皆空"，的高度了。仰望一下。<br/><br/>引用 <a href="http://blog.codingnow.com" target="_blank"><u>云风</u></a> 的一些话 ：<br/><br/>“为什么说语言重要也不重要，算法和数据结构重要也不重要。对要解决的问题的领域的理解很重要（即明白真正要做什么）。理解了，我们才可以用面向对象，用模式去套问题；可理解了，我们又不真的需要这些繁杂的抽象。”<br/><br/>"...处理这种复杂数据结构，动态语言相对于 C/C++ 这样的静态语言，有比较明显的优势。但是在性能方面又有明显的劣势。权衡之下，我们需要做的是采用 C 去实现底层细节，而动态语言做高层管理，并控制粒度，减少控制频率。"<br/><br/><br/>前天，听公司一 “大牛”讲一门动态语言(PHP)的框架（zend framework），尽管自己非常排斥把灵活自由的PHP往框架上面绑，但由于公司一个项目用到了这个ZF，所以还是请他介绍了一下，其实对于玩PHP有一些年月的人都不会对ZF很陌生，，，<br/><br/>实在是不想再纠结这个让人懊恼的问题上了。实在是无聊。<br/><br/>那个“讲座”对我来说基本没有什么收获，不过其间有几句关于“主流”，“赌注”的话，倒是引起了我的一些思考，反而更加深了自己的坚持。
]]>
</description>
</item>
</channel>
</rss>