The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.514 - 2014-06-05

  • BUG FIXES
    • Fixed typo in MCE::Step POD (RT#95250) (Florian Schlich).
    • Updated MCE::Util's get_ncpu function for AIX (Dana Jacobsen).
    • Do not send a KILL signal after receiving a SIGPIPE.
    • Fixed issue with Makefile.PL on defining the minimum Perl version.
    • Use Scalar::Util (looks_like_number) for validation logic. The regex previously were insufficient for large numbers containing scientific notation. This impacted the sequence option in MCE.
  • ENHANCEMENTS
    • The mce-sandbox demo has been released on Github demonstrating Perl + MCE + Inline::C. The theme is Prime Numbers. This journey which began 2 years ago has been completed. There is also the mce-sort exercise demonstrating Perl + MCE + External C.
      • https://github.com/marioroy/mce-sandbox (is thread-safe) https://github.com/marioroy/mce-sort (not thread-safe)
    • A hard decision had to made for MCE, particularly Perl under Windows excluding Cygwin. MCE will now load the threads module automatically for Windows only. Folks may specify use_threads => 0 if threads is not desired.
      • The reason for this is from seeing Math::Prime::Util crashing once workers exit. The same is true without MCE and forking a child process. Threads does not exhibit this behavior. It is a hard problem to solve. Why not default to threads for Windows since forking is emulated.

Documentation

Documentation describing the core API for Many-core Engine
A list of examples demonstrating Many-core Engine

Modules

MCE
Many-core Engine for Perl. Provides parallel processing capabilities.
Parallel flow model for building creative applications
Parallel grep model similar to the native grep function
Parallel loop model for building creative loops
Parallel map model similar to the native map function
Hybrid queues (normal including priority) for Many-core Engine
Temporary directory creation/cleanup & signal handling
Parallel step model for building creative steps
Parallel stream model for chaining multiple maps and greps
Exports functions mapped directly to MCE methods
Public and private utility functions for Many-core Engine

Provides

in lib/MCE/Core/Input/Generator.pm
in lib/MCE/Core/Input/Handle.pm
in lib/MCE/Core/Input/Iterator.pm
in lib/MCE/Core/Input/Request.pm
in lib/MCE/Core/Input/Sequence.pm
in lib/MCE/Core/Manager.pm
in lib/MCE/Core/Validation.pm
in lib/MCE/Core/Worker.pm