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.
Demonstrates low-level non-blocking sockets in a single thread using the archaic, but simple "finger" protocol.
Demonstrates higher level non-blocking finger server. Mainly just designed to test "anyevent-finger.pl"
Demonstrates high level HTTP non-blocking in a single thread using Mojolicious.
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.
Stupid simple threads example that demonstrates preeemtive async.
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.
- Graham Ollis <plicease@cpan.org>