develooper Front page | perl.perl5.porters | Postings from April 2018

Re: [perl #133021] Removed the word "discouraged" from threads'documentation

Thread Previous | Thread Next
From:
Christian Walde
Date:
April 10, 2018 15:39
Subject:
Re: [perl #133021] Removed the word "discouraged" from threads'documentation
Message ID:
op.zg9hr1ykydyjqt@digitizedsqueak.mshome.net
On Tue, 10 Apr 2018 15:59:53 +0200, Dave Mitchell <davem@iabyn.com> wrote:

> why using perl and CPAN is dangerous, but using (e.g.) java and a DB and
> XML library is safe? What is the crucial difference between the two that
> flips it from being safe to unsafe?

Very short version: Java has a much more bigger userbase, money invested, and things like a database module or an xml parser under java will be written under the assumption of being required to work with threads, as Java uses threads like skittles.

Also in Java both of these are in the standard library, not 3rd party.


Additionally, to give you a more concrete example of a simple Perl threads fuck-up:

In 2011 i attempted to write a simple parallel http downloader, using LWP and some thread queue manager module. It worked 100% fine under windows, no matter what i did. On Fedora it seemed to work fine, but crashed randomly when attempting to handle too many downloads.

This would be completely inconceivable in Java.

-- 
With regards,
Christian Walde

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