From doomvox at gmail.com Fri May 4 12:07:23 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Fri, 4 May 2018 12:07:23 -0700 Subject: [sf-perl] Perl6 Informal Study at the Blue Oak Message-ID: Once again, Sunday afternoon at around 1pm we'll be down at the Blue Oak Cafe inside the Oakland Museum, with the general idea of playing around with Perl 6. I've got a regular meetup scheduled for it, RSVP if you're so inclined, though it's not critical: https://www.meetup.com/San-Francisco-Perl/events/249949377/ Someone was asking me "Why Oakland?"-- this place has lots of space, decent coffee, free wifi, it's relatively quiet and a block from a BART station. If anyone has any other ideas like that, I'd be glad to hear them. From doomvox at gmail.com Fri May 4 12:20:35 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Fri, 4 May 2018 12:20:35 -0700 Subject: [sf-perl] Last Perl 6 study group Message-ID: Last weeks gathering at the Blue Oak went pretty well, I thought. I walked in the door with a particular goal-- I wanted to see perl6 talk to postgres, and see if it throws an error if a perl6 int exceeds the range of a postgres integer (yes, it does). The hard part there for me turned out to be understanding the named-argument syntax used in the SYNOPSIS for the DBI_ish (there's something like 4 variations, plus issues like "If there's no password, should you set password to the empty string, or just not have a password field?" -- turns out it's the latter). Yary helped me out on that one, and Richard told me about a bash feature I've wanted to know for years... how do you deal with files named with a leading dash? Answer, you use a "--" to tell bash there are no more options coming. We talked about a bunch of other things-- one that comes to mind is the perl6 loop syntax which is very nice for things like handling three items at a time. From rick at linuxmafia.com Fri May 4 13:10:50 2018 From: rick at linuxmafia.com (Rick Moen) Date: Fri, 4 May 2018 13:10:50 -0700 Subject: [sf-perl] Last Perl 6 study group In-Reply-To: References: Message-ID: <20180504201050.GQ19633@linuxmafia.com> Quoting Joseph Brenner (doomvox at gmail.com): > Yary helped me out on that one, and Richard told me about a bash > feature I've wanted to know for years... how do you deal with files > named with a leading dash? Answer, you use a "--" to tell bash there > are no more options coming. TMTOWTDI. ./--somefile (For a lot of scripting, though, -- is indeed the best comprehensive fix.) From not.com at gmail.com Fri May 4 14:11:37 2018 From: not.com at gmail.com (yary) Date: Fri, 4 May 2018 14:11:37 -0700 Subject: [sf-perl] Perl6 Informal Study at the Blue Oak In-Reply-To: References: Message-ID: Alas can't make this week. This book came up on the Perl6 User's list, looks decent, and it's been donated to the community eg free-as-in-beer to download http://greenteapress.com/thinkperl6/thinkperl6.pdf -------------- next part -------------- An HTML attachment was scrubbed... URL: From doomvox at gmail.com Fri May 4 14:36:53 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Fri, 4 May 2018 14:36:53 -0700 Subject: [sf-perl] Perl6 Informal Study at the Blue Oak In-Reply-To: References: Message-ID: > This book came up on the Perl6 User's list, looks decent, and it's been donated to the community eg free-as-in-beer to download > http://greenteapress.com/thinkperl6/thinkperl6.pdf That sounds like a good option. The https://perl6book.com/ has it recommended for "learning Computer Science". On Fri, May 4, 2018 at 2:11 PM, yary wrote: > Alas can't make this week. > > This book came up on the Perl6 User's list, looks decent, and it's been > donated to the community eg free-as-in-beer to download > > http://greenteapress.com/thinkperl6/thinkperl6.pdf > From dpchrist at holgerdanske.com Fri May 4 21:50:23 2018 From: dpchrist at holgerdanske.com (David Christensen) Date: Fri, 4 May 2018 21:50:23 -0700 Subject: [sf-perl] Last Perl 6 study group In-Reply-To: References: Message-ID: On 05/04/18 12:20, Joseph Brenner wrote: > Richard told me about a bash > feature I've wanted to know for years... how do you deal with files > named with a leading dash? Answer, you use a "--" to tell bash there > are no more options coming. I don't recall a Richard being present. It was I who told you about command-line option processing, arguments that look like options (e.g. files named -*, --*, etc.), and the '--' option: https://en.wikipedia.org/wiki/Command-line_interface#Option_conventions_in_Unix-like_systems David From doomvox at gmail.com Mon May 7 11:52:18 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Mon, 7 May 2018 11:52:18 -0700 Subject: [sf-perl] Jonathan Worthington talks Message-ID: At the last meeting, I was recommending Jonathan Worthington talks, particularly on Perl 6's "Concurrency, Parallelism and Asynchrony": https://www.youtube.com/watch?v=xg8tAv35YFg A similar talk on a different occasion: https://www.youtube.com/watch?v=JpqnNCx7wVY Here's a set of some of his slides on the topic, in pdf form: https://jnthn.net/papers/2015-yapcasia-concurrency.pdf From doomvox at gmail.com Sun May 13 11:35:41 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Sun, 13 May 2018 11:35:41 -0700 Subject: [sf-perl] perl6 study group: ch3 of lentz for May 20th Message-ID: We're taking off this afternoon from our regular Sunday afternoon gathering, but we're going to resume next week on May 20th: https://www.meetup.com/San-Francisco-Perl/events/250589080/ Let's get started working our way through the Moritz Lenz book, "Perl 6 Fundamentals". The "assigned reading" for this meeting is going to be Chapter 3: https://www.apress.com/us/book/9781484228982 From doomvox at gmail.com Tue May 15 12:59:59 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Tue, 15 May 2018 12:59:59 -0700 Subject: [sf-perl] Perl6 Study Session: Chapter 3 of Moritz Lenz Message-ID: For the next "Perl 6 Informal Study Session" this Sunday https://www.meetup.com/San-Francisco-Perl/events/250589080/ The "assigned reading" is Chapter 3 of "Perl 6 Fundamentals" by Moritz Lenz. Chapter 3 works through a simple example: subdividing a string into fixed-width chunks and formatting them for output. The main pieces involved are the built-in "substr" routine plus the Str methods "trans" and "comb" and the List method "join". It uses the looping constructs "for" and "loop" but also the more unusual "gather/take" feature. Even if you don't have the Moritz Lenz book at hand, you might just take a look at some of the perl6 docs: The substr routine: https://docs.perl6.org/type/Str#routine_substr The trans and comb Str methods: https://docs.perl6.org/type/Str#method_trans https://docs.perl6.org/type/Str#routine_comb The join List method (which is also a stand-alone routine): https://docs.perl6.org/type/List#routine_join The gather block which is used with take: https://docs.perl6.org/language/control#gather/take The loop and for control-flow constructs: https://docs.perl6.org/language/control#index-entry-control_flow__loop-loop https://docs.perl6.org/language/control#for The %% operator (checks for divisibility without a remainder): https://docs.perl6.org/language/operators#infix_%% From doomvox at gmail.com Tue May 22 13:31:23 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Tue, 22 May 2018 13:31:23 -0700 Subject: [sf-perl] perl 6 group: next meeting Sunday May 27th Message-ID: We had another successful meeting of the "Perl 6 Informal Study Group", where the emphasis continues to be on the "Informal" part. Since we've now thoroughly covered Chapter 3 from the Moritz Lenz book "Fundamentals of Perl6" let's move on the Chapter 4-- try to take a look at it before the next meeting, if you can. The focus of Chapter 4 is date and time crunching, using the perl 6 core module DateTime to convert back and forth between unix seconds and more readable formats. The highlights here, I would say, are: using custom formatting routines passed in as anonymous subs, writing perl 6 test code and using "multi sub"s-- multiple subs with the same name distinguished by the types of their arguments. Next meeting: Sunday, May 27th at 1pm at the Blue Oak Cafe in the Oakland Museum. https://www.meetup.com/San-Francisco-Perl/events/znrzrpyxhbkc/ From doomvox at gmail.com Wed May 30 18:01:51 2018 From: doomvox at gmail.com (Joseph Brenner) Date: Wed, 30 May 2018 18:01:51 -0700 Subject: [sf-perl] Perl 6 study: Sunday afternoon on June 3rd Message-ID: We'll be getting together again next Sunday afternoon at the Oakland Museum cafe to talk about perl 6 some more, and as far as the announced "curriculum" goes I think we'll continue talking about Chapter 4 of the Moritz Lenz book "Perl 6 Fundamentals". We didn't quite cover all of the material last time, and this'll give some of the more irregular attendees a chance to catch up. Though of course, as always if there's anything else you're interested in, feel free to bring it up. Last time we talked about installation issues again (in particular about how to get the emacs perl6-mode from the melpa repository); static vs dynamic typed languages; and the new style of passing arguments to sort blocks, among other things. Myself, I've been getting interested in trying to use mixins to add variant debugging/introspection methods to existing objects and classes.... https://www.meetup.com/San-Francisco-Perl/events/xmldtpyxjbfb/