user-pic

Grinnz

  • About: I blog about Perl.
  • Commented on I want my, I want my Kwa-li-tee
    All good suggestions. As a note [MinimumPerl] isn't strictly necessary, it will attempt to autodetect the minimum version of perl required, but if you want to explicitly declare a minimum version that you support, you can add a runtime prerequisite...
  • Commented on Inline::F2003 - An ILSM for modern FORTRAN
    As long as the word Fortran appears in the abstract (the part of the NAME section after the module name and hyphen), it should be easily searchable on metacpan. Regardless, it doesn't appear that this distribution is on CPAN currently....
  • Commented on What Time is Midnight?
    Correct, leap seconds do not affect the unix epoch time, as they're ignored or skipped for that purpose. Time zone offset changes are another matter, since they're applied "on top" of the epoch time. So the simplest method is to...
  • Commented on Perl 5 Porters Mailing List Summary: October 16th - Nov 1st
    That proposal would not generally change how functions like substr and length work. It would change how string literals in source code are interpreted, which would cause breakage. But the important part of the proposal there is: "To get there,...
  • Commented on What Time is Midnight?
    A particularly tricky one because it's a case where the timezone *offset* changes depending what time of day it is. So only a module like DateTime with a complete timezone implementation can make it "just work": my $date = DateTime->new(year...
  • Commented on Check compression in web page
    I think it would be neat if this module used HTTP::Tiny instead of LWP. HTTP::Tiny is core on perl 5.14+ and it doesn't really look like it uses any LWP-specific features (like hooks or HTTP::Message objects)....
  • Commented on The Hot New Language Named Rakudo
    I appreciated the effort on the part of mst to push the idea to rename Perl 5 as a compromise we have more control over. But do we really? Perl 5 has over 20 years of mindshare in the programming...
  • Commented on Because CPAN Needs More Templating Modules
    Sadly I think BPO ate some significant parts of your template in the comment....
  • Commented on Trials and troubles with changing @INC
    You can use lib.pm for that: no lib '.'; or PERL5OPT=-M-lib=....
  • Commented on How fast can you try?
    Ah, makes more sense now. Thanks...
  • Posted Autoload::AUTOCAN - Autoloading the easy way to Grinnz

    Autoload can be a very powerful tool in Perl, though often you should first consider if there's a better way; Autoload is not necessarily the best solution for cases where you just need to generate many methods by name, and definitely is…

  • Commented on How fast can you try?
    Also interesting that you found Try::Catch to be slower than Try::Tiny, given its purpose is to be faster....
  • Commented on Dist::Zilla @Starter - Revision 2
    The great thing about Dist::Zilla is we have all of these options to serve any preference. One other note, [ReadmeAnyFromPod] with location = root automatically excludes the generated file from the build. Though it doesn't hurt to exclude it manually...
  • Commented on Dist::Zilla @Starter - Revision 2
    Regarding the GitHub readme, that's beyond the scope of this bundle currently, as it does not assume any source control system. I prefer to generate README.pod and copy it on release and regenerate, either way it needs to be excluded...
  • Commented on Dist::Zilla @Starter - Revision 2
    Neat, hadn't seen that one. I might use it in my own bundle, but I'll have to consider whether it would be appropriate for this one....
  • Posted Dist::Zilla @Starter - Revision 2 to Grinnz

    I recently released revision 2 of the [@Starter] plugin bundle for Dist::Zilla. This revision brings small improvements to the default behavior, as well as the option to set a different installer plugin. In order to use the…

  • Posted CPAN Meta Browser to Grinnz

    I've been looking for a better way to access the public CPAN metadata in files such as 02packages.details.txt and 06perms.txt, for checking the module index and CPAN permissions. For the latter you can always sign into https://pause.perl.org but I found that to be inconvenient. So I wrote a…

  • Commented on Else Clauses on Loops
    Regarding the syntax, it could definitely be a useful feature. My concern would be that its meaning is somewhat vague at first glance, especially since (as others mentioned) python has a similar syntax which works very strangely. Also consider things...
  • Commented on Else Clauses on Loops
    I like to use "foreach" specifically because that reflects that I am using the form that is different from the usual (as perpetrated by C) "for". But I'll still use "for" for terseness in postfix syntax....
  • Commented on Short presentation of The new Perl debugger
    Perl 5.24 is actually available on Travis without any special handling, as of a few months ago....
  • Posted Dist::Zilla - Why you should use @Starter instead of @Basic to Grinnz

    I posted previously about a new "starter" bundle for Dist::Zilla, the CPAN author's automation tool. I'd like to briefly try to answer the…

  • Posted Dist::Zilla::PluginBundle::Starter - A new way to start using Dist::Zilla to Grinnz

    Dist::Zilla is an extremely powerful and versatile CPAN authoring tool, which has enabled me to reliably publish many distributions with minimal fuss. It has the ability to automate your entire…

  • Commented on Christmas Came, Bah Humbug
    "Async: Perl 6 is probably on equal ground here, and maybe even better, but Javascript is definitely way better at async than Perl 5." It's true that Javascript and Perl 6 both have significant advantages in built-in async support. In...
Subscribe to feed Recent Actions from Grinnz

  • BooK commented on What Time is Midnight?

    Well, according to https://en.wikipedia.org/wiki/Unix_time#Leap_seconds:

    The Unix time number increases by exactly 86,400 each day, regardless of how long the day is.
  • Tom Wyant commented on What Time is Midnight?

    What I tend to do when I want the current local day with core Perl is something like

    use Time::Local qw{ timelocal }; $today = timelocal( 0, 0, 0, (localtime)[3 .. 5]);

    (from eg/almanac in the Astro::Coord::ECI distribution).

    This algorithm should not be generalized to years far from the current year, because of the way Time::Local interprets the year. I ran into the "far from the current year" issue when a correspondent wanted to use Astro::Co…

  • Ron Grunwald commented on Inline::F2003 - An ILSM for modern FORTRAN

    Inline::F2003 is currently not available on CPAN - that's correct. I feel the module is not yet sufficiently mature to be released on CPAN. For instance, it hasn't been tested on Mac OS X or MS Windows. Although, that will happen soon.

    I've released the distribution on Sourceforge to allow programmers early access to the module so they may report back any problems they've come across. Any issues that I've found have so far been logged as Sourceforge tickets.

  • Mohammad S Anwar commented on I want my, I want my Kwa-li-tee

    In case, one really wants to have Kwalitee approved stats, I would recommend [MinimumPerlFast]. I have recently started using it instead of [MinimumPerl].

  • Klaus Baldermann commented on What Time is Midnight?

    Is that a typo in your last paragraph, or did you really search for 23:53:40 (86000 seconds)?

Subscribe to feed Responses to Comments from Grinnz

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.