Skip to content

Instantly share code, notes, and snippets.

@timbunce
timbunce / smzp_sinopsys.md
Created August 1, 2012 14:22 — forked from melo/smzp_sinopsys.md
mzp synopsis

mpz synopsis

mpz is a ZeroMQ-based pipe.

It will read stuff from STDIN and output to ZeroMQ sockets, and read from ZeroMQ sockets and send to STDOUT.

Messages are terminated by newlines, or pairs of newlines in paragraph mode.

Supports 1-to-1, 1-to-N and N-to-1. There is a special mode to start as

@timbunce
timbunce / gist:591718
Created September 22, 2010 14:00
perl 6 method wrapping via a role
role R {
method m() { say 42 }
}
class C does R {
}
my $x = C.new;
log-calls($x, R);
role R {
method m() { say 42 }
}
class C does R {
}
my $x = C.new;
log-calls($x, R);