Fansite
- 「國際影業」,這一年你做了什麼? Quote: 很多大型叮噹支持者的網站還是繼續關閉
HK
- 學歷歧視論:讀書黎做乜? Quote: 社會上是存在學歷歧視的,但不是用在職位上。例如你一開始就不願與某人做朋友,因為他無學位,所以認定
In yesterday's entry , I mentioned that Iwas surprised by the relative performances of my three reimplementationsof the .find() string method.
The src[i:].startswith(sub) version was the slowest, and why isobvious in hindsight: it's summed up clearly in the first bit, where wecreate a big new string ( src[i:] ) on every iteration of the loop. Nowonder it's slow; creating big strings is slow in general, because

As a followup to my entry on the two sorts of languages , I decided to actually tryimplementing the string .find() method in Python to see how muchslower it is. The Python version uses the brute force C style approach,roughly:
for i in range(0, len(src)-len(sub)+1): if src[i:i+len(sub)] == sub: return ireturn -1
I actually did three versions, each with a different
Fansite
HK
搞文學的人最怕重複,重複是因為被扭曲和無回應。扣帽子和假溝通的麻煩在於,它令所有的東西重複。不少人search「spin doctor,spin doctor」到此,大概很難接受世上真有人這樣姓屈,光天化日把人家沒說過的話塞到人家口裡。 spin doctor, spin doctor
My current personal version of Firefox is more than a little bit behindthe times, so I've been looking at upgrading to Firefox 3 (I compilemy own version with various hacks, and it's easiest to build from thebleeding edge CVS sources). As a result, I spent part of today tryingvarious of my essential extensions to see which ofthem still work.
Here's the current state of affairs:
(圖片來自 HKStories
這一陣子都沒有看別的漫畫,只買現在以潮珍版重出的《超霸世紀》,不是特別好看,只是一份情意結。這本書是逢星期三出版的,也算蠻搶手,因為書報攤對這些「經典書」,不會入很大量貨,通常都只會有四至