Turning synchronous channels asynchronous

(This is likely obvious, but since I keep working it out again in myhead I'm going to write it down once and for all.)

Suppose that you have a CSP -likeenvironment, with lightweight processes and synchronous communicationchannels with no buffering. Synchronous channels are simple but veryinconvenient for many real-world things, where you need to haveasynchronous channels. Fortunately, you can turn synchronous channelsinto acceptable asynchronous ones as follows.

To send an asynchronous message, you spawn a new process and


Some thoughts on battery backup for RAID controller cards

In a comment on my entry on software RAID's advantages I was asked what I thought about sofware RAID'slack of battery backup units, as you can get on better RAID controllercards. To answer that, I'm going to start by asking my traditionalquestion: how does having a BBU RAID card improve your systemperformance?

A RAID card with a battery backup unit effectively turns synchronousdisk writes into asynchronous ones, by buffering such writes in itsbattery-backed RAM and immediately telling the host OS


充滿”Sweded”味的Chrome Features影片

有看過Michel Gondry拍的Be Kind Rewind嗎?多得香港有個爛到暈的譯名「低清老翻王」,難怪此好片在港上畫時,落得無聲無色的下場。

話說片中有條怪橋,就是鼓勵大家善用手頭上僅有的資源,不要計較用最低能的技術最Cheap的手法,但求開心

Continue reading...

姊姊的守護者


我沒有看過小說,看電影時無法進行比較,但可能這樣也有好處,因為心無掛慮,對於這個題材自然感到很新鮮。

姊姊患了絕症,父母為了救她而用試管嬰兒技術生了妹妹,妹妹出生的任務就是為姊姊供應各種DNA能完美配合的器

我和酒的關係


我和酒的關係有點複雜。我不會直截了當承認自己好酒,因為有時候即使美酒當前,我也完全沒有飲的意欲,而且我會間中一段長時間滴酒不沾;可是,我的確經常飲酒,也不否認很享受對酒當歌、共君一醉一陶然的樂趣 。

我第

2009年的除夕派對—陳泗記的中環路邊燒烤

雖然老爸煮得一手好菜,但老媽子的廚藝有時卻可以幾嚇人,因此,我自少在家中反而養成了「好又一餐唔好又一餐」的習慣。

但正所謂傻人有傻福,即使是一個毫不嘴刁的人,但卻自問甚有口福,人家吃不到的珍饈百味,久不

Continue reading...

Go interfaces are not my sort of interfaces

I've written about interfaces before, orat least what I mean by the term (and how it relates to inheritance ). To summarize, 'interfaces' are a way offormally expressing 'is-a' relationships; when you say that a class or atype implements the String interface, you mean that it is a string.

One of the things that jogged my mind about the whole issue was Go , which has things that it calls 'interfaces' (okay,technically they're called interface


得到了以後又如何

世上絕少人能做到無欲無求,像顏回那樣一簞食、一瓢飲已能自得其樂。大多數人都有一些非常渴望得到的東西,而且往往是越難得到,便越渴望得厲害。不同的人渴望得到的東西可以大異其趣:對你,那是一套昂貴的頂級音響

Proper disclosure, or how not to be a comment spammer

Shortly after I wrote my first ipsCA entry , Igot a comment on the entry recommending a specific other SSL vendor.At first this didn't strike me as unusual; it was the kind of helpfulnote that might be left by one of my readers (or just someone who sawmy blog entry on Planet Sysadmin ). ButI have a hair trigger with spam, one that not infrequently makes meunreasonably suspicious, so I ran the poster's IP address through areverse DNS lookup just to make myself


呢部netbook有幾叻?Nokia Booklet 3G開箱文

一直只聞樓梯響,在踏入2010年前兩星期,我終於收到有關方面的確認消息,Nokia Booklet 3G「極有可能」會在今年首季在香港推出。

託上託上託,第一時間託同事借來了這部尚未在港發售的新品。除夕前我更在辦公室的午飯時間

Continue reading...