MarkyMoon's Friends' Journals
http://use.perl.org/~MarkyMoon/journal/friends/
MarkyMoon's Friends' use Perl Journalsen-ususe Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners.2012-01-25T02:21:20+00:00pudgepudge@perl.orgTechnologyhourly11970-01-01T00:00+00:00MarkyMoon's Friends' Journalshttp://use.perl.org/images/topics/useperl.gif
http://use.perl.org/~MarkyMoon/journal/friends/
Finally, some Test::Builder2 examples!
http://use.perl.org/~schwern/journal/40528?from=rss
<p>For my PDX.pm presentation tonight on <a href="http://github.com/schwern/test-more/tree/Test-Builder2">Test::Builder2</a> I threw together some quick examples of some of its killer features, in particular demonstrating changing how Test::Builder2 behaves using method modifiers and applying object roles.</p><p>First, demonstrating end-of-assert actions, there's <a href="http://github.com/schwern/test-more/blob/Test-Builder2/examples/TB2/lib/TB2/DieOnFail.pm">die on fail</a> but even cooler is <a href="http://github.com/schwern/test-more/blob/Test-Builder2/examples/TB2/lib/TB2/DebugOnFail.pm">DEBUG on fail</a>! That's right, run your test in the debugger and have it automatically set a breakpoint on a failure. How cool is that?</p><p>I'm sure somebody with better debugger foo than I can make it even cooler and stop at the top of the assert stack rather than inside DebugOnFail.</p><p>The second is reimplementing <a href="http://search.cpan.org/perldoc?Test::NoWarnings">Test::NoWarnings</a> safely. <a href="http://github.com/schwern/test-more/blob/Test-Builder2/examples/TB2/lib/TB2/NoWarnings.pm">TB2::NoWarnings</a> demonstrates hooking into the start and end of the test as well as safely altering the number of tests planned by trapping the call to set_plan.</p><p>You can safely use them all together, though its a crap shoot if DebugOnFail or DieOnFail will trigger first.</p><p>While roles and method modifiers are relatively new to the Perl community, using them in lieu of designing my own event system for TB2 has two great advantages. First, I didn't have to design and debug my own event system.<nobr> <wbr></nobr>:) Second, rather than having to learn the quirks of a one-off system, you learn the quirks of Mo[uo]se and then can apply that knowledge all over the place.</p><p>There's <a href="http://github.com/schwern/test-more/issues/labels/Test-Builder2">a pile of stuff to be done in TB2</a>, a lot of them are fairly small and self contained. Have a look. Patches welcome.</p>schwern2010-09-09T08:33:42+00:00journalTest::Builder2 at 10k Feet
http://use.perl.org/~schwern/journal/40527?from=rss
<p>Here's a diagram of the "flow" of assert results through Test::Builder version 1.</p><blockquote><div><p> <tt> .-------.<br> | foo.t |<br> '-------'<br> |<br> |<br> .-------------. | .----------------.<br> | Test::More |<--------->| Test::Whatever |<br> '-------------' '----------------'<br> | |<br> | |<br> | |<br> | .---------------. |<br> '---->| Test::Builder |<----'<br> '---------------'<br> |<br> v<br> .-----.<br> | TAP |<br> '-----'<br> |<br> v<br> <nobr> <wbr></nobr>.---------------.<br> | Test::Harness |<br> '---------------'</tt></p></div> </blockquote><p>You write foo.t using Test::More and Test::Whatever. These both<br>use the same Test::Builder object. It spits out TAP which<br>Test::Harness converts into something human readable.</p><p>The big problem there is Test::Builder is monolithic. There's no<br>further breakdown of responsibilities. It only spits out TAP, and<br>only one version of TAP.</p><p>Here's what Test::Builder2 looks like:</p><blockquote><div><p> <tt> <nobr> <wbr></nobr>.-------.<br> .----------------| foo.t |-------------------.<br> | '-------' |<br> | | |<br> | | |<br> v v v<br> <nobr> <wbr></nobr>.------------. .----------------. .------------------.<br> | Test::More | | Test::Whatever | | Test::NotUpdated |<br> '------------' '----------------' '------------------'<br> | | |<br> | v v<br> | .----------------. .---------------.<br> '---------->| Test::Builder2 |<------| Test::Builder |<br> '----------------' '---------------'<br> |<br> v<br> .--------------. <nobr> <wbr></nobr>.-------------.<br> | TB2::History |<---| TB2::Result |<br> '--------------' '-------------'<br> |<br> |<br> <nobr> <wbr></nobr>.--------------------------. | .---------------------.<br> | TB2::Formatter::TAP::v13 |<-----'------>| TB2::Formatter::GUI |<br> '--------------------------' '---------------------'<br> | |<br> v |<br> <nobr> <wbr></nobr>.-------------------------------. |<br> | TB2::Formatter::Streamer::TAP | |<br> '-------------------------------' |<br> | |<br> v |<br> .-----. |<br> | TAP | |<br> '-----' |<br> | |<br> v v<br> <nobr> <wbr></nobr>.---------------. .-----------------.<br> | Test::Harness | | Pretty Pictures |<br> '---------------' '-----------------'</tt></p></div> </blockquote><p>It starts out the same, foo.t uses a bunch of test modules<br>including Test::More and Test::Whatever using the same Test::Builder2<br>object, but it also uses Test::NotUpdated which is still using<br>Test::Builder. That's ok because Test::Builder has been rewritten in<br>terms of Test::Builder2 (more on that below).</p><p>Test::Builder2, rather than being a monolith, produces a<br>Test::Builder2::Result object for each assert run. This gets stored<br>in a Test::Builder2::History object for possible later use. It also<br>gets handed to a Test::Builder2::Formatter object, the default is<br>Test::Builder2::TAP::v13 which produces TAP version 13. This is fed<br>to a Streamer that prints it to STDOUT and STDERR which is read by<br>Test::Harness and made human readable.</p><p>Because Test::Builder2 is not monolithic, you can swap out parts. For<br>example, instead of outputting TAP it could instead hand results to a<br>formatter that produced a simple GUI representation, maybe a green<br>bar, or something that hooks into a larger GUI. Or maybe one that<br>produces JUnit XML.</p><p>Here's how Test::Builder and Test::Builder2 Relate.</p><blockquote><div><p> <tt> <nobr> <wbr></nobr>.-----. .-----.<br> | TB2 | | TB1 |<br> '-----' '-----'<br> | |<br> | |<br> | |<br> | |<br> v v<br> <nobr> <wbr></nobr>.-------------. <nobr> <wbr></nobr>.--------------. .-------------.<br> | TB2::Result |------->| TB2::History |<--------| TB2::Result |<br> '-------------' '--------------' '-------------'<br> | |<br> | |<br> | |<br> | <nobr> <wbr></nobr>.----------------. |<br> '------------->| TB2::Formatter |<--------------'<br> '----------------'<br> |<br> v<br> <nobr> <wbr></nobr>.--------.<br> | Output |<br> '--------'</tt></p></div> </blockquote><p>Test::Builder and Test::Builder2 coordinate their actions by sharing<br>the same History and Formatter objects. If you call TB1->ok() it<br>produces a Result object which it hands to the History singleton and<br>the Formatter singleton. If you call TB2->ok() it produces a Result<br>object which it hands to the same History and Formatter objects.</p><p>This allows most of the Test::Builder code to remain the same while<br>still coordinating with Test::Builder2. It also allows radically<br>different builders to be made without Test::Builder2 dictating how<br>they're to work.</p><p>The downside is that roles applied to Test::Builder2 will not effect<br>Test::Builder. Because of this, Test::Builder may become more closely<br>coupled with Test::Builder2 in the future.</p><p>Diagrams by <a href="http://search.cpan.org/dist/App-Asciio">App::Asciio</a>.</p>schwern2010-09-09T08:15:22+00:00journaluse Perl; Shutting Down Indefinitely
http://use.perl.org/~pudge/journal/40525?from=rss
<p>See <a href="http://use.perl.org/article.pl?sid=10/09/08/2053239">here</a>.</p>pudge2010-09-08T22:07:47+00:00useperlA month of Test::Builder2
http://use.perl.org/~schwern/journal/40517?from=rss
<p>I've had <a href="http://www.perlfoundation.org/test_builder_2">a grant open for Test::Builder2</a> for, oh god over two years now. Since I started it, Perl 6 has had a release! I think its the second oldest running dev grant.</p><p>I've cleared the decks of other responsibilities and can dedicate September to, if not finishing, then at least releasing something people can poke at. First alpha release was supposed to be "two weeks after the start" ha ha ha! oh god. The design has evolved and simplified greatly in the intervening two years, but its time to get something the hell out the door. At least a <a href="http://github.com/schwern/test-more/tree/Test-Builder2">Test::Builder2</a> Star if you will.</p><p>There's critical components missing. There's no diagnostics, YAML or otherwise. The issues with nested asserts are still congealing. Plans are not enforced. Result objects are in the middle of being remodeled... again. But Test::Builder is using what parts of Test::Builder2 are usable. Multiple output formats and streams work. Asserts can be nested in the common, simple cases without having to fiddle with $Level. And you can hook into various events.</p><p>Step one is I'm going to seal up what's there, write docs where they're missing, and release something.</p><p>A release before October or the grant dies.</p>schwern2010-08-28T04:08:39+00:00journalAlien::SVN - new release, new management
http://use.perl.org/~schwern/journal/40503?from=rss
<p>Those of you still stuck using Subversion will be happy to find <a href="http://search.cpan.org/~mlanier/Alien-SVN-1.6.12.0/">a new release of Alien::SVN</a>. It drags it forward to 1.6.12, doesn't do much else.</p><p>Also, Alien::SVN has finally found a new manager! From out of the blue comes <a href="http://search.cpan.org/~mlanier/">Matthew Lanier</a> with a patch and the will and a PAUSE ID. He'll be taking care of things from now on. Its his first CPAN module, be gentle. Godspeed, Matthew.</p>schwern2010-08-18T22:33:29+00:00journalComments re The Modern Perl book
http://use.perl.org/~Ron+Savage/journal/40495?from=rss
<p>Hi Folks</p><p>OK, so modernperlbooks.com and Moveable Type have disabled my password for the 3rd time. I get the hint. I won't be back (there).</p><p>And no, I didn't forget it. I keep it in an encrypted file along with all the other passwords I've collected...</p><p>For the record, in the past I pretended I'd lost my password, and re-registered, but I'm sick of doing that.</p><p>As for the book, I have some comments, hoping chromatic stumbles across them<nobr> <wbr></nobr>:-):</p><p>1) Chapter 7: 'grovel': I don't think that's the correct usage of that word. Try 'fossick'.</p><p>2) Chapter 9: 'Alternately, use Moose and don't worry about the details' - under DOES(). Hmmmm.</p><p>This statement is far too brief. I think it should spell out exactly what a programmer needs to do in this situation when using Moose.</p><p>Cheers</p>Ron Savage2010-08-14T00:58:29+00:00journaluse Perl;
http://use.perl.org/~pudge/journal/40493?from=rss
<p>I am no longer working for Slashdot/Geeknet as of September 30. I am actively seeking new employment. Unless you want to hire me, you don't need to care, unless you also care about <a href="http://use.perl.org/">use Perl;</a>, because it has been generously hosted by Geeknet since I started the site over 10 years ago, shortly after I was hired by Andover.Net to work on Slashdot.</p><p>Long story short, I have not done much with the site in recent years, so my options at this point are to do nothing; migrate the site to a new server and keep it running as-is; or take the data and do something with it on a new site. Or something I haven't thought of.</p><p>I am hereby accepting proposals for what to do with use Perl;. In short, I would like to donate it to someone who will give it a good home. If you're interested, give me your best pitch.</p><p>Cross-posted on <a href="http://pudge.net/glob/2010/08/use-perl.html"><pudge/*></a>.</p>pudge2010-08-11T23:34:11+00:00journalMatt Trout, aka mst, is insane
http://use.perl.org/~pudge/journal/40492?from=rss
<p>Wow. I occasionally, but not too often, go into #perl. Very busy with family and life. So I go in today, and for no reason, <a href="http://www.trout.me.uk/">mst</a> bans me and tells me to not come back.</p><p>What's up with him being such an irrational dick?</p>pudge2010-08-11T16:41:54+00:00journalUpcoming Events with Perl content
http://use.perl.org/~gabor/journal/40489?from=rss
I have not posted here for ages but according to the recent Perl Survey it seems there are still a lot of people who prefer reading use.perl.org than
<a href="http://blogs.perl.org/">blogs.perl.org</a> or <a href="http://ironman.enlightenedperl.org/">Iron Man</a>
<p>
So just to let these readers to know, there are going to be a number of <a href="http://szabgab.com/blog/2010/08/upcoming-events-for-promoting-perl.html">tech-events with Perl content</a> where you could help out.</p>gabor2010-08-10T17:46:55+00:00journalCPAN Testers 2.0: The death of via email is wrong.
http://use.perl.org/~jk2addict/journal/40488?from=rss
<p>I finally got around to installing perlbrew, 4 flavors of perl and updating some modules for recent perls. I've been sending a lot of email test reports lately.</p><p>Last night I got the email from bitbucket about CPAN Testers 2.0 and the death of sending reports via email with wiki links/instructions on how to setup<nobr> <wbr></nobr>.cpanreports/config.ini for a metabase id/transport via HTTP.</p><p>This is all well and good, but it feels wrong to me. I use CPAN::Mini. The point of which is partly to have CPAN when you're not online. The same reason I use git. With SMTP emails I could just queue up test reports in the local postifx and they would get delivered later when I'm online.</p><p>Now, that's is no more. I'm forced to be online to send HTTP reports. Seems like a bad idea. NOw, the only thing I can do is toggle off reporting when I'm offline, which really means I'll hate doing that and just turn off reporting all together.</p><p>Why did reports via email have to go away?</p>jk2addict2010-08-10T02:49:45+00:00journalTest::Builder2::Design
http://use.perl.org/~schwern/journal/40487?from=rss
<p>In an effort to shed some light on what Test::Builder2 is about, I took a few hours and performed a brain dump about its goals and design. You can see the result in the new <a href="http://github.com/schwern/test-more/blob/Test-Builder2/lib/Test/Builder2/Design.pod">Test::Builder2::Design</a> document.</p><p>The key design goals are 1) that it has to work, 2) that it has to work everywhere and 3) that it has to test everything. This throws out a lot of 98% solutions.</p>schwern2010-08-10T02:31:05+00:00journalApp::Office::CMS - A Canny, Microlight and Simple CMS
http://use.perl.org/~Ron+Savage/journal/40478?from=rss
<p>Hi Folks</p><p>It's slow work, but I <i>am</i> making progress on App::Office::CMS.</p><p>It's based on CGI::Application and friends, to help sustain the microlight claim.</p><p>Which Javascript library, I hear you all cry!</p><p>YUI. You should have guessed.</p><p>Only a few weeks now...</p><p>Cheers<br>Ron</p>Ron Savage2010-08-03T08:15:12+00:00journalMethod::Signatures returns! 5.12, func() and fast!
http://use.perl.org/~schwern/journal/40474?from=rss
<p>Chip submitted a minor performance patch to Method::Signatures today. That drove me to push out <a href="http://github.com/schwern/method-signatures/blob/v20100730/Changes">a new release</a> making it friendly to 5.12 and adding func() for non methods!</p><p>
func hello(:$greeting = "Hello",<nobr> <wbr></nobr>:$place = "World") {<br>
print "$greeting, $place!\n";<br>
}</p><p>
hello( place => "Earth" );</p><p>For those who don't know, one of the neato features of <a href="http://search.cpan.org/perldoc?Method::Signatures">Method::Signatures</a> is that it can <a href="http://search.cpan.org/~mschwern/Method-Signatures-20090620/lib/Method/Signatures.pm#Aliased_references">alias references</a> to make working with references less of a trial:</p><p>
func popn(\@array, $howmany) {<br>
return splice @array, -$howmany;<br>
}</p><p>
my @stuff = (1,2,3,4,5);<br>
my @last_three = popn(\@stuff, 3); # 3,4,5<br>
print @last_three;</p><p>It does this with the amazing <a href="http://search.cpan.org/perldoc?Data::Alias">Data::Alias</a> module. Unfortunately, 5.12 broke its black magic and its non-trivial to fix. Method::Signatures now makes Devel::Alias an optional dependency. If its available, it'll use it. Otherwise, no aliasing for you.</p><p>But that's ok, because perl5i makes working with references enjoyable. And while perl5i is adding its own simple signatures, they're forward compatible with Method::Signatures! They play together, so if you want perl5i and the full power of Method::Signatures you can have them.</p><p>
use perl5i::2;<br>
use Method::Signatures;</p><p>
func echo($message is ro) {<br>
say $message;<br>
}</p><p>Just make sure you load MS after perl5i. The last one loaded wins.</p><p>Finally, I was comparing Method::Signatures with MooseX::Method::Signatures and made a disturbing discovery. I always new MooseX::Method::Signatures would have a performance penalty, it does more checks than Method::Signatures, I just didn't realize how bad it was.</p><p>Here's comparing an empty signature: <code>method foo() {}</code>.</p><blockquote><div><p> <tt> Rate MMS MS Std<br>MMS 3207/s -- -100% -100%<br>MS 1498875/s 46644% -- -1%<br>Std 1508351/s 46940% 1% --</tt></p></div> </blockquote><p>That's showing MooseX::Method::Signatures is 450x slower than either Method::Signatures or a normal method call creaking out a mere 3500 method calls per second as compared to the 1.5 million it should be doing. And that's for a method with an empty signature!</p><p>To be clear, that's the speed of calling a method, not compiling them.</p><p>Here's one comparing a simple signature that requires a check, so MS can't optimize it away: <code>method foo($arg!) { return $arg + 1 }</code> That's a required positional argument.</p><blockquote><div><p> <tt> Rate MMS MS Std<br>MMS 2928/s -- -100% -100%<br>MS 983127/s 33481% -- -2%<br>Std 1005357/s 34240% 2% --</tt></p></div> </blockquote><p>3000 method calls instead of a million.</p><p>Now I'm the first to counter arguments bemoaning method call overhead. Usually it doesn't matter. Usually the extra cost of calling a method and checking arguments is insignificant compared to what that method actually does. And MooseX::Method::Signatures has features Method::Signatures does not, most significantly type checking. But my god! Three orders of magnitude of performance lost! And its not even using the extra MMS features. That's just too much.</p>schwern2010-07-31T00:49:55+00:00journalPerl 6 Is The Language Your Language Could Smell Like
http://use.perl.org/~schwern/journal/40472?from=rss
<p><a href="http://www.youtube.com/watch?v=owGykVbfgUE">Hello programmers</a>. Look at your code, now at Perl 6, now back at your code, now back at Perl 6! Sadly, your code is not written in Perl 6. But if you use <a href="http://rakudo.org/announce/rakudo-star/2010.07">Rakudo Star</a> then Perl 6 is the language your code could be written in!</p><p><a href="http://github.com/rakudo/star/downloads">Now Microsoft scented!</a></p>schwern2010-07-29T19:24:09+00:00journal"def" or "func"?
http://use.perl.org/~schwern/journal/40444?from=rss
<p>perl5i 2.3.0_01 now has <a href="http://twitter.com/perl5i/status/18391811333">basic methods and subroutine signatures</a> with code basically lifted straight from <a href="http://search.cpan.org/dist/Method-Signatures-Simple">Method::Signatures::Simple</a>. <a href="http://search.cpan.org/dist/MooseX-Declare">MooseX::Declare</a> got me addicted, now I want them everywhere.</p><blockquote><div><p> <tt>use perl5i::2;<br>
<br>def add($this, $that) {<br> return $this + $that;<br>}<br>
<br>method new($class: %args) {<br> return bless \%args, $class;<br>}<br>
<br>my $echo = def($arg) { return $arg };</tt></p></div> </blockquote><p>Its alpha for two reasons. First, I don't have time right now to really thoroughly test it, but I really want it.</p><p>Second, overriding "sub" is hard. <a href="http://search.cpan.org/dist/signatures">Its been done</a> but its a bit twitchy. Defining a new keyword is easy(er). So what should that keyword be? I've come up with two that have good arguments. "def" and "func". Both are short. "def" has the benefit of being used by other programming languages a Perl programmer is likely to encounter and not hate (Python, Ruby, Scala, Groovy). "func" is nice because it pretty clearly means "function" whereas "define" is a bit ambiguous.</p><p>perl5i currently does both. Only one will survive in version 3 (the other will be deprecated). Before you comment on which is your favorite, try it for a little bit. I found a difference between what I thought I like and what I actually use.</p>schwern2010-07-13T00:06:57+00:00journalPerl 6 Design Minutes for 30 June 2010
http://use.perl.org/~chromatic/journal/40433?from=rss
<p>The Perl 6 design team met by phone on 30 June 2010. Allison, Patrick, and chromatic attended.</p><p> <strong>Allison:</strong> </p><ul>
<li>working on Parrot packages for Debian experimental</li><li>seems like a good idea to do that before the 2.6 supported release</li><li>there was also a request for Rakudo packages</li><li>not sure if I'm the best person to do it</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>I'm sure we should package Rakudo Star</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>Debian had a packager for those, but I haven't looked at the packages</li><li>this'd be an early run of what we'll do with Rakudo Star</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>we're not quite ready for packaging that yet</li><li>maybe a couple of weeks</li><li>finished the <code>List</code> and <code>Iterator</code> types for the #30 release</li><li>adjusted Rakudo's <code>Associative</code> and <code>Positional</code> roles</li><li>much cleaner implementation now</li><li>that'll require a few small spec changes</li><li>redid Rakudo's container types</li><li>more robust</li><li>preparing for autovivification of hashes and arrays</li><li>expect to finish those in the next couple of days</li><li>there was no container model previously; the code was consequently crufty</li><li>lots of cleanup of incorrect assumptions</li><li>Rakudo lists are now properly lazy</li><li>comment syntax fixed</li><li>ROADMAP updated</li><li>fixed the meaning of <code>Nil</code>; it's defined, not undefined</li><li>added the sink prefix (?)</li><li>fixed setting of <code>$!</code> </li><li>started fixing bugs and closing tickets on Monday, did 15 or 20</li><li>mostly already fixed in the previous couple of weeks</li><li>looking at the implementation of the series operator</li><li>spec is self-contradictory or ambiguous or both</li><li>waiting for Larry's clarification</li><li>fixed a bug in <code>$*ARGFILES</code> </li><li>had a nice contribution of that implementation last week</li><li>that behavior works on any set of files, not just those on the command line</li><li>working on autoviv</li><li>have some regex backtracking bugs to fix</li><li>will work on closures after that</li><li>put together three new YAPC presentations</li><li>the Rakudo Star presentation will become a video cast or a blog post or both</li></ul><p> <strong>c:</strong> </p><ul>
<li>worked on a slew of Parrot optimizations for Rakudo</li><li>have a few more to go</li><li>might have to create a Rakudo branch temporarily</li><li>will try to help merge the new GC</li><li>working on a metamodel for Parrot objects, informed by Perl 6 and Moose</li></ul>chromatic2010-07-03T08:13:30+00:00journalModern Perl: The (Draft) Book
http://use.perl.org/~chromatic/journal/40423?from=rss
<p>This took longer than I expected, but <a href="http://www.modernperlbooks.com/mt/2010/06/modern-perl-the-book-the-draft.html">the draft of the Modern Perl book is available for review</a>. I'm especially interested in hearing from people who don't consider themselves expert Perl 5 programmers. The goal of the book is to explain how Perl 5 works (and how to write Perl 5 effectively) to help novices become adepts.</p>chromatic2010-06-28T23:43:33+00:00journalWhere The Hell Is Test::Builder2?
http://use.perl.org/~schwern/journal/40421?from=rss
<p>My progress and communication about the Test::Builder2 grant has been nothing short of appalling. There is a sort of herky-jerky progress where I figure out a design problem, push the code forward, then remember a use-case that throws a wrench in the whole design and the whole thing comes to a screeching halt again.</p><p>At the QA hackathon we elegantly solved the problem of things like <a href="ahref=">die-on-fail and Test::NoWarnings</a> but then ran afoul of things like Test::Warn and Test::Exception which runs tests inside of tests but those aren't actually part of the test stack.</p><p>Confused? I'll post more about it another time. Point is, TB2 continues to move forward, its just that there's long periods of rumination between sprints of development. And I get distracted by other projects. At this rate I'll be collecting Social Security before I collect the second half of the grant. I really want TB2 to happen, but something decisive has to be done. I work best with hard deadlines, so the plan is to clear a month for working mostly on TB2. A lot of the wibbling is trying to come up with the most elegant solution, but I usually have a less than elegant way to solve it and move forward. If its between an elegant TB2 that doesn't exist and a less elegant TB2 that does, well, go with the one that exists. With the way my schedule is looking, that will probably be mid-August to mid-September. If that doesn't produce an alpha, then I'll kill the grant.</p><p>That doesn't mean TPF gets nothing for your money. Chunks of TB2 can be harvested to improve TB1. Specifically, the TB2 formatting and history objects. The TB2 formatter makes the guts of TB1 cleaner, and it also allows it to produce something other than TAP. Used together, history and formatter allows non-Test::Builder based test frameworks to work together with Test::Builder providing even more flexibility. This is <a href="http://github.com/schwern/test-more/blob/Test-Builder2/lib/Test/Builder.pm">already done in the TB2 branch</a>.</p><p>Looking at the grant deliverables, most of it is done:</p><blockquote><div><p> <tt>* Split up global shared Test resources into individual objects<br> * The test counter<br> * The output filehandles<br> * The plan<br>
<br>* Allow hooks for global beginning and end of test functions.<br> * Ensure multiple hooks "stack"<br> * die on fail<br> * debug on fail<br>
<br>* Hooks for global beginning and end of test actions<br> * Example: A safer Test::NoWarnings<br> * Example: Don't cleanup temp files on failure so they can be debugged<br>
<br>* Allow for test output other than TAP<br>
<br>* Allow another Test::Builder-like module to work in the same process<br> as Test::Builder (for example, sharing the counter).<br>
<br>* Rewrite Test::Builder in terms of Test::Builder2.</tt></p></div> </blockquote><p>Here's what's not complete:</p><blockquote><div><p> <tt>* Split up localizable behaviors into objects<br>
<br>* Allow individual test modules to locally override Test::Builder2 behaviors<br>
<br>* Allow test modules to globally override Test::Builder2 behaviors<br> * How the plan works</tt></p></div> </blockquote><p>Since I'm not writing to the letter of the law, <a href="http://github.com/schwern/test-more/issues/labels/Test-Builder2">there's more than that to be done before release</a>, but the project does move.</p>schwern2010-06-27T19:16:09+00:00journalThe Post-YAPC Plan
http://use.perl.org/~schwern/journal/40420?from=rss
<p>I spent most of YAPC::NA mildly sick, sleep deprived and writing talks. Each of those things alone isn't so bad, but put all together meant I had time and energy enough to do my talks, discuss with people after, and that's about it. As a result, I was kind of dead in the head most of the time and didn't do a whole lot of interaction with people. I didn't feel like I got the most out of the one opportunity a year I get to hang out with huge gobs of Perl folk.</p><p>One of the things which I wanted to do at YAPC was get <a href="http://gitpan.integra.net/">gitpan</a> restarted. It can run right now, but the code is a mess and needs to be babied. It needs a rewrite. That rewrite was supposed to happen at YAPC but see above. I'm doing that now, using MooseX::Declare, perl5i and Path::Class just to mess around with them seriously. Also log4perl, which I'm finally learning a decade late. Its fun, far more pleasant than knocking it together without, once you learn to cope with Moose's idiosyncrasies. Better to learn the quirks of one complete system than nine incomplete ones.</p><p>That's what's absorbing my time right now. After that I want to add subroutine signatures to perl5i and the <a href="http://piratepad.net/ULub7Vjsgn">über file and directory objects</a>. They were supposed to be in, at least as a prototype, by YAPC but that didn't work out. Using MooseX::Declare, Path::Class and perl5i together has me drooling for them.</p><p>Will Coleda, representing the TPF, found me at YAPC and mercifully did not break my legs. We hashed out a plan to make a last stab at Test::Builder2 before calling the grant done. That's not going to happen until August, I'll post about that later.</p><p>Oh, and I have a talk to do at OSCON about how <a href="http://www.oscon.com/oscon2010/public/schedule/detail/14113">the world is going to end in 2038</a> assuming <a href="http://www.youtube.com/watch?v=ZW2qxFkcLM0">2012 doesn't claim the prize first</a>. And a two part <a href="http://opensourcebridge.org/proposals/420">Git tutorial for Drupal programmers</a> that I'm developing into a commercial class. And two paid clients to keep happy.</p><p>One thing I *don't* have to worry about is MakeMaker. Gird your loins, MakeMaker has provisionally been handed off to Matt Trout. Maybe I need to worry about it more...</p>schwern2010-06-27T18:34:30+00:00journalPerl 6 Design Minutes for 16 June 2010
http://use.perl.org/~chromatic/journal/40419?from=rss
<p>The Perl 6 design team met by phone on 16 June 2010. Larry, Allison, Patrick, Will, and chromatic attended.</p><p> <strong>Larry:</strong> </p><ul>
<li>documented <code>TOP</code> (again), and explained how parsing is initiated and how it actually works</li><li>series operator (<code>...</code>) now picks a monotonic function when using single characters as endpoints</li><li>STD can now catch duplicates involving <code>proto</code>s as well as <code>only</code>s</li><li>STD no longer advises removal of parens on spaceless <code>sub()</code> declaration</li><li>mostly advised sorear and pmichaud</li><li>Stefan is finishing the boostrap of the STD parser</li><li>also working on adding a parallel NFA and DFA engine</li><li>no, he doesn't want to generate all the states in advance</li><li>it works faster lazily</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>working on chroot environments with something more secure than chroot</li><li>relevant to building Parrot packages</li><li>looking at some bugs for Will</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>Rakudo developers decided not to make extra special effort to make a June release of Rakudo Star</li><li>the calendar works against us</li><li>the new date for the release is July 29</li><li>we're I comfortable with hitting that target</li><li>we won't be happy with the results of moving heaven and earth to release in June</li><li>there are lots of advantages</li><li>one disadvantage is not having Rakudo Star at YAPC::NA</li><li>one big advantage is using the supported Parrot 2.6 release as the basis</li><li>I'll write a post outlining the plan in the next couple of days</li><li>otherwise working on lists and interators in Perl 6 and Rakudo</li><li>after deciding to make iterators immutable, Larry and I realized that solves many problems</li><li>everything works out as plain as day after that</li><li>very happy with that design</li><li>the incorrect assumptions of the old model were pervasive</li><li>replacing the old pieces is taking a while, which is no surprise</li><li>this approach feels right though</li><li>the new branch does things no previous version could do</li><li>slices work much better, for example</li><li>metaoperators work properly</li><li>map is lazy</li><li>slurpy arguments in lists are lazy by default</li><li>no weird binding or action at a distance problems</li><li>plenty of changes to <code>Associative</code> and <code>Positional</code> roles</li><li>those are now super clean and may be lazy</li><li>more features work</li><li>~30 failing tests (not test files, just tests) now, ~500 last night</li><li>most of the current failures are minor</li><li>will try to merge the branch before the release</li><li>replacing lots of ugly code with fewer lines of elegant code</li><li>Jonathan and others have worked on lots of other pieces</li><li>adding plenty of new features</li><li>looking forward to tomorrow's release</li></ul><p> <strong>c:</strong> </p><ul>
<li>editing the Rakudo book</li><li>moving the Rakudo release date may let us have a printed book available about the same time</li><li>depends on how much there is left to write</li></ul>chromatic2010-06-26T17:07:30+00:00journalPerl 6 Design Minutes for 09 June 2010
http://use.perl.org/~chromatic/journal/40415?from=rss
<p>The Perl 6 design team met by phone on 09 June 2010. Larry, Allison, Patrick, and chromatic attended.</p><p> <strong>Larry:</strong> </p><ul>
<li>not much spec change this week</li><li>figured out a syntax for a regex block to return more than one cursor</li><li>based on <code>gather</code>/<code>take</code> </li><li>in STD hacking, continued to assist Stefan O'Rear in getting STD bootstrapped via viv</li><li>now that it's bootstrapped, we're refactoring things that make sense now</li><li>we're now starting to move bits of Cursor code from Perl 5 into Perl 6</li><li>refactoring the grammar for sanity of design</li><li>started upgrading STD to normal Perl 6 syntax where it previously catered to <code>gimme5</code>'s limitations</li><li>for example, switched STD's old<nobr> <wbr></nobr><code>.<_from></code> and<nobr> <wbr></nobr><code>.<_pos></code> hash lookups to using<nobr> <wbr></nobr><code>.from</code> and<nobr> <wbr></nobr><code>.pos</code> accessors</li><li>started the prep work for moving <code>EXPR</code> out of <code>STD</code> to make it generally available to any grammar wanting operator precedence</li><li>in STD parsing, made Perl 5 <code>$<</code> detection have a longer token to avoid confusion with match variables</li><li>STD no longer attempts two-terms detection on <code>infix_circumfix_meta_operator</code> </li><li>STD now parses <code>>>R~<<</code> correctly, or at least dwimmily</li><li>STD doesn't complain about P5isms in <code>printf</code> formats like <code>"%{$count}s"</code> </li><li>STD was parsing<nobr> <wbr></nobr><code>/m</code> and<nobr> <wbr></nobr><code>/s</code> with the opposite semantics</li><li> <code>termish</code> now localizes <code>$*MULTINESS</code> in its scope so that inner declarations aren't accidentally multified</li><li>STD now carps about <code>package Foo;</code> as a Perl 5 construct</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>talked to Chris Shiflett, a PHP developer, on someone from the PHP community to sit on the Parrot board</li><li>will be in the US for a few weeks</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>working on list simplification</li><li>had a couple of breakthrough ideas on Monday</li><li>working on the implementation now</li><li>worked out inversion lists for character class matching in regexes</li><li>will make them faster, especially with long ranges of character classes</li><li>fixed a half-dozen tickets in RT</li><li>fixed Rakudo hash constructors</li><li>fixed an intermittent bug with colon-pair signatures</li><li>two possible parses exist in STD, but we removed an unneeded one in Rakudo</li><li>fixed a bug with Parrot's <code>exit</code> opcode</li><li>NQP and PAST needed an update not to cheat with PASM constants</li><li>I fixed that too</li><li>Vasily added multisub and multimethod support to NQP, that was a big plus</li><li>fixed the <code>**</code> quantifier in regexes to understand surrounding whitespace</li><li>regex engine tried to match beyond the end of a string, so I added guards for that</li><li>will work on lists furiously before the next release</li><li>I don't think it'll take long</li><li>closures are next, hope to have those in place by the weekend</li></ul><p> <strong>c:</strong> </p><ul>
<li>released a new version of Pod::PseudoPod::LaTeX to support the various books in progress</li></ul>chromatic2010-06-24T12:24:33+00:00journalPerl 6 Design Minutes for 02 June 2010
http://use.perl.org/~chromatic/journal/40410?from=rss
<p>The Perl 6 design team met by phone on 02 June 2010. Larry, Allison, Patrick, Will, and chromatic attended.</p><p> <strong>Larry:</strong> </p><ul>
<li>mostly, I supported sorear in bootstrapping STD to use <code>viv</code> instead of <code>gimme5</code> </li><li>his stage 2 and stage 3 now output identical Perl 5 versions of STD</li><li>produces a huge amount of warnings</li><li>appears to require Perl 5.12 at the moment</li><li>working on both of those</li><li>S03 refines hyper dwimminess to be more like APL, with modular semantics</li><li>S02 refines <code>Blob</code>s to simply be immutable <code>Buf</code>s, with similar generic characteristics</li><li>S02 now describes native <code>blob</code> types</li><li>implemented post-declaration checks for <code>BEGIN</code> and <code>use</code>, since those can't wait for end of file</li><li>STD no longer loses existing bindings when we go to a sublanguage</li><li>STD now uses <code>$*GOAL</code> variable only as informative, never as a "stopper"</li><li>instead, we create a <code><stopper></code> rule for <code>$*GOAL</code> if necessary</li><li>can check for that only, instead of that or <code>$*GOAL</code> </li><li>answering lots of questions on how STD and <code>viv</code> work besides that</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>did a lot of research on graph color algorithms for register usage algorithms</li><li>will finish my finals on Monday</li></ul><p> <strong>Will:</strong> </p><ul>
<li>trying to herd the discussion of dynop libraries</li><li>a recent branch to close an old ticket broke a lot of assumptions</li><li>some bugs have become more visible because of these changes</li><li>hope to get that cleaned up this week</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>I liked your suggestion of bringing back the <code>getstderr</code> and related opcodes</li></ul><p> <strong>Will:</strong> </p><ul>
<li>trying to resurrect Partcl</li><li>stuck on a TT #389 closing issue</li><li>not sure how to fix that, the way things are now</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>working on the iterator and list design</li><li>brainstorming the implementation</li><li>will implement somethine one way or another this week</li><li>people keep implementing workarounds for the current system</li><li>they'll bite us eventually</li><li>Moritz and I worked on making the regex engine returning real Perl 6 objects</li><li>that mostly works</li><li>exposes some places where lists don't work exactly right</li><li>the workarounds there made me replan the list and iterator implementation</li><li>answered some questions online</li><li>Jonathan added a better backtrace algorithm for Rakudo</li><li>reports Perl 6 source lines instead of PIR lines</li><li>I'll review his code</li><li>think I can borrow it for NQP for all HLLs</li><li>Jonathan reports that it was a lot easier in NQP than PIR</li></ul><p> <strong>c:</strong> </p><ul>
<li>trying to answer a few Parrot design questions</li><li>looking at the continuation of design from Perl 1 - 4 to Perl 5 and Perl 6</li><li>hope to have coding time soon</li></ul>chromatic2010-06-22T01:12:29+00:00journalThe Environment under 5 web servers
http://use.perl.org/~Ron+Savage/journal/40409?from=rss
<p>Hi Folks</p><p>A comparison of env vars provided by 5 web servers is available <a href="http://savage.net.au/Perl/html/env.report.html">here</a>.</p>Ron Savage2010-06-21T03:53:44+00:00journalPerl 6 Design Minutes for 26 May 2010
http://use.perl.org/~chromatic/journal/40408?from=rss
<p>The Perl 6 design team met by phone on 26 May 2010. Larry, Allison,
Patrick, Will, and chromatic attended.</p><p> <strong>Larry:</strong> </p><ul>
<li><nobr> <wbr></nobr><code>:()</code> syntax is now always signature</li><li>we now use <code>foofix:[...]</code> as the general op form instead of <code>foofix:(...)</code> </li><li>refactored the sematics of<nobr> <wbr></nobr><code>:nth</code> and<nobr> <wbr></nobr><code>:x</code> </li><li><nobr> <wbr></nobr><code>:nth()</code> now only ever takes a monotonically increasing list</li><li>S03 now explains how "not-raising" works on <code>!=</code> and <code>ne</code> </li><li>it now basically matches the intuitions of an English speaker via HOP definition of negate metaop</li><li>STD sometimes didn't require semi between statements</li><li>statement modifiers are expression terminators but not valid statement terminators</li><li>an unexpected statement modifier word like <code>if</code> could terminate one statement and start another</li><li>fixed up backslashes in character classes to allow <code>\s</code> etc and reject <code>\u</code> etc</li><li>STD was accidentally using the same lexpad for different multis</li><li>Cursor now treats<nobr> <wbr></nobr><code>:()</code> on name extension as a signature always, never as a categorical</li><li>we shouldn't introduce the stopper for circumfix until we're in the circumfix, or we can't use the same char on both ends</li><li>placeholder messages error messages are now much more informative and correct</li><li>we now disallow use of placeholder after same variable has been used as a non-placeholder, even for an outer reference</li><li>renamed add_macro (which it doesn't) to add_categorical (which it does)</li><li>participating frequently in discussions on semantics both on irc and p6l</li><li>working closely with sorear++ as he brings viv closer to bootstrapping, yay!</li><li>soon can bootstrap past gimme5</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>worked on Pynie this week in my limited spare time</li><li>one goal is to generate the parser directly from the Python grammar</li><li>wrote a small, lightweight PEG parser which generates a match tree from the Python 3 grammar</li><li>can generate a lexer directly</li><li>right now it creates a parse tree</li><li>looks similar to the match nodes of NQP-rx</li><li>dumps out a tree to the PIR parser</li><li>working on PaFo elections for next year, but trying to delegate those</li><li>will have more time after June 7</li></ul><p> <strong>Will:</strong> </p><ul>
<li>working on Perl 6 advent tests</li><li>many more people are doing more work than me</li><li>liasing with Rakudo folks for any important Parrot bugs before the Rakudo Star release</li><li>my current direction there is "don't break anything"</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>sorear added hash flattening to NQP</li><li>lots of work on closures in PAST and NQP</li><li>they properly clone</li><li>fixes some lexical problems</li><li>need to get that to work in Rakudo</li><li>that's tougher; Rakudo has to wrap Parrot subs</li><li>wrapper object needs cloning as well, along with its attributes</li><li>we'll add a new PAST node type to help</li><li>that node understands contexts</li><li>essentially a way to add void context optimizations to your AST</li><li>that solves many problems in Rakudo beyond closures</li><li>added a setting into NQP along with its test suite</li><li>not automatically loaded, but available</li><li>contains standard hash and array methods</li><li>Parrot's ops2c project uses those</li><li>other people can update and enhance that setting as necessary</li><li>NQP also has the ability to parse type names</li><li>NQP doesn't do anything with them yet</li><li>eventually they'll allow the use of multis</li><li>cleaning up some NQP bugs regarding lexicals and package storage of subs</li><li>Bruce Keeler enabled variable interpolations in regexes</li><li>working on some refactorings to simplify that approach</li><li>works in NQP and Rakudo now</li><li>that's a feature we've never had before</li><li>Rakudo's REPL now works better, thanks to sorear</li><li>HLLCompiler now written more in NQP as part of that</li><li>NQP now can do <code>eval</code> </li><li>NQP remembers lexicals in interactive mode now</li><li>adding that to Rakudo is more complex</li><li>working on that</li><li>pleased with the progress on #perl6</li></ul><p> <strong>c:</strong> </p><ul>
<li>reviewing long term plans for GC and Lorito</li><li>should have more time free soon</li></ul>chromatic2010-06-20T19:40:02+00:00journalPerl 6 Design Minutes for 19 May 2010
http://use.perl.org/~chromatic/journal/40401?from=rss
<p>The Perl 6 design team met by phone on 19 May 2010. Larry, Will, and
chromatic attended. Patrick added his notes later.</p><p> <strong>Larry:</strong> </p><ul>
<li>S03 makes more explicit that doctrine that <code>~~</code> topicalizes, and removes smartmatch table fossils that automatically fall out from that</li><li>S05 renames 'accent' to 'mark' for better Unicode conformance</li><li><nobr> <wbr></nobr><code>:a</code> and<nobr> <wbr></nobr><code>:aa</code> changed to<nobr> <wbr></nobr><code>:m</code> and<nobr> <wbr></nobr><code>:mm</code> </li><li>S05 disrequires retroactive semantics on<nobr> <wbr></nobr><code>:samecase</code> and<nobr> <wbr></nobr><code>:samemark</code> </li><li>the method form must now explicitly add case or mark modifiers to the pattern</li><li>regularized <code>mm//</code> to <code>ms//</code> to avoid confusion with new<nobr> <wbr></nobr><code>:m</code> ignoremark option</li><li>STD now does a bit better at diagnosing bogus <code>??!!</code> constructs of various sorts</li><li>STD now correctly adds operators to symbol tables as subs</li><li> <code>CORE.setting</code> now has protos of all the operators so they can be recognized as subs too</li><li>Cursor now canonicalize operator names in the symbol table</li><li>btw, not quite like specced</li><li>STD now reads user's mind on '<code>Str $toto</code>' to intuit missing declarator</li><li>STD now properly diagnoses a typename between routine declarator and sub name</li></ul><p> <strong>Will:</strong> </p><ul>
<li>working on code for Carl Masak, trying to get his poker code example running on Rakudo</li><li>both fun and frustrating</li><li>some stuff doesn't quite work yet</li><li>going through the Advent examples</li><li>adding them to spectests</li><li>make sure we won't regress on such public examples</li><li>other people are helping with that now</li></ul><p> <strong>c:</strong> </p><ul>
<li>will get back to editing the Rakudo book soon</li><li>hope to have it in print by YAPC, but no guarantee</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>fixed closures in NQP, as a precursor for fixing them in Rakudo</li><li>worked with sorear on REPL in Rakudo and PCT in general</li><li>ported the NQP "standard library" done by japhb++, bacek++, and many others into the nqp-rx repository and made it part of the standard build sequence for nqp and Parrot</li><li>decided we need a new "context sensitive" node type in PAST, will be used to create proper closures and to handle sink context</li><li>worked with bacek on adding better multimethod support to PAST and nqp-rx</li><li>discovered a problem with lexical subs in NQP being automatically entered into the package namespace (and some existing code relying on this behavior)</li><li>did some initial fixes to at least get things entered properly, but a complete fix may require a deprecation cycle</li><li>plan to review others' patches this week</li><li>plan to fix REPL, closures, and sink context in Rakudo (since those are currently large pain points)</li><li>plan to work on loops and iterators after that</li></ul>chromatic2010-06-16T21:38:09+00:00journalPerl 6 Design Minutes for 12 May 2010
http://use.perl.org/~chromatic/journal/40400?from=rss
<p>The Perl 6 design team met by phone on 12 May 2010. Larry, Allison, Patrick, and Will attended.</p><p> <strong>Larry:</strong> </p><ul>
<li>clarified usage of brackets around infixes</li><li>added various 128-bit types to the spec; we might make them arbitrarily extensible via role</li><li>at least LLVM could support this, even to non-powers-of-two sizes</li><li>modernized the paleolithic grammatical category description in S02</li><li>STD now uses double-quote rules for interpolating <code>@foo[]</code> into regex</li><li>STD now gives better message on <code>1__3</code> </li><li>added the specced 128-bit types to CORE.setting</li><li>added <code>minmax</code> function to CORE.setting</li><li>implemented <code>circumfix:«X Y»</code> as grammar derivation</li><li>currently only allows a <code> >> inside</code></li><li>now also recognizes <code>foofix:("\x[face]")</code> and <code>foofix:("\c[YOUR CHARACTER HERE]")</code> without actually evaluating</li><li>playing with factoring <code>yaml</code> out of <code>gimme5</code>, since <code>viv</code> is not likely to go that route.</li><li>mostly just answered a lot of questions on irc</li><li>egged people on about concurrency issues</li></ul><p> <strong>Patrick:</strong> </p><ul>
<li>thought on handling closures properly</li><li>have a solution, just need some time to implement</li><li>discussion on changes to CodeString</li><li>work on compiler toolkit to avoid CodeString, using StringBuilder instead where possible, in PCT, NQP, and rakudo. Pretty easy, no downstream projects block on a deprecation issue</li><li>after that, lists</li><li>also been answering questions on interactive mode (REPL) for rakudo et al. (the issue with losing lexicals)</li></ul><p> <strong>Allison:</strong> </p><ul>
<li>resolved the git conversation pretty well (for Parrot's repo migration)</li><li>worked on a pure PEG parser (following the paper), straight PIR, single day; now self-parsing. Interesting project, is lightweight. currently has memoization, but that might not be right for us because of backtracking. With some more effort, could probably handle EBNF form (useful for python)</li><li>could be setup for developer status for Debian which will improve our packaging status for Debian and Ubuntu</li></ul><p> <strong>Will:</strong> </p><ul>
<li>Parrot CodeString performance improvements</li><li>we're definitely faster in branch, but some feedback from pmichaud should help us clean up the API a bit as well, look for those to hit trunk in the next few days</li><li>Parrot makefile deps cleanup</li></ul>chromatic2010-06-16T01:47:02+00:00journalRepost: Berkeley ICSI Internet/ISP connexion survey
http://use.perl.org/~Ron+Savage/journal/40383?from=rss
<p>Hi Folks</p><p>Don't you just hate that?</p><p>After posting this the first time, I posted another article soon after, and due to a design fault on use.perl.org's home page, only the last shows up, under 'Recent Journals'.</p><p>I emailed pudge about it, so perhaps something will happen...</p><p><a href="http://netalyzr.icsi.berkeley.edu/index.html">The Survey (requires Java)</a></p><p><a href="http://www.newscientist.com/article/dn18953-understanding-your-netalyzr-results.html?full=true">New Scientist's explanation</a></p>Ron Savage2010-06-05T06:46:43+00:00journalBCVI 3.0 Hits CPAN
http://use.perl.org/~grantm/journal/40379?from=rss
<p>My big news today is that Version 3.0 of bcvi is now available on CPAN.
If you have no idea what bcvi is then you'll be pleased to know I've written
<a href="http://sshmenu.sourceforge.net/articles/bcvi/">this article</a> to answer all
your questions - it even has pictures!</p><p>Way back in 2007 I knocked up a proof-of-concept implementation of a somewhat
crazy idea. I used it for a while and found it useful so I
<a href="http://www.perlmonks.org/index.pl?node_id=611462">shared it on PerlMonks</a> to
see if other people found it useful too. That was version 1.0.</p><p>Over time I fleshed out the core to make something more robust, more secure and
more useful. But I never released it publically because it always seemed like
the sort of tool that would be most useful to a person who hacked it into a
form that suited them. I really had no idea how to release and maintain a tool
that was meant to be hacked. So I kept it to myself and continued to find it
useful. That was version 2.0.</p><p>Eventually I realised that what I needed was a solid core of infrastructure
code and a plugin API that would allow people to hack the core without editing
the script itself. Quite why it took me so long to realise this, I couldn't
say. After all it's exactly what I did with <a href="http://sshmenu.sourceforge.net/">SSHMenu</a> and that has worked out very well.</p><p>The problem was that I didn't have a solid core of infrastructure code. What
I had was a proof-of-concept script that had some of the rough edges knocked
off and some new shiny bits bolted on. So earlier this year I set about
rewriting bcvi in a more extensible way. Then to prove the new plugin API,
I wrote a few simple plugins. Now it seems to be in a stable enough form for
me to call it version 3.0.</p><p>And so <a href="http://search.cpan.org/dist/App-BCVI/">it's released</a>. There's even some
documentation for the plugin API. It'll be interesting to what, if anything,
people make of it.</p><p> <small>Cross posted from <a href="http://grantmclean.vox.com/library/post/bcvi-30-hits-cpan.html">my blog</a>.</small></p>grantm2010-06-03T21:08:19+00:00journalVolunteering thru http://goodcompany.com.au
http://use.perl.org/~Ron+Savage/journal/40376?from=rss
<p>When I'm between contracts, I do some volunteer work thru<br><a href="http://goodcompany.com.au/">goodcompany</a>, where small community groups post requests ('wishes') for people ('angels') to help ('grant the wish').</p><p>I only respond to Web/IT requests, but there are a range of categories into which requests can be put.</p><p>In Australia, there are between 600,000 and 700,000 such community groups, and many share the same sorts of problems, e.g. managing lists of contacts and donors.</p><p>So, I thought I'd report of on a few projects I've helped with, most of which are for charities:</p><p>o The East West Overseas Aid Foundation</p><p>They donate money to India for property and school classes, for example.</p><p>At first, I just helped with their list of contacts. But I'd seen a number of groups struggling with Excel for this, and ended up writing App::Office::Contacts and *::Donations, although they're not yet ready to use my code.</p><p>Now, we're working on bringing their web site up-to-date.</p><p>It'd be nice if there was a very-light-weight CMS in Perl we could host of a VPS.</p><p>On CPAN I found Miril, but sometimes it used MS-DOS slashes, (in config files) and I didn't feel like debugging it. And I've have to redesign the interface, to start with.</p><p>o Association for Children with a Disablity</p><p>I met a senior manager, who quickly got serious, making a small but revealing derogatory comment about my clothes!</p><p>We had a long talk anyway. She'd been quoted $16,000 by a local MS-oriented computer shop to do this project.</p><p>I offered to do it for %10 of that, or even for free. But no, a couple of weeks later she emailed saying my help wasn't wanted. Very strange.</p><p>o Windermere Child and Family Services</p><p>This was my first project thru goodcompany.</p><p>This charity had bought an Australian donation manager program - imaginatively called DonMan -, but had never used it.</p><p>So I wrote a bit of Perl to reformat several Excel spreadsheets into a CSV file acceptable to DonMan, and that was it.</p><p>o Court Network</p><p>This is the latest project. Attending court can be a bewildering experience for people who are most likely going to court due to some disaster in their lives anyway.</p><p>So, Court Network has a stable of about 450 volunteers who accompany the court user thru the process, both here in (the state of) Victoria, and in Queensland.</p><p>They had a paper-based system of matching up court users with volunteers, so I've written a classic web app to replace that.</p><p>When it goes live, the public will be able to submit details themselves, rather than go thru Court Network's office staff.</p><p>And the latter have extra features (Search, Update, Reports).</p><p>They're a non-technical group (a common situation), and so far haven't been able to tell me who hosts their web site (some other volunteer process), so we still have to deal with getting CGI and database features working.</p><p>And my contact there is going to get DreamWeaver training, so at least I won't be dealing with web site content.</p><p>o Life's Little Treasures Inc</p><p>This is a support group for women who've had premature babies.</p><p>Indeed, some premmies are still in hospital a year after birth, so their problems must be major.</p><p>In the end, this group chose Joomla, since they wanted to expand their on-line forum network's power, now that they're handing out brochures to all mums with new-borns, in some hospitals, not just to mums with premmies.</p><p>News flash: I checked their outstanding wish, and they're now asking for a WordPress export. I guess they just couldn't find a volunteer to help with Joomla. Or perhaps the Joomla side of things has been sorted out.</p><p>I'm thinking of getting East West (above) off TYPO3 and onto WordPress, but that's a coincidence (perhaps).</p><p>o Australian Karen Foundation</p><p>The Karen are an ethnic group in Myanmar, who are being genetically exterminated by the psychopaths who run Myanmar.</p><p>Some Karen have fled into a refugee camp in Thailand, where the Thai government gives them some support, and has just a few weeks ago even connected them to the internet, albeit only a couple of hours a day (I think).</p><p>Someone from a town near the camp visits occasionally to repair their PCs. They have about 10 machines, most of which work most of the time. The machines run MS Windows, but are not networked.</p><p>The A. Karen Foundation collects 2nd hand laptops from Australian companies and someone carries them over to Thailand once a year or so.</p><p>I've been collecting info on freeware directories, and on universities where free courses on learning English, maths, etc, can be downloaded.</p><p>I put the info into a <a href="http://tiddlywiki.org/wiki/Main_Page">TiddlyWiki</a> - a brilliant 1-page-wiki manager.</p><p>o Lastly, Cottage by the Sea</p><p>This is a holiday/respite home for children, on the other side of Port Phillip Bay from where I live.</p><p>They are 120 years old this year, and are very slowly digitising their records (photos, annual reports, list of children who've attended).</p><p>I've offered to design a database to hold these records, and to write a search engine for people researching the historical record.</p><p>We'll see what happens.</p><p>o Summary</p><p>I've skipped a few places where I went and just had one meeting.</p><p>Nevertheless, you can see there is no way of predicting what sort of work comes up, or what it will entail, exactly.</p>Ron Savage2010-06-03T01:16:10+00:00journalBerkeley ICSI Internet/ISP connexion survey
http://use.perl.org/~Ron+Savage/journal/40375?from=rss
<p>Hi Folks</p><p><a href="http://netalyzr.icsi.berkeley.edu/index.html">The Survey (requires Java)</a></p><p><a href="http://www.newscientist.com/article/dn18953-understanding-your-netalyzr-results.html?full=true">New Scientist's explanation</a></p>Ron Savage2010-06-02T23:08:50+00:00journal