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

Re: RFC: add discouragement warning to perl threads documentation

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
March 2, 2014 13:54
Subject:
Re: RFC: add discouragement warning to perl threads documentation
Message ID:
CAHhgV8hgV6S8sbuB5XTfu4pB6ZPHOuupKD-F9GhD=VbZQEjf5Q@mail.gmail.com
On Sun, Mar 2, 2014 at 7:09 AM, Aristotle Pagaltzis <pagaltzis@gmx.de>wrote:

> * Christian Walde <walde.christian@gmail.com> [2014-03-01 21:50]:
> > Feel free to bikeshed or merge. :)
>
> After clarification on IRC about the contentious item I believe you
> wanted to say something like this:
>
>   * complex data structures are hard to share properly
>
>     Variables shared between threads needs to be flagged, but there is
>     no way to mark complex data structures as shared at once. So it is
>     easy to fail to share them completely, which results in hard-to-find
>     bugs and exceptions.
>
> (Did I understand correctly that “bugs and exceptions” is what you tried
> to say by “crashes”?)
>

Yes, that sounds much better.

But shouldn't that give "Invalid value for shared scalar" exceptions
anyway? Christian, can you give a short example of this issue?

Leon

Thread Previous | Thread Next


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