Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: 2021 is the year to drop support for Perl < 5.12?

by hippo (Chancellor)
on Dec 11, 2020 at 11:27 UTC ( #11124992=note: print w/replies, xml ) Need Help??


in reply to 2021 is the year to drop support for Perl < 5.12?

It's all very subjective, of course. Of the four bonuses you've mentioned for use v5.12, the only one I would care about is the defined-or which I do find useful.

For 5.14, the only one there which I would care about is s///r but I use that so infrequently that it hardly matters. The big win for me with 5.14 is m//a which is a godsend when having to deal with the moving target that is the built-in character classes.

I don't really code for 5.6 these days beyond a couple of long-established modules where there is no reason to break it. The defined-or is the thing which most stops me from supporting 5.8 in new code.

So I am trying to transition from using Travis-CI for some of my Perl projects (and no CI at all for the rest) to using Github Actions for all of my Perl projects.

This is actually the point which interests me most. Why are you moving away from Travis?

I have been in the process of moving everything out of Github since the disaster. As even the stable releases would need an update if/when rt.cpan.org goes that will be the kick to move all the remaining stuff out too.


🦛

Replies are listed 'Best First'.
Re^2: 2021 is the year to drop support for Perl < 5.12?
by Tux (Canon) on Dec 11, 2020 at 11:56 UTC

    // was standard in 5.10 and available in 5.8.x with a series of patches, so that one is not the best reason to require 5.12 (instead of 5.10).

    Using my version of perlver-fast:

    $ perlver-fast -ve '$a //= 10' -e: 5.010 / 5.010 5.010 //= operator

    Whatever the reasoning behind a minimal requirement is, as long as the argumentation is good enough, it is acceptable.

    Dropping support for alder perl releases does not mean that the releases of a module that are available on CPAN (and BackPAN) suddenly stop working.

    If raising the minimal supported version of perl (for whatever reason) raises the quality as that increases test coverage, I won't object.

    A reason not to raise that bar is if your module is way up-river, and thus also raises the minimal supported perl version to all the modules that require yours. Just something to consider.


    Enjoy, Have FUN! H.Merijn

      Last paragraph is why I'm proposing making 5.12 into more of a soft limit than a hard one. I'll be dropping automated testing on Perl 5.10 and below, but in most cases not deliberately killing off support.

      For Exporter::Tiny and Type::Tiny, I guess it's worth still keeping explicit support for older Perls.

Re^2: 2021 is the year to drop support for Perl < 5.12?
by tobyink (Canon) on Dec 11, 2020 at 13:32 UTC

    GitHub Actions supports a wider variety of platforms (multiple versions of Ubuntu, multiple versions of Mac OS, and multiple versions of Windows), has some nice features like caching of dependencies between builds, and offers more concurrent processes. Those last two features allow builds to finish faster than Travis does, even if I'm now running more builds to cover more platforms.

    Yeah, I can't say I was especially happy about Microsoft buying Github; they are not as bad as they once were, but will definitely need keeping a watchful eye on for the foreseeable future. However Microsoft have always relied on having support from grassroots developers, so in this case they have a strong incentive to not make a mess of things.

Re^2: 2021 is the year to drop support for Perl < 5.12?
by Leitz (Beadle) on Dec 11, 2020 at 12:45 UTC
    Travis was bought last year and then laid off a good number of engineers. There are other options, like CircleCI and GitLab. If you're building your resume for enterprise grade clients, having active GitHub projects is a selling point. It may not be the most FOSS-y thing to do, but when you have to pay the bills then you do what needs doing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2021-04-13 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?