Skip to content

plicease/dc.pm-async

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages