MESSAGE
DATE | 2020-12-20 |
FROM | Mithun Bhattacharya
|
SUBJECT | Re: [Hangout - NYLXS] suggestions for perl as web development
|
From hangout-bounces-at-nylxs.com Sun Dec 20 16:56:31 2020 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id D1E10161132; Sun, 20 Dec 2020 16:56:30 -0500 (EST) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id CAFF5163FCF; Sun, 20 Dec 2020 16:55:58 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Sun, 20 Dec 2020 16:55:58 -0500 Resent-Message-ID: <20201220215558.GD30217-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mrbrklyn.com (Postfix) with ESMTP id A0436163FC0 for ; Sun, 20 Dec 2020 14:22:32 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 4F8B944E80 for ; Sun, 20 Dec 2020 19:22:31 +0000 (UTC) Received: (qmail 84040 invoked by uid 500); 20 Dec 2020 19:22:30 -0000 Mailing-List: contact modperl-help-at-perl.apache.org; run by ezmlm Precedence: bulk Delivered-To: mailing list modperl-at-perl.apache.org Received: (qmail 84025 invoked by uid 99); 20 Dec 2020 19:22:30 -0000 Received: from spamproc1-he-de.apache.org (HELO spamproc1-he-de.apache.org) (116.203.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2020 19:22:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-de.apache.org (ASF Mail Server at spamproc1-he-de.apache.org) with ESMTP id 586111FF3A1 for ; Sun, 20 Dec 2020 19:22:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-de.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamproc1-he-de.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-de.apache.org [116.203.196.100]) (amavisd-new, port 10024) with ESMTP id pLXgodLd7M8S for ; Sun, 20 Dec 2020 19:22:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::92a; helo=mail-ua1-x92a.google.com; envelope-from=mithnb-at-gmail.com; receiver= Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com [IPv6:2607:f8b0:4864:20::92a]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id D74267FBA7 for ; Sun, 20 Dec 2020 19:22:27 +0000 (UTC) Received: by mail-ua1-x92a.google.com with SMTP id p2so2662653uac.3 for ; Sun, 20 Dec 2020 11:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=OiIha8rtlBh6SZzs5CXF2J2CPzWtjd62kqy+A/Og/9Y=; b=HG/S6gUSoAFw/OJuNs5obYHsUtd3e8k79GHmesaNTbB2CCjliE3KzkXtF8xjP7epvY MH9WDcTiYzF6xCAyyQ4vaYUIMWfcSFaMCu4RhJEpXhdrVKZAa8kwAHK0mAmZpQuaUV7f EwHVwId/o4oJrF1Pn9QNOzDlvfoG2742pVZZRwlGM8DDsof2ajdisiQG9Ro9GDirbPNw PKkFqwlKEZQpgy9DzUmiHfUZUrZK3N5m+pg4gH1Wva4vqNUqdrzamujMGK9S6necX9G+ IVU/v5hcxBDk1q1YEqEVkceS6794tjO8pOZAzgiarWyEcl4YimVSJJf2pzwna2DbWkXE EajQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=OiIha8rtlBh6SZzs5CXF2J2CPzWtjd62kqy+A/Og/9Y=; b=BvE/tStWqzzrEsLslpcdutsCd8DxpOKVSmdayKObBNPFcBwK9GbekE6hmEmrvSVYYC zappp2OgTBvkY1lyEQeUimf4zPMQKQY07CgrQQ7El7YE5C3Pdc+quvO9+MI2y+NxaR3k 6JbfBoLErjvKR/ggJD1ak+Wh4MKM5iAqVdCHNJRfbJ+Ii0QsKYYV8RlCnW4brzpodmln SZP/YCcWZ92tI2GMPs3P+Ax/offZ6N0yopWGagRRwjDsesB5I7JyGRaVDv9bGYud+ePj Kk76y3KiWGfrcFy6vG8sT6cVb/uEyN82A45JPhPno0p9L2uBlMv4B3P3zgFftn5KcV6f gfWg== X-Gm-Message-State: AOAM533vNUo5tuRYkwoJ+0PC2KxPj/KgUQr+kjHfJ0o8r7F3xu9gzsgH NMnSqPFhU2Q++gNisvZYPDhZKjfx5R0cPF/2RxDOCJWRGfs= X-Google-Smtp-Source: ABdhPJwFUTGUdioHLuWYPujmA8ENuZg9Qre+hm4+Euuv61lvbBOGsdnwKeTJ18NFY9JMv/GiBdqHpfAXzn5UIKjMbcg= X-Received: by 2002:a9f:2d8c:: with SMTP id v12mr10395238uaj.28.1608492139864; Sun, 20 Dec 2020 11:22:19 -0800 (PST) MIME-Version: 1.0 References: <27779c3e56564c73a7fa49b49cc3f9f0-at-sanger.ac.uk> In-Reply-To: From: Mithun Bhattacharya Date: Sun, 20 Dec 2020 13:22:08 -0600 Message-ID: To: mod_perl list Subject: Re: [Hangout - NYLXS] suggestions for perl as web development language [EXT] X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1517805649==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============1517805649== Content-Type: multipart/alternative; boundary="0000000000009ee6f705b6ea426c"
--0000000000009ee6f705b6ea426c Content-Type: text/plain; charset="UTF-8"
Agreed prefork is recommended but what is the problem with that ?
On Sun, Dec 20, 2020 at 12:47 PM John Dunlap wrote:
> Our app segfaults at random of we use anything other than prefork. > > On Sun, Dec 20, 2020, 1:32 PM Mithun Bhattacharya > wrote: > >> I am confused - you like threads so Perl is bad ? I am very happy forking >> away and yes I work a lot with non thread safe DBI connections without any >> issues. >> >> On Sun, Dec 20, 2020 at 11:53 AM John Dunlap wrote: >> >>> In my opinion, no one should build new projects in Perl. The world is >>> increasingly trending towards parallelism and higher numbers of cpu cores >>> and Perl is poorly positioned to leverage these advancements. Many of >>> Perl's dependencies are not thread safe and mod_perl forces you to use >>> mpm_prefork. My organization has started moving away from Perl to Elixir >>> for these reasons. >>> >>> On Tue, Aug 4, 2020, 3:37 AM James Smith wrote: >>> >>>> Perl is a great solution for web development. >>>> >>>> Others will disagree but the best way I still believe is using mod_perl >>>> - but only if you use it's full power - and you probably need a special >>>> sort of mind set to use - but that can be said for any language. >>>> >>>> From experience - it may be fractionally slower than small "standalone" >>>> apps that dancer etc are good at, but it is (a) much, much more stable >>>> {dancer etc does not cope well with either large requests or lots of small >>>> requests}, and (b) if you have a large code base and/or a large number of >>>> services then it generally uses much less compute power than the others >>>> {can easily handle multiple services on a single apache instance} >>>> >>>> Where it really gains is the hooks into the apache process - being able >>>> to add functionality easily at any stage in the request process, from path >>>> translation, AAA stages, pre-processing, to post-processing and logging, >>>> and also to interact with other languages at any stage - e.g. can handle >>>> pre-processing & post-processing around a script written in another >>>> language (e.g. PHP, Java) or produced by another webserver integrated by >>>> mod_proxy. >>>> >>>> It isn't really a framework though like dancer or mojolicious and thus >>>> has its own advantages and disadvantages. >>>> >>>> You would to some extent have to roll your own code to produce the >>>> pages themselves although there are libraries out there to do lots of it. >>>> >>>> We have an in house library whose embryonic stages were written over 20 >>>> years ago - and has now been stable for around 12-13 years and works >>>> strong... >>>> >>>> James >>>> >>>> -----Original Message----- >>>> From: Wesley Peng >>>> Sent: 04 August 2020 06:43 >>>> To: modperl-at-perl.apache.org >>>> Subject: suggestions for perl as web development language [EXT] >>>> >>>> greetings, >>>> >>>> My team use all of perl, ruby, python for scripting stuff. >>>> perl is stronger for system admin tasks, and data analysis etc. >>>> But for web development, it seems to be not as popular as others. >>>> It has less selective frameworks, and even we can't get the right >>>> people to do the webdev job with perl. >>>> Do you think in today we will give up perl/modperl as web development >>>> language, and choose the alternatives instead? >>>> >>>> Thanks & Regards >>>> >>>> >>>> >>>> >>>> -- >>>> The Wellcome Sanger Institute is operated by Genome Research >>>> Limited, a charity registered in England with number 1021457 and a >>>> company registered in England with number 2742969, whose registered >>>> office is 215 Euston Road, London, NW1 2BE. >>> >>>
--0000000000009ee6f705b6ea426c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Agreed prefork is recommended but what is the problem with= that ?
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex">Our app segfaults at random = of we use anything other than prefork.
= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex">I am confused - you like threads so Perl is ba= d ? I am very happy forking away and yes I work a lot with non thread safe = DBI connections without any issues.
v dir=3D"ltr" class=3D"gmail_attr">On Sun, Dec 20, 2020 at 11:53 AM John Du= nlap <ank">John-at-lariat.co> wrote:
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)= ;padding-left:1ex">In my opinion, no one should build new= projects in Perl. The world is increasingly trending towards parallelism a= nd higher numbers of cpu cores and Perl is poorly positioned to leverage th= ese advancements. Many of Perl's dependencies are not thread safe and m= od_perl forces you to use mpm_prefork. My organization has started moving a= way from Perl to Elixir for these reasons.
te"> mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex">Perl is a great solution for web development.r>
Others will disagree but the best way I still believe is using mod_perl - b= ut only if you use it's full power - and you probably need a special so= rt of mind set to use - but that can be said for any language.
>From experience - it may be fractionally slower than small "standalone= " apps that dancer etc are good at, but it is (a) much, much more stab= le {dancer etc does not cope well with either large requests or lots of sma= ll requests}, and (b) if you have a large code base and/or a large number o= f services then it generally uses much less compute power than the others {= can easily handle multiple services on a single apache instance}
Where it really gains is the hooks into the apache process - being able to = add functionality easily at any stage in the request process, from path tra= nslation, AAA stages, pre-processing, to post-processing and logging, and a= lso to interact with other languages at any stage - e.g. can handle pre-pro= cessing & post-processing around a script written in another language (= e.g. PHP, Java) or produced by another webserver integrated by mod_proxy.r>
It isn't really a framework though like dancer or mojolicious and thus = has its own advantages and disadvantages.
You would to some extent have to roll your own code to produce the pages th= emselves although there are libraries out there to do lots of it.
We have an in house library whose embryonic stages were written over 20 yea= rs ago - and has now been stable for around 12-13 years and works strong...=
James
-----Original Message-----
From: Wesley Peng <oreferrer" target=3D"_blank">me-at-yonghua.org>
Sent: 04 August 2020 06:43
To: " target=3D"_blank">modperl-at-perl.apache.org
Subject: suggestions for perl as web development language [EXT]
greetings,
My team use all of perl, ruby, python for scripting stuff.
perl is stronger for system admin tasks, and data analysis etc.
But for web development, it seems to be not as popular as others.
It has less selective frameworks, and even we can't get the right peopl= e to do the webdev job with perl.
Do you think in today we will give up perl/modperl as web development langu= age, and choose the alternatives instead?
Thanks & Regards
--
=C2=A0The Wellcome Sanger Institute is operated by Genome Research
=C2=A0Limited, a charity registered in England with number 1021457 and a r> =C2=A0company registered in England with number 2742969, whose registered <= br> =C2=A0office is 215 Euston Road, London, NW1 2BE.
--0000000000009ee6f705b6ea426c--
--===============1517805649== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============1517805649==--
--===============1517805649== Content-Type: multipart/alternative; boundary="0000000000009ee6f705b6ea426c"
--0000000000009ee6f705b6ea426c Content-Type: text/plain; charset="UTF-8"
Agreed prefork is recommended but what is the problem with that ?
On Sun, Dec 20, 2020 at 12:47 PM John Dunlap wrote:
> Our app segfaults at random of we use anything other than prefork. > > On Sun, Dec 20, 2020, 1:32 PM Mithun Bhattacharya > wrote: > >> I am confused - you like threads so Perl is bad ? I am very happy forking >> away and yes I work a lot with non thread safe DBI connections without any >> issues. >> >> On Sun, Dec 20, 2020 at 11:53 AM John Dunlap wrote: >> >>> In my opinion, no one should build new projects in Perl. The world is >>> increasingly trending towards parallelism and higher numbers of cpu cores >>> and Perl is poorly positioned to leverage these advancements. Many of >>> Perl's dependencies are not thread safe and mod_perl forces you to use >>> mpm_prefork. My organization has started moving away from Perl to Elixir >>> for these reasons. >>> >>> On Tue, Aug 4, 2020, 3:37 AM James Smith wrote: >>> >>>> Perl is a great solution for web development. >>>> >>>> Others will disagree but the best way I still believe is using mod_perl >>>> - but only if you use it's full power - and you probably need a special >>>> sort of mind set to use - but that can be said for any language. >>>> >>>> From experience - it may be fractionally slower than small "standalone" >>>> apps that dancer etc are good at, but it is (a) much, much more stable >>>> {dancer etc does not cope well with either large requests or lots of small >>>> requests}, and (b) if you have a large code base and/or a large number of >>>> services then it generally uses much less compute power than the others >>>> {can easily handle multiple services on a single apache instance} >>>> >>>> Where it really gains is the hooks into the apache process - being able >>>> to add functionality easily at any stage in the request process, from path >>>> translation, AAA stages, pre-processing, to post-processing and logging, >>>> and also to interact with other languages at any stage - e.g. can handle >>>> pre-processing & post-processing around a script written in another >>>> language (e.g. PHP, Java) or produced by another webserver integrated by >>>> mod_proxy. >>>> >>>> It isn't really a framework though like dancer or mojolicious and thus >>>> has its own advantages and disadvantages. >>>> >>>> You would to some extent have to roll your own code to produce the >>>> pages themselves although there are libraries out there to do lots of it. >>>> >>>> We have an in house library whose embryonic stages were written over 20 >>>> years ago - and has now been stable for around 12-13 years and works >>>> strong... >>>> >>>> James >>>> >>>> -----Original Message----- >>>> From: Wesley Peng >>>> Sent: 04 August 2020 06:43 >>>> To: modperl-at-perl.apache.org >>>> Subject: suggestions for perl as web development language [EXT] >>>> >>>> greetings, >>>> >>>> My team use all of perl, ruby, python for scripting stuff. >>>> perl is stronger for system admin tasks, and data analysis etc. >>>> But for web development, it seems to be not as popular as others. >>>> It has less selective frameworks, and even we can't get the right >>>> people to do the webdev job with perl. >>>> Do you think in today we will give up perl/modperl as web development >>>> language, and choose the alternatives instead? >>>> >>>> Thanks & Regards >>>> >>>> >>>> >>>> >>>> -- >>>> The Wellcome Sanger Institute is operated by Genome Research >>>> Limited, a charity registered in England with number 1021457 and a >>>> company registered in England with number 2742969, whose registered >>>> office is 215 Euston Road, London, NW1 2BE. >>> >>>
--0000000000009ee6f705b6ea426c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Agreed prefork is recommended but what is the problem with= that ?
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex">Our app segfaults at random = of we use anything other than prefork.
= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex">I am confused - you like threads so Perl is ba= d ? I am very happy forking away and yes I work a lot with non thread safe = DBI connections without any issues.
v dir=3D"ltr" class=3D"gmail_attr">On Sun, Dec 20, 2020 at 11:53 AM John Du= nlap <ank">John-at-lariat.co> wrote:
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)= ;padding-left:1ex">In my opinion, no one should build new= projects in Perl. The world is increasingly trending towards parallelism a= nd higher numbers of cpu cores and Perl is poorly positioned to leverage th= ese advancements. Many of Perl's dependencies are not thread safe and m= od_perl forces you to use mpm_prefork. My organization has started moving a= way from Perl to Elixir for these reasons.
te"> mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex">Perl is a great solution for web development.r>
Others will disagree but the best way I still believe is using mod_perl - b= ut only if you use it's full power - and you probably need a special so= rt of mind set to use - but that can be said for any language.
>From experience - it may be fractionally slower than small "standalone= " apps that dancer etc are good at, but it is (a) much, much more stab= le {dancer etc does not cope well with either large requests or lots of sma= ll requests}, and (b) if you have a large code base and/or a large number o= f services then it generally uses much less compute power than the others {= can easily handle multiple services on a single apache instance}
Where it really gains is the hooks into the apache process - being able to = add functionality easily at any stage in the request process, from path tra= nslation, AAA stages, pre-processing, to post-processing and logging, and a= lso to interact with other languages at any stage - e.g. can handle pre-pro= cessing & post-processing around a script written in another language (= e.g. PHP, Java) or produced by another webserver integrated by mod_proxy.r>
It isn't really a framework though like dancer or mojolicious and thus = has its own advantages and disadvantages.
You would to some extent have to roll your own code to produce the pages th= emselves although there are libraries out there to do lots of it.
We have an in house library whose embryonic stages were written over 20 yea= rs ago - and has now been stable for around 12-13 years and works strong...=
James
-----Original Message-----
From: Wesley Peng <oreferrer" target=3D"_blank">me-at-yonghua.org>
Sent: 04 August 2020 06:43
To: " target=3D"_blank">modperl-at-perl.apache.org
Subject: suggestions for perl as web development language [EXT]
greetings,
My team use all of perl, ruby, python for scripting stuff.
perl is stronger for system admin tasks, and data analysis etc.
But for web development, it seems to be not as popular as others.
It has less selective frameworks, and even we can't get the right peopl= e to do the webdev job with perl.
Do you think in today we will give up perl/modperl as web development langu= age, and choose the alternatives instead?
Thanks & Regards
--
=C2=A0The Wellcome Sanger Institute is operated by Genome Research
=C2=A0Limited, a charity registered in England with number 1021457 and a r> =C2=A0company registered in England with number 2742969, whose registered <= br> =C2=A0office is 215 Euston Road, London, NW1 2BE.
--0000000000009ee6f705b6ea426c--
--===============1517805649== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============1517805649==--
|
|