user-pic

Toby Inkster

  • 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...
  • Commented on Logically And Yourself (&&=)
    This is because the eval block isn't getting executed after the 4th iteration in your &&= case. You're effectively almost short-circuiting the loop. You could achieve a similar effect by inserting next unless $is_proofed; before the eval block in your...
  • Posted Object::Util to Toby Inkster

    I've recently released a new module called Object::Util to CPAN. This is a set of handy methods for working with classes and objects in Perl. It is inspired by

  • Commented on Install XML::LibXML without root
    The gist of how to patch XML::LibXML's Makefile.PL can be found in this ticket....
  • Commented on Install XML::LibXML without root
    A while back I created Alien::LibXML that installs a copy of libxml2 into one of your @INC paths. If you can install Perl modules, you can install it. Submitting a patch to XML::LibXML's Makefile.PL to check for Alien::LibXML has been...
  • Subscribe to feed Recent Actions from Toby Inkster

    • Matt S Trout (mst) commented on Paging TOBYINK

      Mouse's hopeless incompatibility with Moose is one of the reasons Moo exists. I'd strongly recommend either going straight to Moose or staying with Moo.

      The only way to make Moose and Mouse play nice together is, in fact, to go via Moo - if you make an empty Moo role consuming a Mouse role, the Moo role now works with Moose. The Mouse one does not.

      Also, consider installing Class::XSAccessor to speed up Moo.

      Toby, any chance I can help you get your modules into the moose github org or somewhere else so we can help you with this stuff?

      (note that the Moo commun…

    • Graham Knop commented on Paging TOBYINK

      I'd be interested in seeing your benchmark script to see what you are actually comparing, as some of the numbers seem a bit odd. Also note that MooX::TypeTiny exists and should make the combination of Moo and Type::Tiny as fast as is possible in pure perl. It may be time to bake that in to Moo.

      Regarding module maintenance, I had previously tried reaching out about getting comaint or first-come Type::Tiny and some of Toby's other modules. I didn't g…

    • Lee J commented on Paging TOBYINK

      OK, understood - we have two products, one of which is pure Mouse (as per commit message, i.e. no mixing of the streams) and one of which is newer and pure Moo. I'm going to move it all to pure Moose anyway, so the issue is... Moot.

    • Lee J commented on Paging TOBYINK

      A fork of this: https://gist.github.com/schwern/896004 which i haven't updated other than adding a couple of newer modules and actually updating the dists it's benchmarking. So, possibly wrong/irrelevant?

      The benchmarks were a bit of distraction anyway, and just there as a backup in the commit message so i can say "look, faster!" in case the first argument doesn't seem compelling.

    • David Cantrell commented on Paging TOBYINK

      lexical::underscore is broken on 5.24, which in turn breaks Scalar::Does and Data::Domain, and probably some other stuff that I've not noticed.

    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.