user-pic

Aristotle

  • Commented on Dist::Zilla Check License
    You are using a file from outside the repository to build the distribution. Nobody else has that file stored in that path on their computer, so nobody else can build the distribution. If that fact counts as undocumented on account...
  • Commented on App-RemoteCommand
    May I suggest using SpeakerDeck instead? It doesn‘t make your readers sign up for an account in order to be able to download the slides....
  • Commented on Simple (Date) Range Overlap Detection
    The way I prefer to think of it is NOT ( rangeB.end < rangeA.start OR rangeB.start > rangeA.end ) The prose version of that is the the most natural way I can think of to express this logic in human...
  • Commented on Smartmatch in 5.27.7
    Yes, autoderef came to my mind as well....
  • Commented on Smartmatch in 5.27.7
    I think the first problem was the introduction of smartmatch at all without much more discussion. Oh there was no dearth of discussion at the time. And I argued against it strenuously. Nobody seemed to hear, though. 5.10 was the...
  • Commented on Why I wrote Keyword::DEVELOPMENT
    Some dev comes along as says "why are we using the old constant pragma?" So they "fix" the code: Might I suggest not hiring people who will dis-improve the code by rote rule-following? 😊 But also, if that’s your problem:...
  • Posted Perl&#160;5’s list-flattening and reference-taking design choices to Aristotle

    Eevee:

    Perl has the strange property that its data structures try very hard to spill their contents all over the place. Despite having dedicated syntax for arrays –

  • Commented on /Fizz|Buzz/
    my $fizz = grep { 1 while s![147][258]|[258][147]|[147]{3}|[258]{3}!!g; "" eq $_; } s![0369]!!gr; This can also be written as a recursive pattern but I didn’t have sufficient chops×persistence to puzzle it out....
  • Commented on The not-so-great escape
    [The double-quote] should probably be escaped too, in case the text is going to appear in an attribute value. And so should the single quote, for the same reason. So there are 5 characters in total that you need to...
  • Commented on Another reason not to use each()
    fireartist: I’m afraid everything you said is wrong, and your entire analysis is mistaken. In the best case, it would be redundant with bigfoot’s own analysis, who had already identified the problem correctly in the followup section of the post....
  • Commented on Converting glob patterns to efficient regexes in Perl and JavaScript
    The short-for-me/long-for-you version of the answer would be “read the Friedl book”. 😊...
  • Commented on Converting glob patterns to efficient regexes in Perl and JavaScript
    Because of (*PRUNE). The .* requires backtracking to match: it gobbles up everything first, then relies on backtracking to give up enough of the matched string to make the match pass. (That’s why they say “death to dot star”.) But...
  • Commented on \d does not validate numbers
    That’s what /a is for....
  • Posted Alan Kay’s critique of the TPF grants program to Aristotle

    Alan Kay:

    ="https://www.quora.com/What-made-Xerox-PARC-special-Who-else-today-is-like…
  • Commented on How fast can you try?
    Well, now. That does indeed look a lot more plausible. TT vs TTM differ only in whether the SV returned from caller gets assigned to an SV on the pad, which is clearly going to be a noise-level difference. But...
  • Commented on How fast can you try?
    Actually, on repeated look, it seems this benchmark is probably entirely bogus… ☹️ The current results say that without the catch clause, CPAN Try::Tiny is slower than master (with or without renaming (i.e. TTT)), but with the catch clause, CPAN...
  • Commented on How fast can you try?
    Had I left it out I'm sure I would have caught flak for that instead. Not from me, at least. :-) Any flak from my part was limited to the omission of eval, because that’s what TTT is for –...
  • Commented on How fast can you try?
    Even so, though… I’m still interested in that result, but this benchmark lineup misunderstands the purpose of TTT. It pitches it against competition it wasn’t meant for. Also, the most important competitor is missing. Perl 5.14 made raw eval sane, and...
  • Commented on How fast can you try?
    Can you retry with current Try::Tiny master?...
  • Commented on Dist::Zilla @Starter - Revision 2
    Well, the thing is, in tarballs, the POD dump is a supremely unuseful README. And the core Dist::Zilla [Readme] has the distinction of managing to be even more unuseful. Even the [Readme::Brief] output is not amazing… but it’s at least...
  • Commented on Dist::Zilla @Starter - Revision 2
    May I advocate [Readme::Brief] instead?...
  • Commented on Something New Every Day
    Sometimes it seems like everybody knows, other times I’m surprised how many don’t....
  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    should ALL hashes support locking, or would it be sufficient to have a bespoke lockable hash to use with fields.pm and Hash::Util? Given I proposed the bespoke locked hash implementation, it’s clear what I’d answer, but I’m not up on...
  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    I would imagine locked hashes would be one specific hash implementation, and Hash::Util::lock_keys would continue to work by switching the hash from its current hash implementation to a locked hash. It would be a costly operation, but nobody who doesn’t...
  • Commented on Three Sort Functions
    Do not miss Sort::Key. It’s faster and leaves the code more readable than if you try to write a faster sort in pure Perl....
  • Commented on Swapping Things
    Because this user’s posts are all written in (or possibly pasted into) the rich text editor, not as HTML or Markdown. The class="prettyprint" bit is not even necessary to add, btw. That gets inserted by the syntax highlighter automatically....
  • Commented on qk: Quote Membership Hash Keys
    I’m not a fan of either proposal, though especially not of qa(), because of how little they offer, and how easily they are replicated by just chucking a few functions into List::Util: our $cars_ref = array qw(sedan hatchback coupe); our...
  • Commented on Any module to convert 'whitish' to 'white'?
    The term of art for this is stemming....
  • Commented on You can import your Metacpan favorites into perlmodules.net!
    Excellent! That takes care of the reason I didn’t get into it before....
  • Commented on Announcing Mojolicious::Plugin::Routes::Restful
    DELETE or PUT route to a collection resource […] will give you a 404. Should be 405...
Subscribe to feed Recent Actions from Aristotle

Subscribe to feed Responses to Comments from Aristotle

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.