user-pic

Grinnz

  • About: I blog about Perl.
  • Posted Task::Kensho needs your help! to Grinnz

    CPAN is wonderful and it is vast. Task::Kensho offers a curated look at the best it has to offer for those who don't know what to look for. But to remain useful, it must keep up with the trends of CPAN and the community. Thus, the community's…

  • Commented on The Time::Local Trap
    Indeed, that is why the mentioned workaround works - in the heuristic, years less than 0 are always interpreted as the offset from 1900, and years greater than 999 (which a positive number + 1900 will be) are interpreted as...
  • Commented on Perl Weekly Challenge 017: Ackermann Function and URL Parsing
    You might check out URI::Nested to deal with subschemes....
  • Posted The Time::Local Trap to Grinnz

    The localtime and gmtime built-in functions are interfaces to the POSIX functions for turning a Unix epoch timestamp into date-time components in either UTC or the system local time. When you…

  • Commented on Up, up and Away!
    I don't think that it will make a huge difference, but if performance is a concern you should never "use bigint", always construct Math::BigInt objects yourself when needed....
  • Commented on TPF: Perl deserves better. Please do better.
    Have you considered that you are the one blowing things out of proportion here?...
  • Commented on TPF: Perl deserves better. Please do better.
    You assume the involved parties are the referenced person and the people who were in the room at the time. In fact, this reflects on the Perl conferences and community as a whole to anyone who is made to feel...
  • Commented on TPF: Perl deserves better. Please do better.
    You have fundamentally missed the point of any of this if you think his comment or intention is "grievance-mongering"....
  • Commented on Why Perl 5 benefits is never talked in Perl Weekly Challenge?
    Yes of course; my use of the word "appropriate" referred specifically to the effectiveness of the medium for that format, and what mediums expect such a format....
  • Commented on Why Perl 5 benefits is never talked in Perl Weekly Challenge?
    blogs.perl.org may not be the most appropriate venue for conversations or questions like this. The perl subreddit at https://www.reddit.com/r/perl/ or Twitter might be better places....
  • Commented on Searching Perldocs
    I have not. It could certainly be added as another backend to try. I would be curious how it compares in features and performance....
  • Posted Searching Perldocs to Grinnz

    Search is a hard problem. It is the task of getting users to what they want to find, even if they don't know exactly what that is. Its requirements vary widely based on the kinds of things people will want to find and the kinds of people that want to find them. It's also an expected feature of…

  • Commented on I want to display NA instead of UNKKONW in CPAN Testers
    Only this exact message is recognized as NA. die "OS unsupported\n" Arbitrary error messages will result in UNKNOWN....
  • Posted Perl Toolchain Summit 2019 - CPAN Dependencies Graph to Grinnz

    I was grateful to attend for the first time the Perl Toolchain Summit, held this year in Marlow, UK at the Bisham Abbey. I got to meet many of the talented and persistent contributors to the Perl CPAN infrastructure, and also see a country outside North America for the first time. The Perl…

  • Commented on How to serve Static HTML file and CGI script in development environment
    The Mojolicious plugin can coexist with anything else your application serves such as static files. The Plack apps can be combined with the mount keyword from Plack::Builder, with something like Plack::App::Directory for serving static files, or a Dancer2 application, etc....
  • Commented on Call for volunteers to update OWASP Perl Wiki
    Surely Perl 6 should get its own page rather than confusing the Perl page....
  • Commented on How to serve Static HTML file and CGI script in development environment
    And there are more options via Plack: Plack::App::CGIBin and Plack::App::WrapCGI....
  • Commented on Perl Weekly Challenge: Week 2
    You have to space the syntax so that it does not interpret it as the pre-decrement operator, such as "- -5" or "-(-5)". I am not sure if you'd still consider that part of the number....
  • Commented on How to serve Static HTML file and CGI script in development environment
    Consider also Mojolicious::Plugin::CGI....
  • Commented on What to do with doubly-broken UTF-8?
    Converting to Test2::Suite may be a good idea as it has built in support for encoding output to UTF-8....
  • Commented on HTTP requests, simply
    That is pretty nice. Test::Mojo provides a similar interface for testing Mojo apps, it's incredibly useful....
  • Posted HTTP requests, simply to Grinnz

    It's long been common to use the LWP::Simple module for quick HTTP requests where you only need to retrieve the contents of a website and put them somewhere. Nowadays I would highly recommend the very neat

  • Commented on I'm not positive about this...
    This is because the unary minus operator is weird. If it's applied to a string that starts with a plus or minus, which isn't a number, it reverses that sign; if it doesn't start with a plus or minus, it...
  • Commented on Is there anything wrong with this benchmark?
    With ->SUPER, your sub is being called first and then it looks up what the superclass is via inheritance. With around, it *creates a new sub* in place and then passes you (at call time) a reference to the previously...
  • Commented on Perl Dependency Checking
    Regarding the blog platform, I completely agree that it has many problems - I tend to still post here for greatest visibility, then post the link to reddit r/perl for comments. There is a grant for creating a modern replacement...
  • Commented on Perl Dependency Checking
    Some other commonly used options are Perl::PrereqScanner (used by the Dist::Zilla [AutoPrereqs] plugin) and Perl::PrereqScanner::Lite (used by scan-prereqs-cpanfile). Scanning prereqs is a **hard** problem to do perfectly, because modules are not always loaded at compile time, or even always as...
  • Commented on Modern Perl CGI
    I appreciate the example of a lower-level alternative, since my post only showed a Mojolicious solution for brevity and because that is where my experience is, and this is certainly a good alternative as well. However, "the Mojolicious example derives...
  • Commented on Modern Perl CGI
    I intentionally did not frame this as "you should use Mojolicious", since I know it is not everyone's cup of tea. There are other alternatives that provide the same benefits. However, Mojolicious (and most of the other options, too) can...
  • Commented on Modern Perl CGI
    I'd like to see the benchmarks of that using the latest Mojolicious with Cpanel::JSON::XS installed, but if that's a problem for an application perhaps it's an indication CGI isn't the right deployment method. Luckily, there's an easy solution for that......
  • Posted Modern Perl CGI to Grinnz

    This is a CGI script, let's call it uppercase.cgi:

    #!/usr/bin/env perl
    use strict;
    use warnings;
    use CGI;
    use Encode::Simple;
    use JSON::MaybeXS;
    use Syntax::Keyword::Try;
    
    my $cgi = CGI->new;
    try {
      my $input = decode 'UTF-8'…
Subscribe to feed Recent Actions from Grinnz

  • Aristotle commented on Why Perl 5 benefits is never talked in Perl Weekly Challenge?

    No need to be sorry. As you’re finding out, blogs.perl.org is not a venue where it’s terribly effective to ask a question like this. But it’s absolutely an appropriate venue to ask it.

    (On Twitter it may or may not be more effective… it depends greatly. On Reddit it definitely is, although I don’t know how useful the responses to such a politically loaded question are going to be.)

  • MannyBix commented on TPF: Perl deserves better. Please do better.

    When an uninformed, uninvolved bystander calls conclusions like the ones presented above "ludicrous" and "hyperbolic," that opinion automatically ascends to the level of grievance-mongering. The legal concept of "standing" here is very much germane to the discussion. If you're an involved party or someone who was supposedly harmed by someone else, you have standing to complain. If not, STFU and get on with your life.

    Why, oh why, do I suspect that you won't be doing that, though?

  • MannyBix commented on TPF: Perl deserves better. Please do better.

    It only reflects on the Perl community as a whole if uninvolved people such as yourself who have no standing in the situation continue to make a big stinking deal of it. This could easily have been addressed and resolved with a single, face-to-face conversation, but that doesn't do enough to call attention to wrongthink. Unfortunately, grievance-mongers like yourself will CONTINUE to beat your drum and blow this thing out of proportions. Because, of course, that's what you do.

    Everybody: ""
    You: "I'm offended on behalf of X!"
    X: "But I'm not offended."
    You: "It does…

  • haj commented on TPF: Perl deserves better. Please do better.

    I haven't been to the Perl Conference and am only reading about that event through third party articles, some of which allegedly have been altered since their first publication. I don't think I'll ever find out what has happened there.

    The TPF, directly addressed by this article, has taken responsibility - see the comment by Dan Wright.

    Yet I can't fail noticing that up to today almost every mentioning of the event leads to people attacking each other.

    Could we please de-escalate? Different people are allowed to have different opinions, and might experience…

  • Dean commented on TPF: Perl deserves better. Please do better.

    This is the first really thoughtful "Open Letter" type of thing on "the incident" that I have seen.

    Certainly this person seems to be the only person in the Perl community who has actually read the SoC.

    It's probably a good lesson in not just clicking "I Accept" when presented with terms and conditions.

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.