user-pic

smls

  • Commented on Try rakudobrew and play with concurrency
    There are cases where Rakudo/MoarVM keeps up with Perl 5 at built-ins, or beats it handily. At built-ins. Check out the benchmarks and see for yourself. I only see 3 kinds of micro-benchmarks on that page where Perl 6 comes...
  • Commented on Data::Dumper Debugging
    @Toby Inkster You're right, Data::Printer has some quirks. The prototype thing is a trade-off; it allows p to treat an array variable with a single value differently than a scalar variable, and an array differently than a hash -- with...
  • Commented on Try rakudobrew and play with concurrency
    They're finally working on making Perl 6 fast. In some examples, it's actually an order of magnitude faster than Perl 5 To be fair, I think that's only the case for micro-benchmarks that compare Perl 6 built-in features with the...
  • Commented on Data::Dumper Debugging
    Nice, although I wouldn't write use Data::Dumper; print Dumper($somevar); in the first place, I'd write: use Data::Dump; dd $somevar; or: use Data::Printer; p $somevar; ...which are not only more convenient to type, but also produce much prettier output....
  • Commented on Perl and Me, Part 8: Endless Forms Most Beautiful and Most Wonderful
    I disagree about P5 smart-matching, I think it was rightfully deprecated (i.e. an example of "self-correcting progress" rather than "progress being blocked"). The implementation tried to overload a single operator with far too many meanings, many of which where not...
  • Commented on Marpa version of Perl6 Advent Calendar, Day 18
    "Perl6's definition: ... Marpa::R2's definitions: suit ~ [♥♦♣♠] ..." I'm pretty sure the Perl 6 grammar could *also* have used a single token (with a character class) for the suits. Afaik, separating alternations into multiple tokens connected to a proto...
  • Commented on Most common build-in functions or operators beginners should know about Perl
    Note that you need to add use Scalar::Util qw(looks_like_number); to the program before being able to call looks_like_number()...
  • Commented on A Tiny Code Quiz
    He argued that even experienced developers will often get this wrong. Many Perl programmers might not guess the correct answer when presented with this "quiz". However, I believe very few would accidentally write such code in practice while ignorant of...
  • Commented on Arrow Operator Shenanigans
    chaining may be easier to read than g(f(x)). FYI, Perl6 has sequencer operators for that: source() ==> filter() ==> sink() http://perlcabal.org/syn/S03.html...
  • Commented on Perl module ideas #5
    no joy; no such ...;...
  • Commented on Why you don't need File::Slurp…
    "For small files, it's actually significantly faster" Hm... Skimming over the code of File::Slurp, it seems to use the very same technique that you present here, in the case of small files. So rob.kinyon may be right, it might just...
Subscribe to feed Recent Actions from smls

  • Toby Inkster commented on Data::Dumper Debugging

    Perl warnings go to STDERR anyway, so I'm already in the habit of:

    perl whatever.pl |& less
    
  • Toby Inkster commented on Data::Dumper Debugging

    Data::Dump doesn't have an equivalent of local $Data::Dumper::Deparse = 1;. And the $VAR1 = crud in Data::Dumper can be suppressed using local $Data::Dumper::Terse = 1;.

    Overall, Data::Dump does a better job with whitespace though.

  • Toby Inkster commented on Data::Dumper Debugging

    I don't know why bash users still reach for 2>&1 to pipe STDERR. Since version 4 (released five years ago), bash has supported a much simpler syntax borrowed from C shell and Korn shell:

    command1 |& command2
    

    This combines STDOUT and STDERR from command1 and pipes the result into command2. Less typing, and much easier to remember!

  • rick.westerman commented on Data::Dumper Debugging

    When your 'finger memory' automatically types '2>&1' then it is just as fast as '|&' :-)

  • Aristotle commented on Try rakudobrew and play with concurrency
    But lets not call it before it happens... :)

    The way I understand these results is “here is proof positive that it can”: a plausible promise. There are still seasons’ worth of low-hanging fruit ahead, anywhere you look, so the fact that we have these results now is an encouraging indicator of how high the effort might be able to reach.

    Before this point, that was always the claim and the idea, and for some people it was the reasonable expectation, but there was no tangible evidence. It remains to be seen if the promise can be fulfilled, but th…

Subscribe to feed Responses to Comments from smls

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 run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.