On Nov 3, 2007, at 9:39 p, David Davis wrote:
It looks like a competition.
He includes lines of code as a metric, which should tell you
something...
Well, anyway.
As Pierre, a commenter, suggested; you could write a script that
runs Perl piped with xargs and the -n and -P options. No POE
needed, and it would be faster!
Well that's part of the issue, yes we have highly optimized single
threaded stuff but Tim Bray wants to take advantage of a 16 CPU
machine from sun. Distributed programming being the new paradigm.
David Davis
• Software Engineer
• [ http://xant.us/ ]
On Nov 3, 2007, at 8:55, Kevin Scaldeferri <[EMAIL PROTECTED]>
wrote:
Okay, I gotta wonder, how come no one's submitted a Wide Finder
(http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results)
implementation in POE (or any Perl for that matter)?
I spent a few minutes thinking about this, but the problem I had
was that I didn't know of a way to easily parallelize over
multiple cores that wasn't going to require me to write a ton of
code. Are there some POE modules that I couldn't find that do
something like forking a number of worker processes, then allowing
me to send events between them?
Actually I've been using it to test some of my distributed code that
I've been working on in Moose and POE. I have a 130 line application
that wraps POE with Moose to distribute the processing across
multiple POE::Wheel::Run workers but the performance isn't high
enough for me to really want to trot it out to the world at large yet
(~40s for ~4 million lines of input).
-Chris