CategoriesAlbums
|
Alpha Launch of Parallel::Supervisor Perl Module
Update (Aug 23): Fixed a test for Win32 and clarified documentation. Updated the URL below to point to a local copy of the latest revision. From the readme: The current release can be downloaded here:Parallel-Supervisor version 0.01 ================================ This module was written to provide a simple way to manage tasks run in parallel using any of a number of techniques, such as fork(), or any of the other Parallel modules. It simplifies managing a collection of processes and provides a uni-directional pipe to allow the child to communicate with the parent. It is not intended or replace more sophisticated solutions such as POE, Proc::Launcher, or Supervisor. Your Parallel::Supervisor object essentially holds a collection of structs representing the children, and provides methods for setup, access, and teardown of child tasks. Please see the perldoc for more details. Parallel-Supervisor-0.03.tar.gz Also available by doing: svn co https://secure.26a.net/svn/projects-kevin/perl/lib/Parallel-Supervisor/ If you would like to help, please download and install - or at least run `make test` and let me know if any tests fail on your platform. (If so, please provide details!) Any feedback is welcome. I am still unsure whether the module is named properly - it is certainly very different from the Supervisor module, so it might better be named Parallel::Juggler or Proc::Manager or something. Thoughts?
Trackback URI: http://www.26a.net/index.php/trackback/17
Leave a CommentRecent Posts
|
# to variety ....
Wow, thanks for all these tips - time to give the module another pass!
I was hesitant to return a ref to ensure the records are only modified by the methods provided and not by the calling code, which could cause unpredictable behaviour depending on how complicated the calling code is - for example, where their names come from and whether they are recycled. Correct me if that's wrong, but it just seems safer to me, at the expense of having to copy a few bytes here and there.
Thanks again for a really helpful review!