Peter Martini

  • Website:
  • About: I like thinking about machines, especially virtual machines like Perl's VM, the Java VM, and kvm/qemu
Subscribe to feed Recent Actions from Peter Martini

  • mascip commented on Prototypes and the call checker

    With Debuggit, calls debug statements don't end up in the compiled version of the program, when you turn DEBUG off: "any conditional based on the DEBUG constant will actually be removed during compile-time if the debugging level isn't high enough" (from Debuggit::Manual).

  • Olivier Mengué (dolmen) commented on Prototypes and the call checker

    The link to ex5 is broken.

  • Olivier Mengué (dolmen) commented on Prototypes and the call checker

    Another typo in §2: "takes affect" => "takes effect"

  • Buddy Burden commented on Prototypes and the call checker

    It sounds like you're on the cusp of achieving what I've been trying to do for years with Debuggit. As mascip mentions, Debuggit properly advertises that you can achieve this via:

    debuggit("foo is", $foo) if DEBUG >= 2;

    but that's just using standard constant folding. What I really want is for this:

    debuggit(2 => "foo is", $foo);

    to likewise get expunged during the compilation phase. But I haven't seen any way to do it outside source filtering/Devel::Declare magic/new keyword API, none of which seemed worth the hassle. But …

  • Randal L. Schwartz commented on Spelunking: why 'while(){ }' is my new favorite perl-ism

    Well, they're real git commits, for sure. But they are cloned from all the things that preceded git for Perl's version control by an immense effort to accurate capture as much of Perl history as was now possible.

Subscribe to feed Responses to Comments from Peter Martini

About 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.