On Wed, Mar 3, 2010 at 8:28 AM, Bob McConnell <r...@cbord.com> wrote:
[snip]
>
> However, if the application is this complex, is Perl really the best
> language to use? It would not be my first choice.
>


That is a very strange statement to make on a Perl beginners list, not
least because it's complete bosh.

What better language to simple network control structures? This is
exactly the sort of task that Perl accomplishes better and more easily
than any other language out there, and why it's "the glue of the
internet."


In particular, this sounds like a job for RPC::Lite.

The issue, though, isn't just how processes communicate with each
other--any RPC/IPC implementation can handle that for you
transparently; I suggested RPC::Lite but Moose::Async or something
similar is fine, too, although probably overkill--it's also how to
launch the program on the remote machine. Here you really have two
options: you can set up listener daemons on the worker machines that
wait fro input from the console and launch workers, or you can use
something like Net::SSH2 to login to the worker machine and launch a
new process each time.

Also, be careful with your terminology. You'll get better help, here,
if you ask the right questions.

Network/socket communication and IPC are two very different things.
Most operating systems (in fact all but one that I'm aware of; the
possible exception being Plan9) localize processes to the running
kernel. Processes (whether perl programs or otherwise) can't fork
children on other machines or deliver SIGTERM across the network, and
asking about threads and remote machines in the same breath is likely
to yield strange responses and/or confused silence.

HTH,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to