From: Eric W. <scr...@gm...> - 2007-02-13 05:10:40
|
# from Foo JH # on Monday 12 February 2007 07:39 pm: >> Agreed. Actually, at this point, just about any solution looks >> better to me than POE. After walking the POE road, I am backing out >> now and re-working the problem with a combination of things. I >> think POE is pretty neat, but to turn my code on its head and still >> not get true concurrency is really just not turning out to be worth >> it. If I want to mangle my architecure, I better get more for it. > >Is there really an alternative to POE for some real threading in > wxPerl? Perl isn't famous for it's threading libraries, but a good > GUI should freeze when it's busy doing something else... POE isn't "real threading", it's cooperative multitasking. It's also a few other things, but the simplest usage doesn't involve parallelization, only CMT. If your code can be structured as iterators, you don't need threading and it is much simpler to say $thing->work in idle than to try to deal with real asynchronous processing. --Eric -- perl -e 'srand; print join(" ",sort({rand() < 0.5} qw(sometimes it is important to be consistent)));' --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- |