kid51's Journal kid51's use Perl Journal en-us use 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:26:30+00:00 pudge Technology hourly 1 1970-01-01T00:00+00:00 kid51's Journal Corehackers Project: Thoughts on Process So I'm sitting in a conference hall at <a href="">YAPC</a> on either the second or third day of the conference. A veteran member of the Perl community makes a presentation in one of the short time slots about a new project in which people can help improve Perl and its ecosystem. The presenter defines a body of existing code which would benefit from study by fresh eyeballs. Such study would lead to refactoring and improvements in testing and documentation, making the code more useful and maintainable over the long run. Participants in this project would be seen as assisting the current authors/maintainers of the targeted codebases. Those authors/maintainers would retain final say as to what contributions from the new project would actually get applied. The presenter is one of the relative handful of people in the community who can actually inspire others to devote their free time to new open source development projects. I sign up. <p> I could be talking about the <a href="">Perl 5 Corehackers project</a> introduced by <a href="">Chip Salzenburg</a> at <a href="">YAPC::10 in Pittsburgh last month</a> -- but I'm not. More precisely, I'm not talking about the Corehackers project *yet*. I'm talking about the <a href="">Phalanx Project</a>. </p><p> The Phalanx Project was an idea first introduced by Andy Lester in 2003. In the Phalanx project, groups of Perl developers would select frequently used -- but non-core -- CPAN distributions and, with a green light from the authors or current maintainers of those distributions, refactor them, write more tests for them and improve their documentation. At first few people knew of the Phalanx Project, but Andy retooled it somewhat and presented it at <a href=";source=web&amp;ct=res&amp;cd=2&amp;;ei=6ElrSqPjC6iTtgeklbXHBQ&amp;usg=AFQjCNF9G_BTQV3PBvdgfAWWLEUyZ95GFg&amp;sig2=cfwMNQW-x7ac-AyVJrNOvQ">YAPC::NA::2004</a> in Buffalo, which is where I first heard about it. </p><p> By the summer of 2004 I had been the lead organizer of <a href="">Perl Seminar New York</a> for four years, had begun contributing distributions to CPAN, and had begun speaking at YAPCs in Canada and the United States. But much of my work was done working by myself at home and I was eager to play a role other than meeting organizer and to collaborate more directly with other Perl folks. I seized on the idea of the Phalanx Project as a hook to gather other New York City Perl people in to working on a project collectively, with face-to-face hacking being the most important aspect of the collective work. </p><p> I've spoken about our part in the Phalanx Project elsewhere, so let me get to the essentials. By June of 2005 we (Marc Prewitt, David H Adler, Alex Gill and myself) had done major work on two CPAN distributions: <a href="">Text-Template</a> and <a href="">HTML-Template</a>. We submitted our work to the authors of each distribution. <a href="">Marc and I presented on the Phalanx project at YAPC::NA::2005 in Toronto</a>. </p><p> And then, silence. Despite repeated nudging, both by email and in person, we got no feedback on our work from the distribution authors -- for years. Finally, in 2007, quite a bit of our code was incorporated into one of the distributions and we got a commendation from the distribution's author. On one of the few occasions when I ever met that distribution's author in person, he commented, "Don't break it. It's my baby." (It was, I believe, his first CPAN distribution.) As for the other distribution: We never got feedback from its author and it appears none of our work was incorporated into the one CPAN release which that distribution has had in the past four years. </p><p> The members of the New York City part of the Phalanx Project learned a tremendous amount about careful preparation and testing of libraries in the process, but only part of our work actually made it out to the larger Perl community. My impression is that that was the outcome in the one other locality in which a group of people came together to <b>phalanx</b> a CPAN distribution. So the Phalanx Project was only modestly successful. </p><p> I tell this story now because there are many similarities between the Phalanx Project and the Perl 5 Corehackers Project. Fast forward from YAPC::NA::2004 at the University at Buffalo to YAPC::10 (NA::2009) at Carnegie-Mellon University in Pittsburgh. For Andy Lester as inspiring presenter, see Chip Salzenburg. For target codebase, see Perl 5 core instead of prominent CPAN distributions. For CPAN distribution authors, substitute the Perl 5 Porters. </p><p> But the thrust of the two projects is remarkably similar: Gather both veterans and, especially, newcomers -- people who may previously have never thought themselves qualified to work on the targeted code base -- to hack on important parts of the Perl 5 ecosystem and generate patches that the 'owners' of the code -- those who have commit bits -- would, it is hoped, apply to the code base. </p><p> And there's the rub. You could work your butt off refactoring some part of the Perl 5 core distribution, have all the tests you need to demonstrate that you haven't broken anything and have written clear, helpful documentation -- and still not get any feedback from the people who have the final say on the work you've done. You don't have a commit bit. </p><p> So while I was very glad to hear Chip's presentation about the Corehackers Project -- and am even meeting with David Golden this week to discuss how I might participate -- I must confess to some trepidation about how the relationship between the Perl 5 Porters and the Corehackers Project will evolve. My guess is that those who choose to participate in the Corehackers will develop considerable psychological investment in their work. And it's evident from the recent controversies over the Perl 5.10 release process that the Perl 5 Porters have considerable psychological investment in their work and the ways they have evolved to conduct that work. I could even see Porters saying, "Why do we even need a Corehackers project? Nothing's keeping you from submitting patches to p5p today." </p><p> So the Corehackers Project, to be successful, must face some important questions, both on its own and in conjunction with Perl 5 porters. Among these questions, at least two occur to me right off the bat: </p><ul> <li>How will feedback be provided?</li><li>How will differences between corehackers and porters be resolved?</li></ul> kid51 2009-07-25T18:28:27+00:00 journal Seek better response to "How Is Perl 6 Doing?" I often attend other (non-Perl) user groups in New York City -- mostly Linux and BSD groups. From time to time, when I identify myself as a Perl programmer, I am asked -- or, should I say, I am taunted with -- the question, <i>"How is Perl 6 coming along?"</i> <p> Now, up until two years ago, I simply ignored that question, because I had my hands full learning to become a good Perl 5 programmer and had no time/tuits to follow anything related to Perl 6. </p><p> But since I was recruited to the Parrot project in November 2006, I've had to take that question more seriously. My stock response goes like this: </p><blockquote><div><p> <i> I don't have the time to follow developments in the Perl 6 language specification. I </i>do<i> follow the development of the Parrot virtual machine. We expect to have our 1.0 release during the first half of 2009. You can view <a href="">the Parrot roadmap</a>.</i></p></div> </blockquote><p> Of course, that's not the response that the questioner was looking for. So what I would like to know is if there is one site to which I can direct such questioners which says: </p><blockquote><div><p> <i> 1. How complete is the development of the Perl 6 language specification.</i> </p><p> <i> 2. What percentage of the completed Perl 6 language specification has been implemented on Parrot (Rakudo)?</i></p></div> </blockquote><p> If we don't have such a site, what would be the obstacles to developing one? </p><p> Thank you very much.</p> kid51 2009-01-05T03:23:41+00:00 journal [ANNOUNCE] Parrot 0.7.0 <p> Parrot release manager Bob Rogers wrote on Tuesday, August 19: </p><p> On behalf of the Parrot team, I'm proud to announce Parrot 0.7.0 "Severe Macaw." <a href="">Parrot</a> is a virtual machine aimed at running all dynamic languages. </p><p> Parrot 0.7.0 is available via CPAN (soon), or follow the download instructions at <a href="">here</a>. For those who would like to develop on Parrot, or help develop Parrot itself, we recommend using Subversion on the source code repository to get the latest and best Parrot code. </p><p> Parrot 0.7.0 Highlights: </p><ul> <li>The <a href="">new concurrency implementation</a> makes its debut in 0.7.0.</li><li>Rakudo (Perl 6) now supports class attributes and multiple dispatch, plus some metaclass support, among others.</li></ul><p> Parrot 0.7.0 News: </p><ul> <li>Specification <ul> <li>PDD27: add multisub lookup</li></ul></li> <li>Implementation <ul> <li>new concurrency implementation (see PDD25)</li><li>Exception PMC now captures a return continuation</li><li>improved PMC encapsulation (Iterator, Key, Pair)</li></ul></li> <li>Languages <ul> <li>Cardinal (Ruby): <ul> <li>class variables</li><li>parsing improvements</li><li>minor additions to class builtins</li><li>add support for block parameters to functions</li></ul></li> <li>Lua: <ul> <li>various language fixes</li><li>refactor all libraries (namespace, method registration)</li><li>add a OpenGL binding (still incomplete)</li><li>lost user back trace (see ppd25 &amp; pushaction)</li></ul></li> <li>Pipp (PHP): <ul> <li>add support for while- and for-loops</li><li>add support for increment and decrement</li><li>designate PHP 5.3 as the reference implementation</li><li>improve support for string literals</li></ul></li> <li>Pugs (Perl 6): <ul> <li>removed due to bit rot</li></ul></li> <li>Rakudo (Perl 6): <ul> <li>now over 2200 passing spectests</li><li>updated the Rakudo roadmap</li><li>Perl 6 multi dispatch</li><li>dispatch with slurpies</li><li>class attributes ("my $.x")</li><li>anonymous classes</li><li>OO and metaclass improvements (.WHAT,<nobr> <wbr></nobr>.WHICH,<nobr> <wbr></nobr>.WHENCE)</li><li>additional builtin methods and subs</li><li>improved make test targets and harness</li></ul></li> <li>Tcl: <ul> <li>implement [lreverse], [lsort -command]</li><li>allow [incr] to autovivify</li><li>update tclsh spec target to 8.5.3</li><li>fix bug in TclDict PMC, allowing ~200 more [dict] spec tests to pass</li><li>update 'make spectest' fudging, using TODO instead of SKIP if possible</li></ul></li> </ul></li> <li>Compilers <ul> <li>PCT: <ul> <li>:scope('register') for PAST::Var nodes</li><li>allow invocant specification in attribute scope PAST::Var nodes</li><li>correct ordering of sub generation from POST</li><li>add 'loadinit' attribute to PAST::Block for block initialization</li></ul></li> <li>PIRC: <ul> <li>PIR registers now use the vanilla register allocator</li><li>all PASM output now uses PASM registers</li><li>all<nobr> <wbr></nobr>.locals and $registers are mapped</li><li>clean-up of grammar, back-end and documentation</li><li>implemented constant folding</li><li>implemented instruction selection</li></ul></li> </ul></li> <li>Configuration <ul> <li>tests now clean up after themselves</li><li>improved parallel test support</li><li>ports/cygwin added</li><li>Darwin problems fixed</li></ul></li> <li>Tools <ul> <li>parrot_debugger renamed from pdb, numerous tweaks</li></ul></li> <li>Miscellaneous <ul> <li>IMCC cleanups</li><li>:vtable implies self in PIR</li><li>modest core speed improvements</li><li>Cygwin support improved</li><li>"say" now an opcode (was dispatched to a method; see Deprecations)</li></ul></li> <li>Deprecations <ul> <li>".pragma n_operators" is deprecated</li><li>old PASM register syntax (without "$") is deprecated</li><li>bare (unquoted) method names are deprecated</li><li>"#line" will be replaced with ".line"</li><li>".HLL_map" syntax will change</li><li>".loadlib" is now separate from ".HLL"</li><li>mmdvtregister and mmdvtablefind opcodes are deprecated</li><li>removed getfd, getclass opcodes</li><li>removed IMCC syntax that treated some methods as builtins</li><li>removed numeric get_attr and set_attr vtable entries</li></ul></li> </ul><p> Many thanks to all our contributors for making this possible, and our sponsors for supporting this project. Our next scheduled release is 16 Sep 2008. </p><p> Enjoy! </p><p> -- Bob Rogers</p> kid51 2008-08-21T02:33:46+00:00 journal I vote No on proposed CPANTS metrics Gabor Szabo has requested comments on his <a href="">proposal</a> for addition of new metrics to CPANTS. <p> I vote No, for most of the same reasons already posted by chromatic. </p><p> I like <a href="">Test::NoWarnings</a>. Its author, <a href="">Fergal Daly</a>, is one of the sharpest people in the Perl QA world. But Test::Warnings is not part of the Perl core distribution. So to earn this proposed Kwalitee metric, I would have to include Test::NoWarnings underneath the <code>t/</code> directory in each one of my CPAN distributions. That's pointless.</p> kid51 2008-06-09T22:43:19+00:00 journal Linus Torvalds on git: Disappointing The other night I watched the entirety of <a href="">Linus Torvald's May 2007 talk</a> at Google Mountain View on <a href="">git</a>, the version control system he wrote and uses to manage the Linux kernel. I have to say that my socks were not knocked off by <i>git</i>, but, more importantly, I was not favorably impressed with Torvalds himself. <p> To the latter first: Torvalds opens his talk by saying that for the purpose of his talk, anyone who defends CVS or CVS-based version control systems such as Subversion is "ugly and stupid." At this point one would assume that he is speaking tongue-in-cheek. But he repeats this characterization a number of times in the 70-minute talk and further characterizes the authors of Subversion as "morons." This leads me to believe that he is not simply having a little fun but does in fact hold the authors and users of these VCSes in contempt. In his characterization of the human beings writing or using these VCSes I find no trace of generosity -- only scorn. </p><p> Torvalds' hostile tone toward the people involved with other VCSes ultimately undermines the case he makes for <i>git</i>, IMO. I'm certainly open to an argument that what he characterizes as 'distributed' source code management is better than a 'centralized' system. But I would want to hear that argument from someone who is not heavily invested in dissing the people who disagree with him. </p><p> If there are any readers of this post who were present in the Google audience for Torvalds' talk, I would welcome comment as to whether my impression as a viewer of the video matches yours.</p> kid51 2007-07-01T17:05:46+00:00 journal New York City, 2007: Two signs of the times <ol> <li> <i>Sunday, May 14 (Mothers Day)</i>: 3 Mexican guys, dressed as mariachis, get on the Manhattan-bound Brighton line Q-train at Prospect Park, Brooklyn. After the doors close, they begin to sing and play instruments. The stretch until the next station at 7th Avenue is relatively long, so it's not uncommon for buskers to try to score some cash from a captive audience between those two stations. After a moment, the lead singer stops singing and, his sombrero extended in his right hand, begins to make his pitch for donations. He speaks exclusively in Spanish, content in the knowledge that, notwithstanding the fact that the neighborhoods through which the Brighton line passes are not particularly Hispanic, in 2007 enough people in a New York City subway car will understand what he's saying to enable him to earn his living without having to switch to English. </li><li> First 230 years of U.S. history: Direction of flows in people and funds between Ireland and New York City was as follows: <ul> <li> <b>People:</b> <i>From:</i> Ireland; <i>To:</i>New York. </li><li> <b>Funds:</b> <i>From:</i> New York; <i>To:</i>Ireland. </li></ul><p> <i>Winter 2007</i>: Big ad campaign appears in New York City subways encouraging riders to apply for high-tech jobs in Ireland. (One member of Perl Seminar NY has already been hired to work for Google in Dublin.) <i>New York Times</i> reports that, with continuing decline of dollar versus euro, many Irish are buying condo apartments in Manhattan because in exchange-rate adjusted terms, they're cheaper than apartments in Dublin -- and you can rent them out for more than you could get in Dublin, as well.</p></li> </ol> kid51 2007-05-14T02:40:47+00:00 journal How Do You Cope with Anti-Perl FUD? I've encountered a certain amount of anti-Perl FUD lately, and I'm wondering how other Perl hackers cope with it. <p> Last month I spoke at a local (non-Perl) users group. They needed a last-minute substitution for a speaker who couldn't make it, so I gave what was more or less the talk on <a href="">maintenance of CPAN modules</a> I gave at YAPC in June. There was a guy in the first row who was evidently out to bait me. His first question was, "I hear Perl is dead." </p><p> I cited the strength of this year's YAPC, the vitality of the Perl community, etc. Since I felt he was simply trolling, my response was brief so I could get on to a more on-topic question. </p><p> This week, fresh off the plane from the <a href="">Chicago Perl hackathon</a> the popping of my Parrot/Perl 6 cherry, I was coming out of the subway on my way to work when I ran into a fellow I've known for several years. He used to attend <a href="">Perl Seminar NY</a> fairly regularly. He spoke two or three times, always did good presentations and always impressed me with the breadth of his professional experience, with respect to languages, OSes and areas of focus. </p><p> So he says (I'm paraphrasing from memory), "At my shop (a medium-sized investment bank) the amount of Perl that people are writing is really going down. People are writing a lot of JRuby and JPython because the Java libraries have gotten so much better and Perl 6 hasn't come out." </p><p> I didn't want to get into an argument there, but I urged him to come back to perlsemny some time and share his experiences working in non-Perl environments. That night I formalized that a bit by inviting him to speak at perlsemny, but in my email I also noted the big upsurge in postings on and that the fact that Perl, at long last, had enable me to get an IT job. </p><p> I work at a Perl shop, so the amount of Perl being written there is in no danger of declining. But a lot of my colleagues, who are all Perl programmers but only a few of whom participate in the Perl community, are clearly skeptical that Perl 6 will be worth the wait for it. Since I have to agree that the wait has been, shall we say, protracted, I don't have much to say in response. (I guess my own response has been to finally find a niche of the Perl 6/Parrot project I can work on -- but that's not everybody's approach.) </p><p> I'm wondering how the rest of you cope with potentially FUD-dish attitudes toward Perl.</p> kid51 2006-11-19T15:34:09+00:00 journal Collective Hacking Projects: Let's Hear about Them! In case you didn't see this Perlmonks meditation... <p> About two years ago this time I helped organize a Perl Seminar NY contingent of the <a href="">Phalanx project</a>. When I pitched the project to our members, I emphasized <a href="">the joys of collective hacking</a>. And it proved very enjoyable indeed (and profitable for <a href="">the bar where we met to do this hacking</a>!) </p><p> We didn't do as much collective hacking in the 2005-06 season, but with our <a href="">2006-07 Perl Seminar NY season about to begin</a>, I'd like to rev up some interest among our members. </p><p> I know of some of the collective hacking projects going on in the Perl community right now, and I'll be participating in the <a href="">Chicago Perl hackathon next month</a>. But just in case I've missed any, I'd like to ask you to respond to this Meditation by posting ongoing projects (e.g., Vanilla Perl, Module::Build) and their weblinks. </p><p> And, for extra credit, if you think that any of these projects could be broken up into components suitable for <b>face-to-face</b> hacking by local Perlmonger groups, please so indicate. </p><p> I like online projects, but I don't like to hack or drink alone. </p><p> Thanks in advance. </p><div><div><p> Jim Keenan</p> </div></div> kid51 2006-10-13T00:39:33+00:00 journal