in reply to Re^4: Thread::Pool::Simple || !
in thread Thread::Pool::Simple || !

Ask yourself this.

Would you accept a text editor that worked well, but occasionally died throwing away unsaved changes; provided it restarted itself and loaded up the last saved copy?

Because that is exactly analogous to what you are looking to do with your threads. And are suggesting you might put on CPAN.

With respect to tracking down your transient error(s); show me the code. I bet I can track it down.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^6: Thread::Pool::Simple || !
by learnedbyerror (Monk) on Jul 18, 2012 at 20:49 UTC

    All problems are not the same. No, I would not accept that as a text editor. However, if I am looking at something that generates aggregate statistics and missing a single point and even a hundred of them and not affecting the precision of the result by more than by 0.0001% and the overall accuracy of the algorithm is +/- 0.1%, then yes. It is perfectly acceptable.

    Help I appreciate. A personal indictment on what I care about - not so much. In this forum, posters ask for critique on perl, nothing more, nothing less. Critical critique in an answer to a question is fine. Extraneous critique or judgement not germaine to the question is superfluous - uneccesary and needless, and may call into question that credibility of the person speaking. Given that it is election season here in the U.S., there are plenty of superfluous statements, observations and critiques available. And as your signature line so aptly states: "In the absence of evidence, opinion is indistinguishable from prejudice."

    lbe

      All problems are not the same. No, I would not accept that as a text editor. However, if I am looking at something ...

      And that is the gist of my argument against a generic thread pool module. Each thread pool application has a different set of requirements, making it impossible to serve them all -- or even a substantial subset -- with a single, simple API.

      And by the time you have extended the API to cater for sufficient variations for it to be considered a general purpose module, the API has become so complex that using it is as much, if not more effort, than hand-rolling your own pool. Which at the simplest level can be done in around 10 lines of code.

      that generates aggregate statistics and missing a single point and even a hundred of them and not affecting the precision of the result by more than by 0.0001% and the overall accuracy of the algorithm is +/- 0.1%, then yes. It is perfectly acceptable.

      Acceptable for your application; but how many others?

      And, wouldn't it also be acceptable to your application if it didn't miss any points?

      Wouldn't fixing whatever it is causing the loss of those points not only be acceptable to your application, but also mean that it might make your module useful for other applications with more critical requirements?

      A personal indictment on what I care about ... Extraneous critique or judgement not germaine ...

      Okay. I was trying to bring this back around to the code, but you seem to want to get into the meta discussion. So be it.

      What "Extraneous critique or judgement"?

      Please quote. Please explain why you have taken the quote as questioning your credibility; rather than as technical critique of the ideas you expressed in your post?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?