2009年4月27日星期一
A friend said I should write some tech notes and send them to magasins.
2 possible topics :
1. Using "trial" to test your C code.
2. Some tips of using GLIB.
2009年3月27日星期五
why do we need Interface in twisted
(18:32:04) idnar: it also acts as documentation
(18:32:47) habnabit: The adaptation part is neat too.
(18:33:24) idnar: and there's zope.interface.verify
(18:33:40) idnar: (although you should probably only use that in unit tests and the like)
(18:34:01) buster` [n=buster@lostmind.org] 进入了聊天室。
(18:34:33) wiqd 离开了聊天室(quit: Remote closed the connection)。
(18:34:41) wiqd [n=wiqd@osiris.codelounge.org] 进入了聊天室。
(18:35:13) spiv: ablmf: twisted does use adapters occasionally.
(18:35:32) spiv: ablmf: but mainly it serves as extremely clear documentation about the contract an object promises to meet
(18:36:20) spiv: ablmf: http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.html is extremely helpful and clear compared to what you'd get by looking at the generated API docs of the implementations.
(18:36:50) pr100 [n=user@cpc2-cmbg4-0-0-cust688.cmbg.cable.ntl.com] 进入了聊天室。
--
look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand
2009年3月19日星期四
两个技术决定
--
look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand
2008年12月15日星期一
关于IP-SAN的瓶颈
Jack的意见是:太困难,不可能。
王的意见是:磁盘IO才是瓶颈,存储板卡的CPU不会有这个问题。
--
而如何让自己的内心产生力量,在于自己而不在于别人。等到一跃而过,回头去看的时候,一个人因此获得了宝贵的经验和自信,下一次就可以面对更宽更深的壕沟。关键在于有多少意愿去面对这种犹豫时刻,因为大部分情况下,我们可以选择绕路的方法而回避这种艰难的选择。
2008年12月1日星期一
Questions I asked days ago.
> 8. If i use an separate physical server to deploy the database, could I
> gain some performance improvement? Or the cost of communication between the
> db and the server could hurt the total performance?
>
could go either way. With the effects of Python's GIL I'd expect a
multi-core server with database and game server on one box would be fine
until you hit a scaling limit and your server is eating a whole core. At
that point you need to develop a distributed application model and probably
use multiple servers. If you hit that before you're running 200 users
recheck your business model, if you hit it before 20 users recheck your
architecture.
2008年11月25日星期二
Re: [TopLanguage] Re: C为什么不加入类似STL的库
Changsheng Jiang
2008/11/25 一首诗 <newptcai@gmail.com>:
> 也不全是吧,分两种情况:
>
> 1. 不喜欢学习新东西的人。这种占绝大多数
> 2. 有能力学习,但是更喜欢自己掌握一切的人
>
> 对我来说,也许完成一个功能,我自己写一个和我学习某种工具花费的时间是接近的,
> 但我仍然更喜欢去学习一件工具的用法和原理。
>
> 因为我学会了一种东西,就意味着我多了一种解决问题的技能,我有可能去做到一些别人做不到的事情。而且,有的想法如果你从来没有见过,其实是比较难从自
> 身中产生出这样的想法。虽然可能有些自卑,但是我觉得,这个世界上,比我聪明,比我更懂如何coding的人,是常见的。
>
> 也许这更多的是个性使然吧。
>
> On 11月25日, 下午2时38分, Linker <linker.m....@gmail.com> wrote:
>> 不愿意用别人写的库,其实是不愿意主动学习新东西的懒人.
>> Regards,
>> Linker Lin
>> linker.m....@gmail.com
>>
>> 2008/11/25 一首诗 <newpt...@gmail.com>
>>
>> > 这些都不错的,加上你至少不需要每次去找个hash表的实现了。
>>
>> > 但让我痛苦的是,我遇到很多同事,几乎每一个,都不喜欢用第三方的库。
>>
>> > 理由:
>>
>> > 1. 太复杂的库,出了问题很难修改
>> > 2. 太简单的库,"我花5天时间写出来,不信会比较他们写的差"
>>
>> > 也许他们说的是有道理的,是我太偏执了......
>>
>> > On Nov 25, 12:57 pm, pi1ot <pilot...@gmail.com> wrote:
>> > > 很多啊,gnome的glib,apache的apr
>>
>> > > On Nov 25, 12:02 pm, "Rockins Chen" <ybc2...@gmail.com> wrote:
>>
>> > 是的,我知道很多人要讲C不支持模板,不支持泛型。但是我真的真的已经厌倦了每次需要一些简单数据结构的时候都要自己实现的痛苦了。用C来做一个类似STL那样-的库可能通用性不如C++里面的好,但是只要能减轻我的工作量,我很乐意使用这样的东西。另外一个方面来讲,在Linux内核中也有像doublelist,q-ueue,stack这样的实现,通用性都很不错。我现在就希望C标准库中也能有这么一套东西,有vector,map,stack,queue,list等等-。大家有什么看法,欢迎拍砖。
>>
>> > > > --
>> > > > BRs,
>> > > > Rockins Chen
>> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> > > > UESTC, Chengdu, Sichuan, Chinahttp://
>> > rockins.cn/http://rockins.cublog.cn
>> > > > ybc2...@gmail.com
Re: C为什么不加入类似STL的库
1. 不喜欢学习新东西的人。这种占绝大多数
2. 有能力学习,但是更喜欢自己掌握一切的人
对我来说,也许完成一个功能,我自己写一个和我学习某种工具花费的时间是接近的,
但我仍然更喜欢去学习一件工具的用法和原理。
因为我学会了一种东西,就意味着我多了一种解决问题的技能,我有可能去做到一些别人做不到的事情。而且,有的想法如果你从来没有见过,其实是比较难从自
身中产生出这样的想法。虽然可能有些自卑,但是我觉得,这个世界上,比我聪明,比我更懂如何coding的人,是常见的。
也许这更多的是个性使然吧。
On 11月25日, 下午2时38分, Linker <linker.m....@gmail.com> wrote:
> 不愿意用别人写的库,其实是不愿意主动学习新东西的懒人.
> Regards,
> Linker Lin
> linker.m....@gmail.com
>
> 2008/11/25 一首诗 <newpt...@gmail.com>
>
> > 这些都不错的,加上你至少不需要每次去找个hash表的实现了。
>
> > 但让我痛苦的是,我遇到很多同事,几乎每一个,都不喜欢用第三方的库。
>
> > 理由:
>
> > 1. 太复杂的库,出了问题很难修改
> > 2. 太简单的库,"我花5天时间写出来,不信会比较他们写的差"
>
> > 也许他们说的是有道理的,是我太偏执了......
>
> > On Nov 25, 12:57 pm, pi1ot <pilot...@gmail.com> wrote:
> > > 很多啊,gnome的glib,apache的apr
>
> > > On Nov 25, 12:02 pm, "Rockins Chen" <ybc2...@gmail.com> wrote:
>
> > 是的,我知道很多人要讲C不支持模板,不支持泛型。但是我真的真的已经厌倦了每次需要一些简单数据结构的时候都要自己实现的痛苦了。用C来做一个类似STL那样-的库可能通用性不如C++里面的好,但是只要能减轻我的工作量,我很乐意使用这样的东西。另外一个方面来讲,在Linux内核中也有像doublelist,q-ueue,stack这样的实现,通用性都很不错。我现在就希望C标准库中也能有这么一套东西,有vector,map,stack,queue,list等等-。大家有什么看法,欢迎拍砖。
>
> > > > --
> > > > BRs,
> > > > Rockins Chen
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > UESTC, Chengdu, Sichuan, Chinahttp://
> > rockins.cn/http://rockins.cublog.cn
> > > > ybc2...@gmail.com
