From grant at mclean.net.nz Sun Oct 9 13:30:51 2016 From: grant at mclean.net.nz (Grant McLean) Date: Mon, 10 Oct 2016 09:30:51 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) Message-ID: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> Hi Mongers The October meeting of Wellington Perl Mongers is tomorrow evening - the 11th of October. 6:00pm Tuesday 11 October 2016 Level 3, Catalyst House 150 Willis Street Wellington http://wellington.pm.org/ Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise my talk on solving problems using the "exact cover" algorithm - unless everyone's already seen that. Cheers Grant From florent.mara at nzregen.co.nz Sun Oct 9 14:11:05 2016 From: florent.mara at nzregen.co.nz (Florent Mara) Date: Mon, 10 Oct 2016 10:11:05 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> Message-ID: Sounds good to me. Exact cover algo does not ring any bell so i am good with it. See you all tomorrow On 10/10/2016 9:31 AM, "Grant McLean" wrote: > Hi Mongers > > The October meeting of Wellington Perl Mongers is tomorrow evening - the > 11th of October. > > 6:00pm Tuesday 11 October 2016 > Level 3, Catalyst House > 150 Willis Street > Wellington > http://wellington.pm.org/ > > Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise > my talk on solving problems using the "exact cover" algorithm - unless > everyone's already seen that. > > Cheers > Grant > > > > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglas at halo.gen.nz Sun Oct 9 14:56:44 2016 From: douglas at halo.gen.nz (Douglas Bagnall) Date: Mon, 10 Oct 2016 10:56:44 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> Message-ID: On 10/10/16 09:30, Grant McLean wrote: > Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise > my talk on solving problems using the "exact cover" algorithm - unless > everyone's already seen that. Is that the thing with the turtles? I have been thinking about that for years. Douglas From grant at mclean.net.nz Sun Oct 9 15:36:55 2016 From: grant at mclean.net.nz (Grant McLean) Date: Mon, 10 Oct 2016 11:36:55 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> Message-ID: <1476052615.5421.17.camel@putnam.wgtn.cat-it.co.nz> On Mon, 2016-10-10 at 10:56 +1300, Douglas Bagnall wrote: > On 10/10/16 09:30, Grant McLean wrote: > > Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise > > my talk on solving problems using the "exact cover" algorithm - unless > > everyone's already seen that. > > Is that the thing with the turtles? > > I have been thinking about that for years. Yes, it's turtles all the way down. grant From enkidu at cliffp.com Mon Oct 10 14:09:05 2016 From: enkidu at cliffp.com (Cliff Pratt) Date: Tue, 11 Oct 2016 10:09:05 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> Message-ID: <54295fa4-510c-0ca5-22de-8454f0bd10c6@cliffp.com> On 10/10/16 10:56, Douglas Bagnall wrote: > On 10/10/16 09:30, Grant McLean wrote: >> Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise >> my talk on solving problems using the "exact cover" algorithm - unless >> everyone's already seen that. > Is that the thing with the turtles? > > I have been thinking about that for years. > > Douglas > Turtles? Cliff From grant at mclean.net.nz Mon Oct 10 14:46:31 2016 From: grant at mclean.net.nz (Grant McLean) Date: Tue, 11 Oct 2016 10:46:31 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: <54295fa4-510c-0ca5-22de-8454f0bd10c6@cliffp.com> References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> <54295fa4-510c-0ca5-22de-8454f0bd10c6@cliffp.com> Message-ID: <1476135991.5421.43.camel@putnam.wgtn.cat-it.co.nz> On Tue, 2016-10-11 at 10:09 +1300, Cliff Pratt wrote: > On 10/10/16 10:56, Douglas Bagnall wrote: > > On 10/10/16 09:30, Grant McLean wrote: > >> Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise > >> my talk on solving problems using the "exact cover" algorithm - unless > >> everyone's already seen that. > > Is that the thing with the turtles? > > > > I have been thinking about that for years. > > > > Douglas > > > Turtles? The backstory is that our family had a puzzle which involved arranging a set of tiles. Each tile had pictures of turtles on it and you needed to arrange the tiles so that the head of a turtle on one tile matched the tail of a turtle on the adjacent tile. The puzzle was fun for a while but then I thought "why don't I just write a program to solve this?". This talk covers the highs and lows of the journey that followed. Cheers Grant From ajm1170 at gmail.com Mon Oct 10 19:38:41 2016 From: ajm1170 at gmail.com (Andrew Maguire) Date: Tue, 11 Oct 2016 15:38:41 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: <1476135991.5421.43.camel@putnam.wgtn.cat-it.co.nz> References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> <54295fa4-510c-0ca5-22de-8454f0bd10c6@cliffp.com> <1476135991.5421.43.camel@putnam.wgtn.cat-it.co.nz> Message-ID: <934EE847-0B33-415C-BBDD-6EBAB56F9ECE@gmail.com> I recall the phrase from Stephen Hawking's book: https://www.quora.com/Phrase-Origins-What-do-people-mean-when-they-say-its-turtles-all-the-way-down Andrew Sent from my iPhone > On 11/10/2016, at 10:46 AM, Grant McLean wrote: > >> On Tue, 2016-10-11 at 10:09 +1300, Cliff Pratt wrote: >>> On 10/10/16 10:56, Douglas Bagnall wrote: >>>> On 10/10/16 09:30, Grant McLean wrote: >>>> Steve's going to talk on "Fibonacci in Perl 6". I'm planning to reprise >>>> my talk on solving problems using the "exact cover" algorithm - unless >>>> everyone's already seen that. >>> Is that the thing with the turtles? >>> >>> I have been thinking about that for years. >>> >>> Douglas >> Turtles? > > The backstory is that our family had a puzzle which involved arranging a > set of tiles. Each tile had pictures of turtles on it and you needed to > arrange the tiles so that the head of a turtle on one tile matched the > tail of a turtle on the adjacent tile. The puzzle was fun for a while > but then I thought "why don't I just write a program to solve this?". > This talk covers the highs and lows of the journey that followed. > > Cheers > Grant > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From perl at ewen.mcneill.gen.nz Mon Oct 10 20:43:49 2016 From: perl at ewen.mcneill.gen.nz (Ewen McNeill) Date: Tue, 11 Oct 2016 16:43:49 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: <934EE847-0B33-415C-BBDD-6EBAB56F9ECE@gmail.com> References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> <54295fa4-510c-0ca5-22de-8454f0bd10c6@cliffp.com> <1476135991.5421.43.camel@putnam.wgtn.cat-it.co.nz> <934EE847-0B33-415C-BBDD-6EBAB56F9ECE@gmail.com> Message-ID: <53675c94-efeb-da83-56ef-a05cab45f76c@mcneill.gen.nz> On 11/10/16 15:38, Andrew Maguire wrote: > I recall the phrase from Stephen Hawking's book: > https://www.quora.com/Phrase-Origins-What-do-people-mean-when-they-say-its-turtles-all-the-way-down Which is a fairly recent version: https://en.wikipedia.org/wiki/Turtles_all_the_way_down (I first came across it via Terry Pratchett's Discworld -- from the 1980s -- where it seemed to fit in well, but it seems like it's quite a bit older than that) Ewen From enkidu at cliffp.com Tue Oct 11 14:33:36 2016 From: enkidu at cliffp.com (Cliff Pratt) Date: Wed, 12 Oct 2016 10:33:36 +1300 Subject: [Wellington-pm] Meeting this Tuesday (October 11th) In-Reply-To: <53675c94-efeb-da83-56ef-a05cab45f76c@mcneill.gen.nz> References: <1476045051.5421.14.camel@putnam.wgtn.cat-it.co.nz> <54295fa4-510c-0ca5-22de-8454f0bd10c6@cliffp.com> <1476135991.5421.43.camel@putnam.wgtn.cat-it.co.nz> <934EE847-0B33-415C-BBDD-6EBAB56F9ECE@gmail.com> <53675c94-efeb-da83-56ef-a05cab45f76c@mcneill.gen.nz> Message-ID: On 11/10/16 16:43, Ewen McNeill wrote: > On 11/10/16 15:38, Andrew Maguire wrote: >> I recall the phrase from Stephen Hawking's book: >> https://www.quora.com/Phrase-Origins-What-do-people-mean-when-they-say-its-turtles-all-the-way-down >> > > Which is a fairly recent version: > > https://en.wikipedia.org/wiki/Turtles_all_the_way_down > > (I first came across it via Terry Pratchett's Discworld -- from the > 1980s -- where it seemed to fit in well, but it seems like it's quite > a bit older than that) > > Ewen https://en.wikipedia.org/wiki/Yertle_the_Turtle_and_Other_Stories Cliff From grant at mclean.net.nz Tue Oct 11 17:52:56 2016 From: grant at mclean.net.nz (Grant McLean) Date: Wed, 12 Oct 2016 13:52:56 +1300 Subject: [Wellington-pm] Roundup of last night's meeting Message-ID: <1476233576.5421.98.camel@putnam.wgtn.cat-it.co.nz> Hi all Thank you very much to Steve for his Perl6/Fibonacci talk at last night's meeting. And thanks to everyone else for a lively meeting and follow-up chat. Slides (and even Steve's speaker notes) are up on the web site now: http://wellington.pm.org/archive/ The next meeting will be on November the 8th. By tradition this will be the last technical meeting of 2016, with the December meeting being a social. As usual I'm very keen to hear from anyone who would like to do a talk or who would like to suggest a topic - reply here on the list or direct to me. Regards Grant From florent.mara at nzregen.co.nz Thu Oct 27 15:40:16 2016 From: florent.mara at nzregen.co.nz (Florent Mara) Date: Fri, 28 Oct 2016 11:40:16 +1300 Subject: [Wellington-pm] Roundup of last night's meeting In-Reply-To: <1476233576.5421.98.camel@putnam.wgtn.cat-it.co.nz> References: <1476233576.5421.98.camel@putnam.wgtn.cat-it.co.nz> Message-ID: Indeed, thank you Steve, very good presentation. So many implementations of Fibonacci ... it is surprising not to have it build-in Perl6, yet. Too many characters in the current implementation! :-) my @fib := 1, 1, *+* ... *; As for Grant bitwise turtles, ever so thought provoking. I still don't have any suggestion for next month, I am currently out of suggestions ... Since I am here, maybe somebody could explain me what I am doing wrong here: my $cust_levels = ['Inner Span', 'End Span']; my $mirror = $object->set('array', $cust_levels); # Sets a mirroring variable in a different object. is($mirror->[0], $cust_levels->[0], 'Got the expected array element'); Results in # Failed test 'Got the expected array element' # got: 'Inner Span' # expected: '"Inner Span"' $cust_levels does not show any double quotes unless in is() context ... feeling quite "blonde" this morning. On Wed, Oct 12, 2016 at 1:52 PM, Grant McLean wrote: > Hi all > > Thank you very much to Steve for his Perl6/Fibonacci talk at last > night's meeting. And thanks to everyone else for a lively meeting and > follow-up chat. > > Slides (and even Steve's speaker notes) are up on the web site now: > > http://wellington.pm.org/archive/ > > The next meeting will be on November the 8th. By tradition this will be > the last technical meeting of 2016, with the December meeting being a > social. As usual I'm very keen to hear from anyone who would like to do > a talk or who would like to suggest a topic - reply here on the list or > direct to me. > > Regards > Grant > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From grant at mclean.net.nz Thu Oct 27 16:36:59 2016 From: grant at mclean.net.nz (Grant McLean) Date: Fri, 28 Oct 2016 12:36:59 +1300 Subject: [Wellington-pm] Roundup of last night's meeting In-Reply-To: References: <1476233576.5421.98.camel@putnam.wgtn.cat-it.co.nz> Message-ID: <1477611419.19076.17.camel@putnam.wgtn.cat-it.co.nz> On Fri, 2016-10-28 at 11:40 +1300, Florent Mara wrote: > Since I am here, maybe somebody could explain me what I am doing wrong > here: > > my $cust_levels = ['Inner Span', 'End Span']; > my $mirror = $object->set('array', $cust_levels); # Sets a mirroring variable in a different object. > is($mirror->[0], $cust_levels->[0], 'Got the expected array element'); > > Results in > # Failed test 'Got the expected array element' > # got: 'Inner Span' > # expected: '"Inner Span"' Wow, that is odd. It seems to be telling us that somewhere in the course of doing its job, the set method successfully copied the values from $cust_levels and then corrupted the source data by adding double quotes. Be sure to let us know what it was when you work it out :-) Cheers Grant From florent.mara at nzregen.co.nz Thu Oct 27 17:05:22 2016 From: florent.mara at nzregen.co.nz (Florent Mara) Date: Fri, 28 Oct 2016 13:05:22 +1300 Subject: [Wellington-pm] Roundup of last night's meeting In-Reply-To: <1477611419.19076.17.camel@putnam.wgtn.cat-it.co.nz> References: <1476233576.5421.98.camel@putnam.wgtn.cat-it.co.nz> <1477611419.19076.17.camel@putnam.wgtn.cat-it.co.nz> Message-ID: Thank you Grant, your reply was the hint I was needed ( and the second coffee is starting to kick in ... ) I was only looking at the original array prior to calling set(). My set() method is a wrapper around Statistics::R->set() which calls a _quote() ( line 574 ) method on each element of the array thus modifying the original array and messing with my test. Not sure it is good practice but it is implemented that way and at least that is a mystery solved. Now lets make that test pass ... On Fri, Oct 28, 2016 at 12:36 PM, Grant McLean wrote: > On Fri, 2016-10-28 at 11:40 +1300, Florent Mara wrote: > > Since I am here, maybe somebody could explain me what I am doing wrong > > here: > > > > my $cust_levels = ['Inner Span', 'End Span']; > > my $mirror = $object->set('array', $cust_levels); # Sets a mirroring > variable in a different object. > > is($mirror->[0], $cust_levels->[0], 'Got the expected array element'); > > > > Results in > > # Failed test 'Got the expected array element' > > # got: 'Inner Span' > > # expected: '"Inner Span"' > > Wow, that is odd. It seems to be telling us that somewhere in the > course of doing its job, the set method successfully copied the values > from $cust_levels and then corrupted the source data by adding double > quotes. > > Be sure to let us know what it was when you work it out :-) > > Cheers > Grant > > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: