From james at rcpt.to Sun Jan 2 23:10:59 2011 From: james at rcpt.to (James Bromberger) Date: Mon, 03 Jan 2011 15:10:59 +0800 Subject: [Perth-pm] =?iso-8859-1?q?Drinks_next_Wednesday_=28=5F5=5Fth_Janu?= =?iso-8859-1?q?ary_2010=29_-_Belgian_beer_Caf=E9=2C_City?= In-Reply-To: <4D1D7009.3030400@rcpt.to> References: <4D1D7009.3030400@rcpt.to> Message-ID: <4D217683.3090903@rcpt.to> *sigh* That's Wednesday the *5th*, of course..... :) James -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at rcpt.to Wed Jan 5 19:20:42 2011 From: james at rcpt.to (James Bromberger) Date: Thu, 06 Jan 2011 11:20:42 +0800 Subject: [Perth-pm] Report from last night's gathering. Message-ID: <4D25350A.3060104@rcpt.to> Hello Perl Mongers, Firstly, we had yum beers last night and /des frites/. Ahhh! The next two pubs have been chosen - Nick selected The Moon & Six Pence for February, and I've plucked out The Lucky Shag at Barrack Street Jerry for March; see the http://perth.pm.org/ site for the calendar (unless you've already imported it into your own calendaring software). I'd like to get the next pub afte that chosen too - suggestions? Preferably with good transport (parking, rail) and reasonably central across the metro area. So last night we read up on the Perl 5 to Perl 6 doco, and with the help of Parrot and Radoku Star, tried the examples out and varied them a bit to see what's new. It was good; exceptions happen and are caught - mostly. We ended up filing one possible bug (#81682) for using strict types and Container aliasing (like Perl 5 references) that isn't handled. We only managed to get around 20 pages of the document read, understood, and played with - there's plenty more in there. My favourites was probably "multi sub"s - define a subroutine with different argument lists and/or types, and the Right One will be used. For example, if you define: multi sub add(Int $a, Int $b) { return $a + $b } multi sub add(Str %a, Str $b) { return $a ~ $b } Then calling add(5, 4) will give 9, and add("5", "4") will give "54". Likewise, instead of using the pre-baked types (Int, Str, Rat (rational/float), etc) you can also put your own types in: multi sub add_friend(Person $a, Person $b) { say "$a and $b are now friends" } We played with the object class (we made a class called "Beer"), and inheritance from a super class ("Drink"), and multiple inheritance ("Vegetable"); we played with read only variables in classes (only can be set at instantiation), and with private variables. Defining a variable appears to make the variable accessible by name as a method call: class Beer { has $.name has $.retail_price has $!cost_price } my $drink = Beer.new( name => 'Leffe', retail_price => 6, cost_price => 3); say "This drink is a $drink.WHAT called $drink.name"; If we try and access $drink.cost_price we get an exception. This contradicts the Perl5 reason for private variables; as Larry Wall said way back then (1999 or so): /Perl doesn't have an infatuation with enforced privacy. It would prefer that you stayed out of its living room because you weren't invited, not because it has a shotgun/ Brackets around if() clauses are gone, arrays and hashes retain the same sigil (symbol) when accessing an element (@array[1] = "foo", not $array[1]), everything is an object (eg, $drink.WHAT as shown above, @array.sort), plus lots more we have yet to play with. For more info, see http://perl6.org/. So, a rather good Perl night. Can I get a volunteer to present for next month at all??? :) James PS: We found that unicode 00BD (0189, "one half", ?) when multiplied by 2, does not equal 1. But I added that as a /PS/ to the bug report above... :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at rcpt.to Mon Jan 31 17:57:02 2011 From: james at rcpt.to (James Bromberger) Date: Tue, 01 Feb 2011 09:57:02 +0800 Subject: [Perth-pm] Reminder: Perth.pm tomorrow (Wed 2nd Feb) @ Moon & Six Pence, Murray St Message-ID: <4D47686E.7040702@rcpt.to> Hi all, Another month has flown by, and it's been ghostly quiet on the Perth.pm mailing list! We are scheduled to *meet up tomorrow* at /The Moon & Six Pence/ on Murray Street; I'll be there from around 6:30/7pm. As we don't have a volunteer to give a presentation lined up, I was going to continue the trip through the Perl 6 examples in Rakudo Star that we started last month at the /Belgian Beer Cafe/ (unless we have a volunteer??). :) Rakudo Star is AN implementation of Perl 6, and following from last Friday's 2011.01 release, they are approaching some form of stability by slowing their release cycle from monthly to quarterly. http://rakudo.org/ This will be the 4th monthly meeting of Perth.pm. We've had only 2 - 3 people turning up (including myself), so I am going to reduce the frequency (after tomorrow) of these meetings until there is more demand; I'll change the schedule to the first Wednesday of the quarter, making the subsequent meeting Wednesday April 6th at /The Lucky Shag/. The calendar has already been updated, the web site shortly. We're still after volunteers to give a talk on any topic, or even requests for what people would like to see/hear. Some stuff we could give an overview on are: * Writing POD and targeting documentation in-line for users of scripts and developers to reference in future (POD::Usage) * Packaging modules for CPAN * What's new in Perl 5.12.x (5.12.3 was released January 21st 2011, minor minor changes) * Anything else... Please make your suggestions/requests on list. Hope to see you *tomorrow (Wed 2nd February) at /The Moon & Six Pence/*. James -- Mobile: +61 422 166 708, Email: james_AT_rcpt.to -------------- next part -------------- An HTML attachment was scrubbed... URL: