No description, website, or topics provided.
Perl Perl6
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.pod
anyevent-finger.pl
anyevent-fingerd.pl
cpanfile
mojo-mirror.pl
p6-mirror-promises.p6
p6-mirror-race.p6
p6-mirror-serial.p6
p6-mojo-mirror.p6
thread-mirror.pl
thread-sleep.pl

README.pod

ASYNC Perl 5 vs Perl 6 Grudge Match

Here are some examples for DC.pm wherein we will attempt to compare and contrast the various asynchronous APIs in Perl 5 and Perl 6.

The intent is to keep the examples as simple and easy to understand for the purposes of discussion and ease of translation.

EXAMPLES

anyevent-finger.pl

Demonstrates low-level non-blocking sockets in a single thread using the archaic, but simple "finger" protocol.

anyevent-fingerd.pl

Demonstrates higher level non-blocking finger server. Mainly just designed to test "anyevent-finger.pl"

mojo-mirror.pl

Demonstrates high level HTTP non-blocking in a single thread using Mojolicious.

thread-mirror.pl

Threaded version of mojo-mirror.pl that uses threads instead of Mojolicious. Can also be run using forks if you set the FORKS environment variable to a true vale.

thread-sleep.pl

Stupid simple threads example that demonstrates preeemtive async.

CAVEATS

The term "Grudge Match" in the title of this document is there entirely for marketing reasons. We reason that people are more likely to click on a link if it looks contraversial, but the intent of this project is to enlighten, not to divide us.

AUTHORS

Graham Ollis <plicease@cpan.org>