user-pic

Jonathan Lloyd

  • Commented on A network benchmarker for Perl programs?
    You could probably use DTrace to tie in to the underlying network layer. Although, I am not skilled enough in DTrace to provide an example....
  • Commented on Why you don't need File::Slurp…
    I would be curious for you to add Damien Conway's Perl6::Slurp to your comparison....
  • Commented on Method::Signatures: where and when
    Thank you for your efforts! Method::Signatures is a key part of my Moose toolbox. Very much appreciated....
  • Posted An Excuse to Get Outside (Team Building via RC Helicopter) to Jonathan Lloyd

    Last month I was lucky enough to attend YAPC::NA in Madison, WI. Among the many spectacular talks, impressive people, and events there was a raffle that took place for conference attendees. With all proceeds going to…

  • Posted Preventing Collisions with Perl cron jobs to Jonathan Lloyd

    Imagine you are a brilliant developer who just created a Perl script that takes form submissions from your website and imports them to your ticketing system. Well done! Now you want to set this script to run periodically so that as new requests come in they are automatically submitted to your…

  • Commented on Hello World
    Welcome! Any new Perl blogger is good for the community. I look forward to your future posts....
  • Commented on Why does your site not link to perl.org?!
    Great article. You are right on! I plan to add this link to all our web properties....
  • Commented on Dynamic Forms with HTML::FormFu
    Great article! Never even knew this module existed -- but now I may use it on an upcoming project....
  • Posted Perl 6 IRL (In Real Life) to Jonathan Lloyd

    A couple of weeks ago a ran into a real life situation where Perl 6 was able to greatly simplify my life. I was in the process of importing some Canadian postal codes from a PDF document where the data was presented like this:

    A0A-A0R,D13
    A1A-A1G,D11
    A1H-A1M,D13…

Subscribe to feed Recent Actions from Jonathan Lloyd

  • Leon Timmermans commented on Why you don't need File::Slurp…

    Actually, you're right. Normally the buffering takes care of that, but I've just knocked that out…

    So rob.kinyon may be right, it might just be the overhead of the function call (and processing of parameters and error handling etc. within that function) that you're measuring.

    More the latter than the former actua…

  • mascip commented on Method::Signatures: where and when

    Hi Buddy, thanks a lot for Method::Signatures.

    One naive (unrealistic?) idea/request:

    Could there be any way for a user to tell in a Moo(se) class: “don’t do any type check for any subroutines of this class” ?

    Maybe in the same way that Debuggit skips useless debuggit() function calls ? (“Performance Considerations” in Debuggit::Manual - implemented with B::Deparse)

    We could then develop/debug with type checks on, and not use type checking in production.

  • mascip commented on Method::Signatures: where and when

    I should probably have written "in a package", rather than "in a Moo class".

  • Buddy Burden commented on Method::Signatures: where and when

    > Could there be any way for a user to tell in a Moo(se) class: “don’t do any type check for any subroutines of this class” ?

    Sure. This is being discussed right now, in fact, as GitHub issue #73.

  • https://www.google.com/accounts/o8/id?id=AItOawlKCInGw3AtPhoc4NBTcIFE1ggZxSjXMXY commented on Why you don't need File::Slurp…
    There's a flaw IMHO, read() may not return the whole file content (and actually it won't with large files), depends on OS buffering. The usual boilerplate includes a while() and buffer concatenation.

    AFAIK, sysread() might return partial data. But read() should return whole file (it's there are no problems with memory allocation in Perl). Can you point a place where the behaviour you describe is documented ?

Subscribe to feed Responses to Comments from Jonathan Lloyd

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.