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

Re: RFC: add discouragement warning to perl threads documentation

Thread Previous
From:
James E Keenan
Date:
March 1, 2014 21:05
Subject:
Re: RFC: add discouragement warning to perl threads documentation
Message ID:
20140301210550.31589.qmail@lists-nntp.develooper.com
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 threads.pm 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About