Dennis Dang

The Ministry of Soft Clocks

At six past marmalade, the east clock laid an egg. The porter weighed it on the postal scales: eleven minutes, shell included. This put us over the morning allowance. Somebody would have to give back a Tuesday.

I went down to the Ministry with the egg in my coat. The queue was short but extremely wide. At the counter, a small brass woman asked whether I had brought the hour in its original directory. Here is the actual machinery from our generator’s main.roc. The Ministry uses a similar arrangement, except its filenames smell faintly of dill.

entries = source.list!()?
var $posts = []
for entry in entries {
    filename = entry.filename()?.to_str()?
    if filename.ends_with(".md") {
        slug = filename.drop_suffix(".md")
        file = source.join(filename)
        raw = file.read_utf8!() ? |err| ReadFailed(filename, err)
        post = Post.parse(slug, raw) ? |err| InvalidPost(filename, err)
        $posts = $posts.append(post)
    }
}

A receipt for one Thursday

Behind the counter stood two pigeonholes. One was marked February. The other was also marked February, in case the first became embarrassed. The brass woman slid my egg into the second hole and listened. A little bell rang somewhere inside my left shoe.

Please retain this shoe until the conclusion of your appointment. A sock is insufficient proof of ringing.

The receipt came out warm. It said that February could hold an extra day, subject to the following clause from Post.roc:

leap = y % 400 == 0 or (y % 4 == 0 and y % 100 != 0)

“Excellent,” I said. “Which day?” She turned the receipt over. There was a drawing of a pear on the back. In municipal matters, that settles it.

The outgoing tray

By then the egg had hatched into a thin sheaf of pages. Each had a proper title and a little hole where the afternoon had been. This last bit of main.roc puts each page at its own address:

for post in ordered {
    html = Blog.render(router, ordered, "/${post.slug}")?
    dest.join("${post.slug}.html").write_utf8!(html)?
}

I walked home in one shoe. At the corner, a boy was selling yesterday by the slice. I bought the bit with my other shoe in it. For once, everything fit.