user-pic

Toby Inkster

  • Posted So I Guess I'm Back to Toby Inkster

    Hi… remember me?

    Been away a while, and now I have a whole heap of bug reports to get through. But you, dear reader, I'm giving the inside track. If there's a bug in one of my modules and you want me to prioritize it, comment below.

    Also, how are you doing?

    I'm good.

  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    Locked hashes are great, but if the implementation is slowing down all hashes, then I agree they should no longer be built in, and should be moved to a module That said, I think it's an important enough feature that...
  • Commented on qk: Quote Membership Hash Keys
    https://metacpan.org/pod/Syntax::Feature::Qwa...
  • Commented on Perl Challenge: Fun with Character Classes
    Where are my answers?!...
  • Commented on Paging TOBYINK
    Hi, yes I exist. Just busy with other stuff. Give me a run down of which distributions need fixing....
  • Commented on Private Moose Attributes
    Personally, I wouldn't make user, company, etc into attributes at all. Instead I'd write wrappers for the constructor: sub new_from_user { my ($class, $user) = @_; return $class->new( country => logic_to_determine_country(), language => logic_to_determine_language(), ); }...
  • Commented on Can you provide an x/y Point class in other languages?
    PHP 5... <?php class Point { public $x, $y; public function __construct ($x, $y) { $this->x = self::validate_number($x); $this->y = self::validate_number($y); } public function __toString() { return sprintf('[%d,%d]', $this->x, $this->y); } public static function validate_number ($n) { if (!is_numeric($n)) throw...
  • Commented on Fancy Matching of Delimited Text
    Have you considered bundling a Text::Balanced::Marpa::Compat module which re-implements the Text::Balanced API on top of it? The Text::Balanced API is frankly not great, but you might get more users if people have a simple drop-in replacement....
  • Commented on CPAN Cleaning Day 2457027: Changes and README
    Years ahead of you! ;-) Go to a SPARQL endpoint, and type in the following as the default graph URI (this is a link to a bunch of RDF data that I typically bundle with my distributions): http://api.metacpan.org/source/TOBYINK/Type-Tiny-1.000005/doap.ttl And the...
  • Posted Book Report - December 2014 to Toby Inkster

    As you may be aware, I'm writing a book which will eventually become a free e-book. This is my third report on how I'm getting along.

  • Commented on The dream of "use 7;"
    This is even what perl -v says: This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64-linux-thread-multi...
  • Commented on The dream of "use 7;"
    Many people who want to be able to increment major versions for Perl have now compromised and decided that the second part of the version number is the major version. So the current stable Perl is "Version 20.1 of the...
  • Commented on Of course you can `requires` attributes!
    It works in Moo, but there are some bugs with requires and attributes in Moose. Demonstration... use v5.14; package AAA { use Moose::Role; requires 'b'; has 'a' => (is => 'ro'); } package BBB { use Moose::Role; requires 'a'; has...
  • Commented on mop minus proposal
    There are a lot of class/role frameworks, but the decision making process for which to use is actually very simple: Start with Moo, and if you outgrow it, use Moose. You can mostly forget about the others. Also there's Moops...
  • Commented on mop minus proposal
    Parse::Keyword has issues, but it is possible to work around them. (And I don't think Yuki Kimoto's code triggers the problems in Parse::Keyword anyway.)...
  • Posted Quick post-LPW roundup to Toby Inkster

    I've just arrived back from the London Perl Workshop. Lots of very interesting stuff. A big thank you to the organizers! I especially liked:

  • Extending Syntax - Functional Programming m…
  • Commented on Tonight’s folly
    Well, this is quite pretty: my @new = map { s/foo/bar/r } @old; Compared with the old way: my @new = map { (my $tmp = $_) =~ s/foo/bar/; $tmp } @old;...
  • Commented on Book Report - October 2014
    Just a couple of minutes after writing this blog entry, I got an e-mail saying my talk has been accepted. Yay!...
  • Posted Book Report - October 2014 to Toby Inkster

    This month has been quite a busy one for me, so I haven't had much chance to work on my (in-progress) book. However, I have had some time to start work on a short talk for London Perl Workshop 2014

  • Commented on Where is Brent?
    Have you tried contacting him via Columbia University, who are his present employers according to LinkedIn?...
  • Commented on A fast pragmatic test runner
    I wonder if this could be achieved with a lockfile of some kind? Test files that work in parallel try to open a shared lock on a particular file (say t/lock), and wait until they obtain the lock. Test files...
  • Commented on A most amusing annoyance
    In most (all?) Unix shells, a parameter can be partly quoted. For example: echo 'foo'bar'baz' will print out "foobarbaz". It is this feature that allows parameters like --foo="bar baz" to work, so it's a valuable feature. Anyway, with your command,...
  • Commented on Which modules are currently loaded by process?
    I like Devel::TraceUse. I've used it a lot developing Type::Tiny to help me figure out where I'm unnecessarily loading modules. However, unless I've missed a feature it does not tell you the full path of each module that has been...
  • Commented on Synchronizing Opera bookmarks with Perl, Org, and git
    I use Opera 12 on Linux. You know it has the ability to export bookmarks as HTML, using the same format Netscape used to use many moons ago. I believe it is mostly round-trippable....
  • Posted Exporter::Tiny nearing 1.000000 to Toby Inkster

    Yes, in my warped mathematics, 0.042 is nearly 1.000000.

  • Posted Planet Moose - September 2014 to Toby Inkster
  • Posted Book Report - September 2014 to Toby Inkster

    As you may be aware, I'm writing a book which will eventually become a free e-book. (Oh how I'm beginning to hate the e- prefix on everything vaguely related to computers. Or should I call them…

  • Commented on CPAN Testers & pre-requisite reporting
    The problem with these proposed solutions is that they assume that the release at fault is always going to be a trial one. I could release a seriously broken version of Exporter::Tiny as a stable release, and break a couple...
  • Commented on Event::Lib
    I'd suggest releasing 1.04 to CPAN straight away. As you're not the maintainer, it won't be officially indexed, so people won't be able to install it using: cpan Event::Lib Instead they'll need to install it like: cpan CRUX/Event-Lib-1.04.tar.gz Then, if...
  • Commented on Test::More has lots of crazy new development that's breaking my modules
    Exodist is making a lot of changes to the Test::More guts, which will hopefully lead to a much better Test::More. The aim is that the result should eventually be API-compatible with older Test::More. Because of the major changes, he's rightly...
  • Subscribe to feed Recent Actions from Toby Inkster

    • kid51 commented on Paging TOBYINK

      The test failures in Type::Tiny are becoming more urgent as we get closer to the release of perl-5.26.0. There are over 600 CPAN distributions which have first-level dependencies on this module. They cannot be tested against blead until this one test file is corrected.

      Thank you very much.
      Jim Keenan

    • Klaus Baldermann commented on Perl Challenge: Fun with Character Classes

      1. dash thru caret
      2. neither dash nor caret
      3. dash or caret
      4. opposite of 1
      5. no dash
      6. no caret

      to check:


      use 5.012; # implies strict + feature 'say'
      use Data::Dumper;
      my %matches;
      for my $cc (qw/--^ ^-^ -^ ^--^ ^- ^^/) {
      my $re = qr/[$cc]/;
      my $match = '';
      do {$match .= chr($_) if chr($_) =~ $re} for (32..126); # printable ascii
      $matches{$cc} = $match;
      }
      say Dumper \%matches

    • morandimus commented on Perl Challenge: Fun with Character Classes

      Correct! You win a hearty handshake if I ever meet you in person!

    • morandimus commented on Perl Challenge: Fun with Character Classes

      Toby, I was waiting to see if anyone would submit guesses!

    • Alceu Rodrigues de Freitas Junior commented on Are Restricted/Locked Hashes A Failed Experiment?

      I have used Hash::Utils more than once, specially in OOP projects that I was using "default" OOP model of Perl (not Moose or anything like that).
      On the other hand, I usually don't start using it from scratch, usually when things starts to getting more complex and bugs starts to appear it is a sign that I should consider using it.
      It is good to be have options... sometimes you need flexibility (like expanding a…

    Subscribe to feed Responses to Comments from Toby Inkster

    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.