Python
共 28 篇文章。
漏啊,漏啊
今天给某个维护OpenLDAP相关port的老大提了几个patch,等他消息了。
另外就是Python自己也会有泄漏,而且居然是gc部分自己出了许多tuple,这年头:(
用 iPython 做shell
学习一种语言最快的方法就是逼自己干什么事情的时候都用它——有一个利用了Python来实现的shell——iPython,可以用来代替默认的shell。
Bug in Python re implementation?
Python includes a Regular Expression implementation, called re. However, I thought that I have hit a bug.
The following regular expression is apparantly wrong, but Python spend much CPU time to give a mismatch:
_mailcheck = re.compile("^(\w|.){3,25}$")
_mailcheck.match(“foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo”)
I think the “.” would override anything (including “\w”), but this does not happen…
开始琢磨Twisted
最近几天开始琢磨Twisted了。打算用Twisted来做一些东西,不过不知道它的线程是否能使用阻塞I/O……
New P2P framework
Today I have some ideas about P2P application framework. Would check if there is any available ones and whether they can fulfil my ideas. Maybe I would start a project to implement these ideas in Python and/or C++.
How to enable Python2.4 for WinCVS?
Because sometimes I use Windows for daily desktop (the company’s IM system can’t run on FreeBSD and that’s the only reason why I can’t use FreeBSD as desktop at company) I have adopted WinCVS as development tool.
Unfortunatelly, when I have started WinCVS, it complained that it can’t find python (the version I have installed is 2.4). After searching the disk I figured out that the file exists in windows/system32/, not python24/dll. Corrected this setting and WinCVS appears to work correctly.
关于OpenSource
很多时候我告诫自己不要去想关于OpenSource模式的问题,不过最近还是琢磨了琢磨。很久以前一个前辈跟我讨论过这个问题:
「盈利模式是一个很大的问题。现在Linux的发展模式意味着许多真正核心的开发人员并不能从中获益,这意味着一旦他们开始为生计担忧,项目很可能就会停滞不前;在国外通常会有公司雇用这些开发人员,让他们能够将项目进行下去,但在国内这种情况还非常少。」