Re: The value of threads (was Re: META.yml how to declare the need for threaded perl?)

2008-11-01 Thread Aristotle Pagaltzis
* Chris Dolan <[EMAIL PROTECTED]> [2008-11-01 22:25]: > On Nov 1, 2008, at 10:39 AM, Dr.Ruud wrote: >> I think it was Randal Schwartz who said something like: If the >> answer involves threads, then the question was wrong. > > Most likely that quote comes from a year when multi-processor > systems

Re: The value of threads

2008-11-01 Thread David Golden
On Sat, Nov 1, 2008 at 9:39 PM, Eric Wilhelm <[EMAIL PROTECTED]> wrote: >>Even if suboptimal, Perl threads would seem likely to >>behave more consistently across platforms. > > So the performance on Linux should be slowed down in order to deliver > the same experience as on VMS? For which "target

Re: The value of threads

2008-11-01 Thread Eric Wilhelm
# from David Golden # on Saturday 01 November 2008 18:28: >Even if suboptimal, Perl threads would seem likely to >behave more consistently across platforms. So the performance on Linux should be slowed down in order to deliver the same experience as on VMS? For which "target audience" is that

Re: The value of threads

2008-11-01 Thread David Golden
On Sat, Nov 1, 2008 at 8:31 PM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > C > :) Given that the original post was about Padre -- a multi-platform IDE for Perl -- forks may not be the best choice due to platform differences. Even if suboptimal, Perl threads would seem likely to behave more consistently

Re: The value of threads

2008-11-01 Thread Dr.Ruud
Chris Dolan schreef: > Dr.Ruud: >> Gabor Szabo: >>> I guess we can implement everything with fork but I think - >>> maybe because of my lack of experience in threads - that it will >>> be better to use them than to fork. >> >> I think it was Randal Schwartz who said something like: If the answer >

The value of threads (was Re: META.yml how to declare the need for threaded perl?)

2008-11-01 Thread Chris Dolan
On Nov 1, 2008, at 10:39 AM, Dr.Ruud wrote: Gabor Szabo schreef: I guess we can implement everything with fork but I think - maybe because of my lack of experience in threads - that it will be better to use them than to fork. I think it was Randal Schwartz who said something like: If the ans

Re: META.yml how to declare the need for threaded perl?

2008-11-01 Thread David Golden
On Sat, Nov 1, 2008 at 12:50 PM, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > Anyway, I wouldn't use threads for this, but that doesn't make threading > an unreasonable approach. I would use POE. +1 I assume that POE::Loop::Wx should integrate into Padre pretty easily, yes? -- David

Re: META.yml how to declare the need for threaded perl?

2008-11-01 Thread Jonathan Rockway
* On Sat, Nov 01 2008, Dr.Ruud wrote: > Gabor Szabo schreef: > >> I guess we can implement everything with fork but I think - >> maybe because of my lack of experience in threads - that it will >> be better to use them than to fork. > > I think it was Randal Schwartz who said something like: If the

Re: META.yml how to declare the need for threaded perl?

2008-11-01 Thread Chris Dolan
On Nov 1, 2008, at 4:14 AM, Nicholas Clark wrote: On Fri, Oct 31, 2008 at 06:16:01PM -0500, Chris Dolan wrote: Just add a dependency on thread::shared or one of the other threading libraries. Push your problem up the chain! No, not threads::shared $ /home/nclark/Sandpit/588ish/bin/perl -Mth

Re: META.yml how to declare the need for threaded perl?

2008-11-01 Thread Dr.Ruud
Gabor Szabo schreef: > I guess we can implement everything with fork but I think - > maybe because of my lack of experience in threads - that it will > be better to use them than to fork. I think it was Randal Schwartz who said something like: If the answer involves threads, then the question was

Re: META.yml how to declare the need for threaded perl?

2008-11-01 Thread Ben Morrow
Quoth [EMAIL PROTECTED] (Nicholas Clark): > On Fri, Oct 31, 2008 at 06:16:01PM -0500, Chris Dolan wrote: > > Just add a dependency on thread::shared or one of the other threading > > libraries. Push your problem up the chain! > > No, not threads::shared > > $ /home/nclark/Sandpit/588ish/bin/p

Re: META.yml how to declare the need for threaded perl?

2008-11-01 Thread Nicholas Clark
On Fri, Oct 31, 2008 at 06:16:01PM -0500, Chris Dolan wrote: > Just add a dependency on thread::shared or one of the other threading > libraries. Push your problem up the chain! No, not threads::shared $ /home/nclark/Sandpit/588ish/bin/perl -Mthreads::shared -e0 $ threads looks a better idea: