|
Many thanks to Tristan Morris for creating a beautiful illustrated hardcover print edition of the site |
|||||||||||||
![]()
|
(Siamo spiacenti, questa pagina non è ancora stato tradotto in italiano.) From “The Courtship of Eku and Mugen”: 1 There was a time, as ancient logs recall, So high was your availability, And when your subnet’s firewall arose, Discreetly you’d a server-socket bind My every last connection is refused, Oh! Where can you have gone, beloved peer? ‘Til then i iterate from one to n Thus furtively alone at night I’ll SYN I’ll seek thee there with netcat minus-z! Qi’s CommentaryMugen liked to code in poetry. Presumably, the seventh stanza is meant to convey an algorithm like this:
SocketAddress sockAddr = new InetSocketAddress(host, port);
for (int i = 1; i <= N_TRIES; i++) {
try {
client.connect(sockAddr, TIMEOUT_MILLIS);
return client;
}
catch (Exception e) {
log.warning("weep, wail");
Thread.sleep(INTERVAL_MILLIS);
}
}
throw new IOException("give up");
It is theorized that his ten-thousand-stanza epic, The Dromedary, describes a Perl-to-OCaml converter written in C++. No scholar can stay sane long enough to be certain. Un estratto da The Codeless Code, di Qi (qi@thecodelesscode.com). Distribuito sotto l' Creative Commons Attribution-NonCommercial 3.0 Unported License. |
||||||||||||