From scratchcomputing at gmail.com Sat Mar 1 19:09:14 2008 From: scratchcomputing at gmail.com (Eric Wilhelm) Date: Sat, 1 Mar 2008 19:09:14 -0800 Subject: [Pdx-pm] Summer of Code -- volunteers needed Message-ID: <200803011909.15077.ewilhelm@cpan.org> Hi all, Volunteer pledge drive! TPF needs volunteers to make summer of code happen this year. It sounds like the administrators got stretched too thin in 2005 and 2006, and we really didn't have ourselves together in 2007. So, I'm proposing a departmental structure under a TPF umbrella, which will localize the cat-herding effects within various large projects (so far, parrot and Catalyst appear to be on board with this.) I would like to demonstrate that we have our act together this year, so we need to get a solid pool of administrative volunteers and mentors together before the 8th. Administrative needs: (Contact me or join #soc on irc.perl.org.) * backup administrator (reduce the bus number) * Department heads for p5p, "modules", etc * Suggestions about department structure Mentors and project ideas needed: We need to get these pages populated before March 8th or it is quite likely to be a no-go. Potential mentors, please add yourselves and your project ideas here: http://www.perlfoundation.org/perl5/index.cgi?gsoc2008_mentors http://www.perlfoundation.org/perl5/index.cgi?gsoc2008_projects If you hate wikis as much as I do, please visit this handy form and I will batch the wiki edits on your behalf. http://scratchcomputing.com/loveperlhatewiki.html Thanks, Eric -- We who cut mere stones must always be envisioning cathedrals. --Quarry worker's creed --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- From scratchcomputing at gmail.com Wed Mar 5 15:59:39 2008 From: scratchcomputing at gmail.com (Seven till Seven) Date: Wed, 5 Mar 2008 15:59:39 -0800 Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting next week Message-ID: <200803051559.39189.ewilhelm@cpan.org> Wed. March 12th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. Topic: Moose - objects and antlers Speaker: Ben Hengst Moose is a cute, fuzzy module (which just happens to share its name with a big smelly creature.) Er, it is a postmodern object system which allows you to remove much of the hairiness from your object-oriented Perl code. Moose borrows features from Perl 6, CLOS (LISP), Smalltalk, Java, BETA, OCaml, Ruby and more. Ben will present a brief introduction to Moose, followed by an overview of (and real-world examples from) a database-linked search/results system built on Moose. * Saddle the Moose (intro) * a perl object system * meta syntax for object/class declaration * simple example * not *that* weird * Ride the Moose (code in "the real world") * Constructors for free * BUILD * under the hood - the meta() method * getters and setters * example * possible name space collisions * 'rw' vs 'ro' * timing issues ( lazy => 1 ) * strict types * things die if they are wrong, just like they should (assertion) * roles * less code to test * Love the Moose (techniques and practices) * composition / modularization / encapsulation * layout of logical file structure with roles * easier team workflow / merging * QA notes -- http://pdx.pm.org From schwern at pobox.com Thu Mar 6 07:49:28 2008 From: schwern at pobox.com (Michael G Schwern) Date: Thu, 06 Mar 2008 16:49:28 +0100 Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting next week In-Reply-To: <200803051559.39189.ewilhelm@cpan.org> References: <200803051559.39189.ewilhelm@cpan.org> Message-ID: <47D01288.9070206@pobox.com> Seven till Seven wrote: > Topic: Moose - objects and antlers > Speaker: Ben Hengst > > Moose is a cute, fuzzy module (which just happens to share its name with > a big smelly creature.) I leave you to your... Moosey Fate. http://youtube.com/watch?v=KL3MyU9S_KE -- Stabbing you in the face for your own good. From scratchcomputing at gmail.com Sat Mar 8 01:00:33 2008 From: scratchcomputing at gmail.com (Eric Wilhelm) Date: Sat, 8 Mar 2008 01:00:33 -0800 Subject: [Pdx-pm] File-Fu v0.0.3 -- ok, % is the inner append Message-ID: <200803080100.34284.ewilhelm@cpan.org> Hi all, v0.0.3 should be arriving real soon. http://search.cpan.org/dist/File-Fu Well, I'm not very happy with what perl gives me to work with in overloading, but at least I think my operator API has reached the final state now. The append operator gets called before the stringify when the append is happening inside a quoted string, so some basic debugging code caused me to need to do a lot of debugging... Before: my $dir = File::Fu->dir('bar'); # 'bar/' $dir .= 'baz'; # 'barbaz/' print "$dir\n"; # "barbaz\n/' After: my $dir = File::Fu->dir('bar'); # 'bar/' $dir %= 'baz'; # 'barbaz/' print "$dir\n"; # "barbaz\n/' I was thinking about '*' as the append (because it looks like a fat, hairy dot), but decided that '%' is easier to pronounce ('mod') and I'll post-rationalize something about it being symbolic of the slash-sensitive append if that helps. (The truth is that I code out loud (in my head) and the best pronunciation I could come up with for '*' was 'glue', which just elicits thoughts of waiting for it to dry.) my $dir = File::Fu->dir("bar"); # "bar/" my $alsodir = $dir % 'bat'; # "barbat/" my $subdir = $alsodir / 'baz'; # "barbat/baz/" my $subdir2 = $dir % 'bat' / 'baz'; # "barbat/baz/" my $file = $subdir + 'file.txt'; # "barbat/baz/file.txt" And I may have mentioned the fact that I can't hack '=~ s///', so to modify just the file part (not to mention "not breaking the object"), you use &. $file &= sub {s/^file/pile/}; So, that's all I can do with the operator API in perl 5. If there are any great ideas, I could probably still break it once more, but otherwise I think I'm moving on to adding more features to the method API and will declare it stable pretty soon. And just one more reason... use File::Fu; my @files = File::Fu->dir('lib')->find(sub { return shift->prune if($_->is_dir and $_->end =~ m/^\.svn$/); $_->is_file and m/\.pm$/; }); --Eric -- If the above message is encrypted and you have lost your pgp key, please send a self-addressed, stamped lead box to the address below. --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- From scratchcomputing at gmail.com Tue Mar 11 16:09:40 2008 From: scratchcomputing at gmail.com (Seven till Seven) Date: Tue, 11 Mar 2008 16:09:40 -0700 Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting tomorrow Message-ID: <200803111609.40685.ewilhelm@cpan.org> note: We'll be having a contest beforehand, complete with prize. Wed. March 12th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. Topic: Moose - objects and antlers Speaker: Ben Hengst Moose is a cute, fuzzy module (which just happens to share its name with a big smelly creature.) Er, it is a postmodern object system which allows you to remove much of the hairiness from your object-oriented Perl code. Moose borrows features from Perl 6, CLOS (LISP), Smalltalk, Java, BETA, OCaml, Ruby and more. Ben will present a brief introduction to Moose, followed by an overview of (and real-world examples from) a database-linked search/results system built on Moose. * Saddle the Moose (intro) * a perl object system * meta syntax for object/class declaration * simple example * not *that* weird * Ride the Moose (code in "the real world") * Constructors for free * BUILD * under the hood - the meta() method * getters and setters * example * possible name space collisions * 'rw' vs 'ro' * timing issues ( lazy => 1 ) * strict types * things die if they are wrong, just like they should (assertion) * roles * less code to test * Love the Moose (techniques and practices) * composition / modularization / encapsulation * layout of logical file structure with roles * easier team workflow / merging * QA notes -- http://pdx.pm.org From alan at clueserver.org Tue Mar 11 16:45:11 2008 From: alan at clueserver.org (Alan) Date: Tue, 11 Mar 2008 16:45:11 -0700 (PDT) Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting tomorrow In-Reply-To: <200803111609.40685.ewilhelm@cpan.org> References: <200803111609.40685.ewilhelm@cpan.org> Message-ID: <20146.198.182.194.170.1205279111.squirrel@clueserver.org> > note: We'll be having a contest beforehand, complete with prize. > > Wed. March 12th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. > > Topic: Moose - objects and antlers > Speaker: Ben Hengst > > Moose is a cute, fuzzy module (which just happens to share its name with > a big smelly creature.) Why am I reminded of the Invader Zim episode "A Room with a Moose"? "I will now leave you to your moosey fate!" From schwern at pobox.com Tue Mar 11 18:59:57 2008 From: schwern at pobox.com (Michael G Schwern) Date: Tue, 11 Mar 2008 18:59:57 -0700 Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting tomorrow In-Reply-To: <20146.198.182.194.170.1205279111.squirrel@clueserver.org> References: <200803111609.40685.ewilhelm@cpan.org> <20146.198.182.194.170.1205279111.squirrel@clueserver.org> Message-ID: <47D7391D.9080005@pobox.com> Alan wrote: >> note: We'll be having a contest beforehand, complete with prize. >> >> Wed. March 12th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. >> >> Topic: Moose - objects and antlers >> Speaker: Ben Hengst >> >> Moose is a cute, fuzzy module (which just happens to share its name with >> a big smelly creature.) > > Why am I reminded of the Invader Zim episode "A Room with a Moose"? > > "I will now leave you to your moosey fate!" Is that a nomination for the opening video I hear? -- ...they shared one last kiss that left a bitter yet sweet taste in her mouth--kind of like throwing up after eating a junior mint. -- Dishonorable Mention, 2005 Bulwer-Lytton Fiction Contest by Tami Farmer From alan at clueserver.org Tue Mar 11 19:41:55 2008 From: alan at clueserver.org (Alan) Date: Tue, 11 Mar 2008 19:41:55 -0700 Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting tomorrow In-Reply-To: <47D7391D.9080005@pobox.com> References: <200803111609.40685.ewilhelm@cpan.org> <20146.198.182.194.170.1205279111.squirrel@clueserver.org> <47D7391D.9080005@pobox.com> Message-ID: <1205289715.29405.6.camel@kratos.fnordora.org> On Tue, 2008-03-11 at 18:59 -0700, Michael G Schwern wrote: > Alan wrote: > >> note: We'll be having a contest beforehand, complete with prize. > >> > >> Wed. March 12th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. > >> > >> Topic: Moose - objects and antlers > >> Speaker: Ben Hengst > >> > >> Moose is a cute, fuzzy module (which just happens to share its name with > >> a big smelly creature.) > > > > Why am I reminded of the Invader Zim episode "A Room with a Moose"? > > > > "I will now leave you to your moosey fate!" > > Is that a nomination for the opening video I hear? Do you need a copy? I don't know if I can make the meeting. From kevin at scaldeferri.com Tue Mar 11 19:56:02 2008 From: kevin at scaldeferri.com (Kevin Scaldeferri) Date: Tue, 11 Mar 2008 19:56:02 -0700 Subject: [Pdx-pm] Ben Rides a Moose -- March Meeting tomorrow In-Reply-To: <1205289715.29405.6.camel@kratos.fnordora.org> References: <200803111609.40685.ewilhelm@cpan.org> <20146.198.182.194.170.1205279111.squirrel@clueserver.org> <47D7391D.9080005@pobox.com> <1205289715.29405.6.camel@kratos.fnordora.org> Message-ID: <2C838067-E618-409D-B981-92E7E4532B6A@scaldeferri.com> On Mar 11, 2008, at 7:41 PM, Alan wrote: > > On Tue, 2008-03-11 at 18:59 -0700, Michael G Schwern wrote: >> Alan wrote: >>>> note: We'll be having a contest beforehand, complete with prize. >>>> >>>> Wed. March 12th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. >>>> >>>> Topic: Moose - objects and antlers >>>> Speaker: Ben Hengst >>>> >>>> Moose is a cute, fuzzy module (which just happens to share its >>>> name with >>>> a big smelly creature.) >>> >>> Why am I reminded of the Invader Zim episode "A Room with a Moose"? >>> >>> "I will now leave you to your moosey fate!" >> >> Is that a nomination for the opening video I hear? > > Do you need a copy? > > I don't know if I can make the meeting. I have a copy and I am planning to be there. -kevin From scratchcomputing at gmail.com Wed Mar 12 11:39:18 2008 From: scratchcomputing at gmail.com (The Dread Parrot) Date: Wed, 12 Mar 2008 11:39:18 -0700 Subject: [Pdx-pm] Fwd: Open Source Symposium 2008 - Registration Open Message-ID: <200803121139.18891.ewilhelm@cpan.org> ---------- Forwarded Message: ---------- Subject: [pm_groups] Open Source Symposium 2008 - Registration Open Date: Wednesday 12 March 2008 11:08 From: "Jeremy Fluhmann" To: pm_groups at pm.org PM leaders, Please pass along as you see fit Registration is now open for the 2008 Open Source Symposium! Thanks to the generosity of our sponsors, attendance will be free! Although it's free, we still ask that you register. This helps us keep a headcount for conference program guides, shirts, snacks, etc. To register, please visit the registration pageon the site. Also, don't forget to check out the speaker biosand presentation abstracts ! Thanks, Jeremy Open Source Symosium 2008 http://www.texasoss.org/ ------------------------------------------------------- -- http://pdx.pm.org From ben.hengst at gmail.com Mon Mar 17 18:07:32 2008 From: ben.hengst at gmail.com (benh) Date: Mon, 17 Mar 2008 18:07:32 -0700 Subject: [Pdx-pm] Congrats Eric, TPF included in SOC Message-ID: <85ddf48b0803171807j5f13f54fvcf625176b3b69d36@mail.gmail.com> HORRAY! thanks eric http://perlbuzz.com/2008/03/perl-foundation-accepted-in-google-summer-of-code-2008.html -- benh~ From joshua at keroes.com Mon Mar 17 18:09:04 2008 From: joshua at keroes.com (Joshua Keroes) Date: Mon, 17 Mar 2008 18:09:04 -0700 Subject: [Pdx-pm] Congrats Eric, TPF included in SOC In-Reply-To: <85ddf48b0803171807j5f13f54fvcf625176b3b69d36@mail.gmail.com> References: <85ddf48b0803171807j5f13f54fvcf625176b3b69d36@mail.gmail.com> Message-ID: Well done, Eric. Way to JFDI. On Mon, Mar 17, 2008 at 6:07 PM, benh wrote: > HORRAY! > > thanks eric > > > http://perlbuzz.com/2008/03/perl-foundation-accepted-in-google-summer-of-code-2008.html > > -- > benh~ > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/pdx-pm-list/attachments/20080317/565e773f/attachment.html From selenamarie at gmail.com Mon Mar 17 18:57:19 2008 From: selenamarie at gmail.com (Selena Deckelmann) Date: Mon, 17 Mar 2008 18:57:19 -0700 Subject: [Pdx-pm] Congrats Eric, TPF included in SOC In-Reply-To: <85ddf48b0803171807j5f13f54fvcf625176b3b69d36@mail.gmail.com> References: <85ddf48b0803171807j5f13f54fvcf625176b3b69d36@mail.gmail.com> Message-ID: <2b5e566d0803171857k6070944es5732f093d10f6ee7@mail.gmail.com> Awesome! Good job, Eric. On Mon, Mar 17, 2008 at 6:07 PM, benh wrote: > HORRAY! > > thanks eric > > http://perlbuzz.com/2008/03/perl-foundation-accepted-in-google-summer-of-code-2008.html > > -- > benh~ > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > -- Selena Deckelmann United States PostgreSQL Association - http://www.postgresql.us PDXPUG - http://pugs.postgresql.org/pdx Me - http://www.chesnok.com/daily From scratchcomputing at gmail.com Tue Mar 18 01:37:21 2008 From: scratchcomputing at gmail.com (Eric Wilhelm) Date: Tue, 18 Mar 2008 01:37:21 -0700 Subject: [Pdx-pm] Fwd: Summer of Perl -- call for student proposals Message-ID: <200803180137.21399.ewilhelm@cpan.org> Hi all, I'm traveling this week, and this is the week where we need to drum-up local students. Anybody want to spearhead that effort? You know: get some posters on the wall, ride a camel through the quad -- that sort of thing. Also note that OSU and PSU are both mentor organizations. Lots of local activity! --Eric ---------- Forwarded Message: ---------- Subject: Summer of Perl -- call for student proposals The Perl Foundation is participating in Google's 2008 Summer of Code(tm) and we have a lot of capable, willing mentors looking forward to working with some talented, driven students. So, we would like you to help find those students (and quickly -- the students must apply before March 24th.) This is a rare opportunity for students to get a chance to get a paid summer of hacking on exciting projects like Parrot, Perl 6, Moose, Jifty, SVK, Catalyst, or their very own Perl modules or applications. It also brings new talent into the community and gives the student a hefty "real world" experience with a knowledgable mentor. Further, employers love to see this sort of demonstration of teamwork, handling deadlines, communication skills, resourcefulness and etc. We're looking for promising students who are interested in open source (or maybe you know someone who *should* be interested in open source.) Knowledge of Perl is optional if the project is Parrot-related. The student doesn't need to be an expert in the problem domain (after all, learning is part of the process), but should bring a big pile of creativity, problem-solving skills, and determination. Students should review the page of suggested projects, but are encouraged to bring their own proposals (those are often the best.) The most important first step is getting in touch with the community and discussing their project idea with potential mentors. http://www.perlfoundation.org/perl5/index.cgi?gsoc2008_projects Additional information and links can be found here. http://www.perlfoundation.org/perl5/index.cgi?gsoc2008 Google has posted some flyers if you happen to have a university bulletin board or hallway handy: http://code.google.com/p/google-summer-of-code/wiki/GsocFlyers Additional info: http://code.google.com/soc/2008/ http://code.google.com/soc/2008/faqs.html (Note that google has particular requirements to do with the fact that they are paying the students. The student must be able to show their eligibility regarding enrollment and employability.) Remember, the Perl community draws talent from many fields, so if you came to Perl from a non-computer-science major and still have contacts in that department from your university, it is probably worth mentioning to them. Thanks, Eric ------------------------------------------------------- From schwern at pobox.com Wed Mar 19 18:43:19 2008 From: schwern at pobox.com (Michael G Schwern) Date: Wed, 19 Mar 2008 18:43:19 -0700 Subject: [Pdx-pm] Need XS Help Message-ID: <47E1C137.2080703@pobox.com> I have a project to write a C library in Perl functions and I am totally hosed trying to figure out how to deal with structs and non-standard types. I sort of understand what to do, but I'm having trouble making it gel. I need a second brain. If anyone has experience with XS and is willing to sit down with me for an hour or so it would be much appreciated. I will provide booze and food. Give me a call if you'd like to help. 412.608.3812. Thanks folks. -- 44. I am not the atheist chaplain. -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/ From scratchcomputing at gmail.com Wed Mar 19 20:19:50 2008 From: scratchcomputing at gmail.com (Eric Wilhelm) Date: Wed, 19 Mar 2008 20:19:50 -0700 Subject: [Pdx-pm] Fwd: Summer of Perl -- call for student proposals In-Reply-To: <200803180137.21399.ewilhelm@cpan.org> References: <200803180137.21399.ewilhelm@cpan.org> Message-ID: <200803192019.51623.ewilhelm@cpan.org> # from Eric Wilhelm # on Tuesday 18 March 2008 01:37: >Anybody want to spearhead that effort? ?You know: ?get >some posters on the wall, ride a camel through the quad -- that sort > of thing. crickets... Is anyone on the list a student? If so, are you aware that several of the TPF mentors are local? Does anyone know a student? Did you mention SOC to them? --Eric -- --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- From chromatic at wgz.org Wed Mar 19 22:01:01 2008 From: chromatic at wgz.org (chromatic) Date: Wed, 19 Mar 2008 22:01:01 -0700 Subject: [Pdx-pm] Need XS Help In-Reply-To: <47E1C137.2080703@pobox.com> References: <47E1C137.2080703@pobox.com> Message-ID: <200803192201.01754.chromatic@wgz.org> On Wednesday 19 March 2008 18:43:19 Michael G Schwern wrote: > I have a project to write a C library in Perl functions and I am totally > hosed trying to figure out how to deal with structs and non-standard types. > I sort of understand what to do, but I'm having trouble making it gel. I > need a second brain. If anyone has experience with XS and is willing to > sit down with me for an hour or so it would be much appreciated. I will > provide booze and food. > > Give me a call if you'd like to help. 412.608.3812. I've written some C code lately. If you don't mind sharing with the list (and the list isn't revolting at the idea), I'm happy to offer advice on the free-ish. -- c From ingy at ingy.net Wed Mar 19 22:14:13 2008 From: ingy at ingy.net (Ingy dot Net) Date: Wed, 19 Mar 2008 22:14:13 -0700 Subject: [Pdx-pm] Need XS Help In-Reply-To: <47E1C137.2080703@pobox.com> References: <47E1C137.2080703@pobox.com> Message-ID: <20080320051413.GA18188@ttul.org> On 19/03/08 18:43 -0700, Michael G Schwern wrote: > I have a project to write a C library in Perl functions and I am totally hosed > trying to figure out how to deal with structs and non-standard types. I sort > of understand what to do, but I'm having trouble making it gel. I need a > second brain. If anyone has experience with XS and is willing to sit down > with me for an hour or so it would be much appreciated. I will provide booze > and food. Schwern, You might want to take a look at YAML-LibYAML, my binding to libyaml. Since it is YAML is basically needs to touch on a lot of the various things you probably need to touch on. The Perl XS code is all in: http://search.cpan.org/src/INGY/YAML-LibYAML-0.26/LibYAML/perl_libyaml.c Hope that helps some. Cheers, Ingy > > Give me a call if you'd like to help. 412.608.3812. Thanks folks. > > > -- > 44. I am not the atheist chaplain. > -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army > http://skippyslist.com/list/ > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list From pagaltzis at gmx.de Thu Mar 20 13:45:41 2008 From: pagaltzis at gmx.de (Aristotle Pagaltzis) Date: Thu, 20 Mar 2008 21:45:41 +0100 Subject: [Pdx-pm] Musings on operator overloading (was: File-Fu overloading) In-Reply-To: <200802241256.40352.ewilhelm@cpan.org> References: <200802231221.37905.ewilhelm@cpan.org> <200802231659.54107.ewilhelm@cpan.org> <20080224150027.GJ26323@klangraum> <200802241256.40352.ewilhelm@cpan.org> Message-ID: <20080320204541.GF7043@klangraum> * Eric Wilhelm [2008-02-24 22:00]: > # from Aristotle Pagaltzis > # on Sunday 24 February 2008 07:00: > > >I?ve seen Path::Class used extensively in the context of > >Catalyst, and one thing that struck me is how often you must > >explicitly stringify, because there?s this tension between > >APIs that expect filenames as strings or objects of certain > >kinds, ... > > Well, they are like strings for anything that doesn't > understand them as path objects. If you're passing them to > code that wants a string but croaks if ref($str), the bug is in > that code. I dunno. How often have you seen PODs that say ?pass a filename or filehandle to this sub?? Quite common, no? Well, checking whether something is filehandle-ish is quite difficult in Perl, and it?s not unusual for code to try to use anything as a filehandle that?s a ref. > >it makes the spot that does something unusual explicit about > >its unusualness > > By that principle, shouldn't all lines of perl start with an > "unusual" keyword? No. Regards, -- Aristotle Pagaltzis // From pagaltzis at gmx.de Thu Mar 20 13:39:48 2008 From: pagaltzis at gmx.de (Aristotle Pagaltzis) Date: Thu, 20 Mar 2008 21:39:48 +0100 Subject: [Pdx-pm] Musings on operator overloading (was: File-Fu overloading) In-Reply-To: <20080224162603.GB7204@aaroncrane.co.uk> References: <200802231221.37905.ewilhelm@cpan.org> <20080223224827.GA19059@klangraum> <200802231659.54107.ewilhelm@cpan.org> <20080224150027.GJ26323@klangraum> <20080224162603.GB7204@aaroncrane.co.uk> Message-ID: <20080320203948.GE7043@klangraum> Hi Aaron, * Aaron Crane [2008-02-24 17:30]: > Aristotle Pagaltzis writes: > > My counterproposal, were it possible in Perl?5, which it > > isn?t, would be something like this: > > > > my $dir = 'foo'; # no object at all! > > > > foreach my $fn (qw(bar baz bat)) { > > my $file = path { $dir / $fn }; > > open my $fh, '<', $file or die "$!\n"; > > while(my $line = <$fh>) { > > # ... > > } > > } > > With only a little fiddling, that does seem at least mostly > possible to me. Not really, I?m afraid ? not with your approach either. The problem is two-fold: 1. It?s temporally scoped, not lexically. 2. ?No object at all? can?t be done in *reasonable* fashion. In other words, it?s faintly similar, but due to the limited semantics of Perl?5 it loses so much of its appeal that it?s hardly worth the effort. :-/ Neat hack, though. The solution may ultimately fall short, but even the limited Perl?5 semantics can carry one surprisingly far with some outside-the-box thinking. Nice. Regards, -- Aristotle Pagaltzis // From tex at off.org Fri Mar 21 14:26:41 2008 From: tex at off.org (Austin Schutz) Date: Fri, 21 Mar 2008 14:26:41 -0700 Subject: [Pdx-pm] Musings on operator overloading (was: File-Fu overloading) In-Reply-To: <20080320204541.GF7043@klangraum> References: <200802231221.37905.ewilhelm@cpan.org> <200802231659.54107.ewilhelm@cpan.org> <20080224150027.GJ26323@klangraum> <200802241256.40352.ewilhelm@cpan.org> <20080320204541.GF7043@klangraum> Message-ID: <20080321212641.GQ20174@gblx.net> On Thu, Mar 20, 2008 at 09:45:41PM +0100, Aristotle Pagaltzis wrote: > I dunno. How often have you seen PODs that say ?pass a filename > or filehandle to this sub?? Quite common, no? Well, checking > whether something is filehandle-ish is quite difficult in Perl, > and it?s not unusual for code to try to use anything as a > filehandle that?s a ref. > Depending on what you are doing sometimes you can use fileno(). Austin From scratchcomputing at gmail.com Thu Mar 27 11:04:32 2008 From: scratchcomputing at gmail.com (Eric Wilhelm) Date: Thu, 27 Mar 2008 11:04:32 -0700 Subject: [Pdx-pm] Summer of Code Students -- Last call Message-ID: <200803271104.32816.ewilhelm@cpan.org> Hi all, If you are a student or know a student who could be creating some awesome code with Perl or Parrot this summer, you need to act NOW. The application deadline is Monday, but if you haven't gone through a couple rounds of feedback by then you probably won't succeed. Applications sent at the last minute are unlikely to be accepted. If you know some students or professors, you should contact them about this today (not tomorrow.) http://www.perlfoundation.org/perl5/index.cgi?gsoc2008_projects Thanks, Eric From scratchcomputing at gmail.com Thu Mar 27 16:28:01 2008 From: scratchcomputing at gmail.com (Eric Wilhelm) Date: Thu, 27 Mar 2008 16:28:01 -0700 Subject: [Pdx-pm] April meeting two weeks from yesterday Message-ID: <200803271628.01628.ewilhelm@cpan.org> Another month, another meeting, another speaker in need of prodding. Wed. April 9th, 6:53pm at FreeGeek -- 1731 SE 10th Ave. Speaker: Selena Deckelmann (I hope) Topic: Sinking your Teeth into RT (or so) Details will be arriving yesterday as soon as my time machine gets here. --Eric From scratchcomputing at gmail.com Sat Mar 29 09:33:56 2008 From: scratchcomputing at gmail.com (The Dread Parrot) Date: Sat, 29 Mar 2008 09:33:56 -0700 Subject: [Pdx-pm] Fwd: [pm_groups] Nordic Perl Workshop 2008 - Call for Papers & Participation Message-ID: <200803290933.56501.ewilhelm@cpan.org> ---------- Forwarded Message: ---------- Subject: [pm_groups] Nordic Perl Workshop 2008 - Call for Papers & Participation Date: Saturday 29 March 2008 09:23 From: Claes Jakobsson To: pm_groups at pm.org Hi, please forward this to your local groups. Thanks, Claes Jakobsson, Stockholm.pm --- Nordic Perl Workshop 2008 - Call for Papers & Participation ----------------------------------------------------------- Stockholm Perl Mongers and its fellow Nordic Perl Mongers arranges the annual Nordic Perl Workshop in Stockholm, Sweden on the 24th and 25th of May (over a weekend). This is the second time the workshop is arranged in Stockholm and the 6th time in total. The venue for this years workshop is located right next to Vasaparken near Odenplan, in the heart of Stockholm. During summertime this is a green oasis where one can chill in the grass, watch people or take a break in some of the park's coffee-shops. Odenplan also offers a wide range of restaurants and pubs in it's vicinity. Nordic Perl Workshop is a workshop for the community by the community and we want you to submit interesting and inspiring presentations in order to make the workshop successful. Talk lengths are the usual 20 and 40 minutes but we might consider longer ones if motivated. Any subject is welcome as long as it's related to Perl somehow - from algorithms for social graphing and web-technologies to Perl5 core optimizations and language implementation targeting the Parrot VM. To submit a talk either do it online on the workshop website[1] or to claes at surfar.nu . If submitting via email please prefix the subject with [NPW]. Please submit talks no later than Friday 2nd of May. Accepted speakers will be notified Monday 5th of May. Apart from speakers the workshop also requires eager participants. Workshop fee is 500 SEK (~ 55 EUR) and there's a reduced fee at 250 SEK (~ 28 EUR) for students. This includes admission to the workshop and coffee. Registration is done via the website[1] which uses ACT so if you have attended a previous workshop registration is dead simple. [1] Website is not online yet but we're working on it really hard. The URL is as always http://www.perlworkshop.dk/ Important dates to remember: May 2nd - Deadline for talk submission May 5th - Speakers will be notified May 16th - Registration closes May 23th - Pre-work gathering for early arrivals May 24-25th - Nordic Perl Workshop 2008 Hope to see you in Stockholm. Claes Jakobsson on behalf of the Nordic Perl Workshop 2008 organization team. -- Request pm.org Technical Support via support at pm.org pm_groups mailing list pm_groups at pm.org http://mail.pm.org/mailman/listinfo/pm_groups ------------------------------------------------------- -- http://pdx.pm.org