develooper Front page | perl.perl5.porters | Postings from November 2021

=?utf-8?Q?Core=E2=80=99s_purpose_WAS_Re=3A_Pre-RFC=3A_support_htt?==?utf-8?Q?ps_out-of-the-box?=

Thread Next
From:
Felipe Gasper
Date:
November 25, 2021 15:48
Subject:
=?utf-8?Q?Core=E2=80=99s_purpose_WAS_Re=3A_Pre-RFC=3A_support_htt?==?utf-8?Q?ps_out-of-the-box?=
Message ID:
8D166D1D-7B9E-4690-B142-3D451749D0C0@felipegasper.com

> On Nov 23, 2021, at 15:46, Dan Book <grinnz@gmail.com> wrote:
> 
> On Tue, Nov 23, 2021 at 1:19 PM Ovid via perl5-porters <perl5-porters@perl.org> wrote:
> 
> One of the issue that I think Perl has is that we our presence is almost entirely in sysadmin tasks and web development. I can't comment on the former, but the latter also requires a few more modules to make Perl more natively useful. If nothing else, a fast JSON tool would be welcome (not the JSON::PP that is in core. That's very slow)
> 
> Also, some proper native readline support would be nice for a useful debugger. I assume Term::ReadLine::Gnu isn't bundled because of the licence, but my debugger is always broken when I first use it.
> 
> Not sure what either of these have to do with supporting HTTPS out of the box. Perhaps suitable for other threads?

The broader question that this thread raises, IMO, is: would it be better for Perl if core’s purpose were broader than merely “bootstrapping” Perl?

A while back it was explained to me that the point of having HTTP::Tiny, for example, in core is *not* to provide a “default”, go-to HTTP client, but to allow Perl _itself_ to, e.g., install modules from CPAN.

I respectfully submit that this is counterproductive. Perl would be more inviting if its standard library (i.e., core modules) included tools that facilitate work that Perl does well. Perl is great for text processing … so it should be as easy as possible to do things with it like read & write CSV or JSON. Perl is great for writing network applications … so it should be easy to make TLS connections with it. And so on.

The standard libraries of other modern languages offer a useful potential point of comparison. For example, Ruby distributes net/imap. Are there CPAN modules that can serve in that role for Perl?

As I glance down Ruby’s standard library—which seems decidedly more conservative than Python’s—the following stand out to me as “lacunae” in Perl’s core list:

- CSV

- date/time

- getoptlong

- IMAP

- OpenSSL/TLS

- PTY

- readline

- non-blocking DNS resolver

- shell escaping

- URI escaping

- YAML

- zlib/deflate

-FG
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