Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Threading with a twist -- a panorama

by ikegami (Patriarch)
on Oct 03, 2017 at 07:55 UTC ( [id://1200583]=note: print w/replies, xml ) Need Help??


in reply to Re: Threading with a twist -- a panorama
in thread Threading with a twist

some point perl threading was oficially discouraged because was too easy make it the wrong way.

Bah, if you do it wrong --not reuse threads-- it's just going to be a bit slower. Yup, that's all there is to that warning. Just use a worker model and you're fine.

Someone threw a tantrum when they wrong that warning, and it's poisoning the community.

  • Comment on Re^2: Threading with a twist -- a panorama

Replies are listed 'Best First'.
Re^3: Threading with a twist -- a panorama
by Discipulus (Canon) on Oct 03, 2017 at 08:01 UTC
    > Whoever wrote that warning is toxic!

    toxic or not is still in official docs

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
      "... toxic...."

      This one, right?

      "The "interpreter-based threads" provided by Perl are not the fast, lightweight system for multitasking that one might expect or hope for. Threads are implemented in a way that make them easy to misuse. Few people know how to use them correctly or will be able to provide help."

      Ja, ja. The few enlightened and the many blockheads. Is multitasking only stuff for some self-appointed elite? No. This should be extinguished from the docs!

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

      Yes, we just covered that. The docs officially recommends against you using threads because you are too stupid to use threads. What kind of recommendation is that!? Of course threads are hard; that has nothing to do with Perl, and whatever alternative you're going to use instead isn't going to be any easier. And then you went and repeated this travesty.

      Threads is beautiful for many use cases. So are many parallel modules available on CPAN. Running parallel using Perl is amazing on today's multi-core processors, having 16 or more cores.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1200583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found