in reply to Re: The State of Parallel Computing in perl 2007?
in thread The State of Parallel Computing in perl 2007?

I saw in the POE docs that there were references to needing a serializer. I didn't get far enough with it to see that you can fork. Does it support load balancing and things? I've got the POE::WHeel::Run docs up presently, and I'm seeing that it forks a child process, but I thought it was for things like spawning 'cat' or 'ls' or whatever...

That probably isn't what I have in mind, but I do still wonder if POE has some kind of built in shared memory multi-processor and/or multi-computer features. It seems like it should.

-Paul

  • Comment on Re^2: The State of Parallel Computing in perl 2007?

Replies are listed 'Best First'.
Re^3: The State of Parallel Computing in perl 2007?
by toma (Vicar) on Jan 22, 2007 at 16:52 UTC
    I use POE::Wheel::Run to spawn four Perl programs.
    1. A web server built from HTTP::Daemon. This provides a browser-based GUI. This web server also spawns programs that can get content from other web servers.
    2. A live link to a large CAD program.
    3. A live link to a large circuit simulator.
    4. A terminal that provides user messages and a command line, for development and for cases where the GUI doesn't have deep enough functionality.
    I hadn't thought about this program as parallel processing until I saw your question. I have only recently begun running the application on multi-cpu machines.

    The program uses message passing through several mechanisms:

    • STDIN, STDOUT, and STDERR of child processes.
    • Dropping files. The CAD package uses this for input.
    • Web calls. I recently switched from LWP to curl because of deployment difficulties. I had trouble getting my installer to automate the configuration of LWP.
    • Environment variables are used to send parameters into child programs. I had trouble with platform differences in the handling of command-line arguments. This is possibly due to differences in quoting and escaping.
    It should work perfectly the first time! - toma