develooper Front page | perl.perl5.porters | Postings from March 2014

Re: RFC: add discouragement warning to perl threads documentation

Thread Previous
James E Keenan
March 1, 2014 21:05
Re: RFC: add discouragement warning to perl threads documentation
Message ID:
On 3/1/14 3:46 PM, Christian Walde wrote:
> Earlier in the week there was discussion in #p5p about amending thread
> documentation to discourage people from using them unless they really
> had to. This is said patch, which adds a concise explanation of what's
> wrong with threads, as well as a suggestion for alternative solution, to
> the documentation of and the threads tutorial.
> Feel free to bikeshed or merge. :)

I think the patch is well written.  I myself have never needed to use 
threads in Perl, nor, to the best of my knowledge, have threads been 
used in any production use at places where I've been employed.  In 
addition, the recognition that "very few people are likely to get 
threads right" is something I've heard from very skilled Perl 
programmers -- as well as from skilled programmers in other languages 
about threads in *their* languages.

Perhaps outside of the core documentation someone could write a blog 
post providing examples of where CPAN modules provide better 
alternatives to threads.

Thank you very much.
Jim Keenan

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About