blog的另類思考


手傷了幾日,現在做事比較慢,可能慢才乎合生命的原則。在此再次感謝各方好友關心,我基本上可以工作了,但未能說完全正常,只是有點痛勝過完全不能動,休息太多工作會累積,走不了的。

延續之前的話題,關於寂然世界
Continue reading...

羊羹、豆乾與鐵蛋(病後小劇場)


算是痊癒,謝謝大家。偏方無數,最後都是楚食剩的藥治住了。雖然現在個肚好漲(可能我又有左啦),但總算是回復了行動力了。希望可以取回被沒收的羊羹、豆乾與鐵蛋。

發病期間,與太子幫鬥智鬥力無數,包括由楚家少爺

Henry Spencer on C's volatile

Henry Spencer sent me a reply to my previous entry on volatile that corrects some of my (mis)information, and I amputting it here with his permission:

I fear you've miscalled this one. ANSI C pre-dates aggressive memorycontrollers in consumer CPUs , but it had extensive participation bypeople in the supercomputer world as well, and such things were commonthere long ago.

The key issue you've missed is that ANSI C doesn't really acknowledge theexistence of a "compiler".


20060105網摘 – 新年快樂!

(休息數天,然後忙碌數天,所以網摘也遲來了)

Blog 事


對話

男人看過女孩子為他製作的記事本後,

紅著眼的對女孩子說:「你知唔知你好傻呀?」

女孩子雙手緊握熱水杯去溫暖手心,

堅定的看著男人,

微微一笑說:「我知呀。」

The scars of my NPTL experience

It's only recently that I've realized how jumpy about certain thingsmy NPTL (the 'native Posix thread library' for Linux) experience stillmakes me.

NPTL was the new, improved Linux threading library, supplantingthe old and less efficient 'pthreads' library. To get its goodperformance it needed some kernel support, kernel support thatwas only added in the Linux 2.5 development kernels (and thenin Linux 2.6 when 2.5 turned into 2.6).

However,


手在復原中


小立斷橋風滿袖

終於連上blogger,簡直皇恩浩蕩得不知打什麼好。

1.
想了很久該怎麼說,這樣簡短吧, anson 是可敬的。 一月二日皇后還 有放映會啊,會放八樓的片和 anson 的短片,還有男士恩物粉紅 a mv 。一月四則是劇場。

2. 快樂的晚上。皇后的詩唱

The problem with C's volatile qualifier

The real problem with C's volatile (well, one of them) is that volatile only affects the compiler; it doesn't normally make thecompiler do anything to affect the CPU's interaction with memory. Onmodern hardware, merely affecting the compiler is not enough; theCPU/memory interface has its own optimizations, which must be dealt withtoo for shared-state code to work right.

From the perspective of history this makes a lot of sense, becauseANSI C mostly predates CPU memory controllers


獨手

二十年前
我因為打足球打斷了左手的手腕骨
做了一個月獨臂少年
今日
我因為打電腦過多
右手手腕勞損
手指不能動
不能用力
不能做任何動作
再度成為獨臂人
勁唔方便
二十年來
我做任何事都靠這隻右手
今日連刷牙都冇力
褲鍊都冇力拉