<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Graeme Lawton</title>
	<atom:link href="http://graeme.per.ly/feed" rel="self" type="application/rss+xml" />
	<link>http://graeme.per.ly</link>
	<description>Because Perl definitely isn&#039;t dead.</description>
	<lastBuildDate>Wed, 16 Feb 2011 21:16:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Testing 1 2 3</title>
		<link>http://graeme.per.ly/testing-1-2-3/304</link>
		<comments>http://graeme.per.ly/testing-1-2-3/304#comments</comments>
		<pubDate>Wed, 16 Feb 2011 21:16:23 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=304</guid>
		<description><![CDATA[Testing 1 2 3&#8230; is there anybody just like me?]]></description>
			<content:encoded><![CDATA[<p>Testing 1 2 3&#8230; is there anybody just like me?</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/testing-1-2-3/304/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ooops, I appear to have not posted</title>
		<link>http://graeme.per.ly/ooops-i-appear-to-have-not-posted/301</link>
		<comments>http://graeme.per.ly/ooops-i-appear-to-have-not-posted/301#comments</comments>
		<pubDate>Mon, 08 Nov 2010 09:20:59 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=301</guid>
		<description><![CDATA[According to the web-o-meter I&#8217;ve not posted since March, it now being November that&#8217;s really not good enough. Truth be told, I&#8217;ve not really been working with Perl much for work and in my spare time I&#8217;ve been&#8230;. working. As it happens though I did finally make it to a NWE.pm meet this month where [...]]]></description>
			<content:encoded><![CDATA[<p>According to the web-o-meter I&#8217;ve not posted since March, it now being November that&#8217;s really not good enough. Truth be told, I&#8217;ve not really been working with Perl much for work and in my spare time I&#8217;ve been&#8230;. working.</p>
<p>As it happens though I did finally make it to a <a title="North West England Perl Mongers" href="http://northwestengland.pm.org/">NWE.pm</a> meet this month where we planned some of the stuff for the <a href="http://northwestengland.pm.org/meetings/023.html">hack day</a>.</p>
<p>The plan, ambitious as it may be for a day, is to work up something similar to <a title="Heroku App Hosting" href="http://heroku.com/">Heroku</a> but for Perl apps obviously. I hope to be able to take over some of the good things I&#8217;ve learnt from the RoR community and use them on this project.</p>
<p>On another not, it appears that the <a href="http://per.ly/">per.ly</a> homepage has stopped aggregating the blog posts. I&#8217;ll get that sorted!</p>
<p>KTHXBYE <img src='http://graeme.per.ly/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/ooops-i-appear-to-have-not-posted/301/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flaky Server</title>
		<link>http://graeme.per.ly/flaky-server/295</link>
		<comments>http://graeme.per.ly/flaky-server/295#comments</comments>
		<pubDate>Sat, 20 Mar 2010 18:10:38 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[flaky]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=295</guid>
		<description><![CDATA[Apologies all for the flakiness of the site recently. The new server seemed to be  having a few issues! I&#8217;ve tracked it down (I think) to the google analytics WordPress plugin I was  using. I&#8217;ve removed it for the time being, and now hopefully all manner of things shall be well.]]></description>
			<content:encoded><![CDATA[<p>Apologies all for the flakiness of the site recently. The new server seemed to be  having a few issues! I&#8217;ve tracked it down (I think) to the google analytics WordPress plugin I was  using. I&#8217;ve removed it for the time being, and now hopefully <a href="http://www.goodreads.com/quotes/show/53633">all manner of things shall be well</a>.</p>
<p><a href="http://graeme.per.ly/files/2010/03/IMG_0041.png" rel="lightbox[295]"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/flaky-server/295/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Job &#8211; New Server</title>
		<link>http://graeme.per.ly/new-job-new-server/292</link>
		<comments>http://graeme.per.ly/new-job-new-server/292#comments</comments>
		<pubDate>Thu, 18 Mar 2010 10:26:46 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=292</guid>
		<description><![CDATA[Sorry I&#8217;ve not posted for a while, been really busy at work (MEN) working on the new site, however next Friday is my last day here. I&#8217;m leaving for pastures new. I&#8217;m soon to be the new development manager for Set Fire Media. I&#8217;ll be working mainly with RoR but still a bit of Perl [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry I&#8217;ve not posted for a while, been really busy at work (<a title="Manchester Evening News" href="http://www.manchestereveningnews.co.uk/">MEN</a>) working on the new site, however next Friday is my last day here. I&#8217;m leaving for pastures new. I&#8217;m soon to be the new development manager for <a title="Set Fire Media" href="http://www.setfiremedia.com/">Set Fire Media</a>.</p>
<p>I&#8217;ll be working mainly with RoR but still a bit of Perl &#8211; as a result I&#8217;ve been playing with Rails for a couple of weeks now, and all I can conclude is that RoR might as well be Catalyst with Moose and a different templating front end. You can certainly see where the ideas have crossed over!</p>
<p>With regards to the new server, this is now a new server running <a title="Cherokee" href="http://www.cherokee-project.com/">Cherokee</a> rather than <a title="Apache web server" href="http://www.apache.org/">Apache</a>, so we&#8217;ll see how things go!</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/new-job-new-server/292/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is this the death of Perl?</title>
		<link>http://graeme.per.ly/is-this-the-death-of-perl/269</link>
		<comments>http://graeme.per.ly/is-this-the-death-of-perl/269#comments</comments>
		<pubDate>Wed, 10 Feb 2010 16:24:44 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[sux]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=269</guid>
		<description><![CDATA[Sensationalist title I know but I work, at least for the minute, for a newspaper company that&#8217;s just been bought out. Now I&#8217;m fairly sure that our new corporate overlords will have no requirement for two web development departments. Meaning at least one of us is for the chop and they are the larger company [...]]]></description>
			<content:encoded><![CDATA[<p>Sensationalist title I know but I work, at least for the minute, for a newspaper company that&#8217;s just been bought out. Now I&#8217;m fairly sure that our new corporate overlords will have no requirement for two web development departments. Meaning at least one of us is for the chop and they are the larger company buying the smaller one, so centralising to their own resources seems likely to be the way they&#8217;ll go.</p>
<p>We have a strong development team here, with a great work ethic, who all love working with modern (<a title="EPO" href="http://www.enlightenedperl.org/">enlightened</a>) Perl. However only a <a title="UK Perl Jobs" href="http://jobs.perl.org/country/United%20Kingdom">cursory look</a> at the Jobs market around our location shows us that there aren&#8217;t very many openings for experienced Perl developers. Sure there are some around London, but outside of the big bad city there seems to be very few and for most of us relocating simply isn&#8217;t an option due to family commitments.</p>
<p>So being that we&#8217;re all competent developers switching to a different language isn&#8217;t a massive issue to us from a technical point of view but we&#8217;ve given some of the best years of our lives to Perl and the community surrounding it. Abandoning it, even only on a professional level, seems like it&#8217;s almost more gut-wrenching than the likely ensuing redundancies.</p>
<p>So is this the death of Perl for me/us? Perhaps and it&#8217;s gutting.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/is-this-the-death-of-perl/269/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>New per.ly blogger</title>
		<link>http://graeme.per.ly/new-per-ly-blogger/266</link>
		<comments>http://graeme.per.ly/new-per-ly-blogger/266#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:00:54 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=266</guid>
		<description><![CDATA[Welcome to Mark, soon to be blogging on per.ly. Mark currently works primarily in PHP, but is slowly learning to love the Perl. Hopefully he&#8217;ll get to converting his site to Catalyst soon! On another note, thanks to everyone who showed up for the NWE.pm tech meet last night. I thougt it went well.]]></description>
			<content:encoded><![CDATA[<p>Welcome to Mark, soon to be blogging on <a title="Perl Blogging" href="http://tan.per.ly/" target="_self">per.ly</a>. Mark currently works primarily in PHP, but is slowly learning to love the Perl. Hopefully he&#8217;ll get to converting <a title="This Aint News" href="http://thisaintnews.com/" target="_blank">his site</a> to Catalyst soon!</p>
<p>On another note, thanks to everyone who showed up for the <a title="North West England Perl Mongers" href="http://northwestengland.pm.org/">NWE.pm</a> tech meet last night. I thougt it went well.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/new-per-ly-blogger/266/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Northwest England Perl Mongers &#8211; Meet #6</title>
		<link>http://graeme.per.ly/northwest-england-perl-mongers-meet-6/263</link>
		<comments>http://graeme.per.ly/northwest-england-perl-mongers-meet-6/263#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:28:56 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[perl promises pm "men media"]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=263</guid>
		<description><![CDATA[Just a quick one to welcome mdk to per.ly and shout about the NWE.pm meet that we hosted at work. Anyway it was great and Mark has posted a full write-up. I promise to post something more fulfilling soon, honest.]]></description>
			<content:encoded><![CDATA[<p>Just a quick one to welcome <a title="MDK" href="http://mdk.per.ly/">mdk</a> to per.ly and shout about the NWE.pm meet that we hosted at work. Anyway it was great and Mark has posted a <a title="NWE.pm Tech Meet #6" href="http://bit.ly/jndRy">full write-up</a>.</p>
<p>I promise to post something more fulfilling soon, honest.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/northwest-england-perl-mongers-meet-6/263/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Next northwestengland.pm meet</title>
		<link>http://graeme.per.ly/next-northwestenglandpm-meet/260</link>
		<comments>http://graeme.per.ly/next-northwestenglandpm-meet/260#comments</comments>
		<pubDate>Thu, 04 Jun 2009 09:29:15 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[manchester]]></category>
		<category><![CDATA[mongers]]></category>
		<category><![CDATA[northwest]]></category>
		<category><![CDATA[northwestengland.pm]]></category>
		<category><![CDATA[pm]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=260</guid>
		<description><![CDATA[The next Northwest England Perl Mongers meet is going to be a technical meet on 1st July. Everyone attending is invited to deliver a lightning talk relating to anything you think we&#8217;ll be interested in. Lightning talks should be about 5 minutes long. We will be meeting at MEN Media&#8217;s headquarters on Deansgate in Manchester [...]]]></description>
			<content:encoded><![CDATA[<p>The next <a title="NWE Perl Mongers" href="http://northwestengland.pm.org/">Northwest England Perl Mongers</a> meet is going to be a <a title="NWE.pm Technical Meet" href="http://northwestengland.pm.org/meetings/006.html">technical meet</a> on 1st July. Everyone attending is invited to deliver a lightning talk relating to anything you think we&#8217;ll be interested in. Lightning talks should be about 5 minutes long.</p>
<p>We will be meeting at MEN Media&#8217;s headquarters on Deansgate in Manchester but the powers that be would like an attendees list before hand so please drop a line on the mailing list or let us know in #northwestengland.pm on irc.perl.org.</p>
<p>Oh yeah, and we need to think of a talk subject for <a title="Matt S Trout" href="http://www.shadowcat.co.uk/blog/matt-s-trout/">Matt Trout</a> to talk about, as he volunteered to talk about a subject of our choosing.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/next-northwestenglandpm-meet/260/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perl to the rescue&#8230;</title>
		<link>http://graeme.per.ly/perl-to-the-rescue/256</link>
		<comments>http://graeme.per.ly/perl-to-the-rescue/256#comments</comments>
		<pubDate>Sun, 24 May 2009 22:50:15 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=256</guid>
		<description><![CDATA[So it appears there are some drawbacks in WordPress Mu. Mainly that there is a complete lack of a decent content aggregation plugin for it. Well that&#8217;s no problem, I&#8217;ll just write one&#8230;. wait just one minute. Perhaps the reason that their isn&#8217;t one already is because Mu is basically a giant hack! There is [...]]]></description>
			<content:encoded><![CDATA[<p>So it appears there are some drawbacks in <a title="Wordpress Mu" href="http://mu.wordpress.org/">WordPress Mu</a>. Mainly that there is a complete lack of a decent content aggregation plugin for it. Well that&#8217;s no problem, I&#8217;ll just write one&#8230;. wait just one minute. Perhaps the reason that their isn&#8217;t one already is because Mu is basically a giant hack!</p>
<p>There is an ugly bit of <a title="PHP" href="http://php.net">PHP</a> that basically sets the current blog and then everything works, however changing the current blog breaks pretty much everything. Also Mu creates a set of tables for every blog, so all the posts are in different tables. Thus making writing a nice clean Mu plugin to aggregate the posts an impossibility.</p>
<p>So Perl it is then. A quick script to union the tables, TT the data and then print the output. Add a bit of caching and hey presto, done in less than an hour.</p>
<p>Still could use a bit of tidying up in the templates but other than that it&#8217;s all good. Anyway it&#8217;s running the <a title="per.ly" href="http://per.ly/">per.ly homepage</a> now. Also if anyone wants a per.ly blog, to post about anything related to <a title="Perl" href="http://www.perl.com/">Perl</a> leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/perl-to-the-rescue/256/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smart Match &#8211; Speed comparison</title>
		<link>http://graeme.per.ly/smart-match-speed-comparison/249</link>
		<comments>http://graeme.per.ly/smart-match-speed-comparison/249#comments</comments>
		<pubDate>Mon, 18 May 2009 15:54:24 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[5.10]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[smart match]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=249</guid>
		<description><![CDATA[Recently I was reading an article from the good folks at Perl Training Australia about the 5.10 Smart Match functionality. I was particularly interested in the fact that they referred to the speed of the Smart Match being &#8220;extremely fast&#8221;, so I decided to hack together a quick script to see what potential speed gains [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was reading an <a title="Smart Match - Perl Training Australia" href="http://perltraining.com.au/tips/2008-04-18.html">article</a> from the good folks at Perl Training Australia about the 5.10 Smart Match functionality. I was particularly interested in the fact that they referred to the speed of the Smart Match being<em> &#8220;extremely fast&#8221;</em>, so I decided to hack together a quick script to see what potential speed gains we were looking at.</p>
<p>I focused my investigation on comparing two arrays and using <a title="CPAN Benchmark" href="http://search.cpan.org/~tty/kurila-1.19_0/lib/Benchmark.pm">Benchmark</a> to see how much quicker using the Smart Match would be.</p>
<p>I created two quick routines to compare the arrays:</p>
<pre style="padding-left: 30px">sub smart_compare {
    return 1 if(\@a ~~ \@b);
}

sub foreach_compare {
        return 0 if(@a != @b); #Scalar compare to check lengths.
        my $i = 0;

        foreach (@a) {
                return 0 if($a[$i] != $b[$i]);
                ++$i;
        }

        return 1;
}</pre>
<p>The smart match comparison being much more concise and the foreach_compare not having an particular optimisations, but both being fairly trivial.</p>
<p>So I chose four simple test cases for comparing the arrays:-</p>
<ul>
<li>Matching arrays (1,2,3,4,5,6) == (1,2,3,4,5,6)</li>
<li>Last value different (1,2,3,4,5,6) == (1,2,3,4,5,5)</li>
<li>First value different (1,2,3,4,5,6) == (5,2,3,4,5,6)</li>
<li>Number of items in arrays different (1,2,3,4,5,6) = (1,2,3,4,5,6,7)</li>
</ul>
<p>I was expecting the Smart Match to be quicker, although not by too much in all of the cases. It turns out that the Smart Match was slower in all but one case (Over a million iterations).</p>
<ul>
<li>Matching arrays (Smart Compare: <em>21 Seconds </em>Foreach Loop: <em>7 Seconds</em>)</li>
<li>Last value different  (Smart Compare: <em>20 Seconds </em>Foreach Loop: <em>6 Seconds</em>)</li>
<li>First value different  (Smart Compare: <em>5 Seconds </em>Foreach Loop: <em>3 Seconds</em>)</li>
<li>Number of items in arrays different  (Smart Compare: <em>1 Second </em>Foreach Loop: <em>1 Second</em>)</li>
</ul>
<p>When the number of items in the array is different the Smart Match and Foreach loop perform pretty much evenly across repeated tests.</p>
<p>All the tests were ran on Perl 5.10.0, installed from Source on a P4 with 2 Gig of ram. Whilst these findings show the smart match to be slower when comparing arrays, this is of course only a simple test case and other types of comparisons offered by the Smart Match should obviously be investigated too.</p>
<p>The <a title="Test Script" href="http://graeme.per.ly/files/2009/05/test.pl">test script is available for download</a> if anyone wants to give it a go on their system (or find any mistakes).</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/smart-match-speed-comparison/249/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

