From jacoby.david at gmail.com Wed Jun 9 12:37:41 2021 From: jacoby.david at gmail.com (Dave Jacoby) Date: Wed, 9 Jun 2021 15:37:41 -0400 Subject: [Purdue-pm] Back to In-Person Coffee? Message-ID: We have widely distributed vaccines for the 2020 Plague. It's been two weeks since my last Jab, so I should be 100% clear. Is there any interest in an in-person HackLafayette Coffee & Chat? -- Dave Jacoby jacoby.david at gmail.com ?There is nothing obvious? ? Theo -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at purdue.edu Fri Jun 11 08:29:05 2021 From: mark at purdue.edu (Mark Senn) Date: Fri, 11 Jun 2021 11:29:05 -0400 Subject: [Purdue-pm] "Raku syntax I miss in other languages" Message-ID: <13133.1623425345@pier.ecn.purdue.edu> Leon Timmermans' 40 minute "Raku syntax I miss in other languages" talk is at https://www.youtube.com/watch?v=elalwvfmYgk The talk contains some of the reasons I prefer Raku (formerly known as Perl 6) over Perl 5. Designing features in a new programming language is a more thoughtful process than bolting them on to an already existing language. I like Raku's object oriented programming better than Perl's. -mark From mark at purdue.edu Mon Jun 14 06:50:44 2021 From: mark at purdue.edu (Mark Senn) Date: Mon, 14 Jun 2021 09:50:44 -0400 Subject: [Purdue-pm] Perl mailing list, videos, and book Message-ID: <16340.1623678644@pier.ecn.purdue.edu> The following message is based on a fraction of the information in Perl Weekly, Issue #516, 2021-06-14: http://perlweekly.com/archive/516.html Instructions on how to sign up for the mailing list are at the end of the web page. If you program in or are curious about Perl I recommend you sign up for the mailing list. Talks from some Perl (and Raku) Conferences from 2012 on are at https://www.youtube.com/c/YAPCNA/videos See https://www.learning-perl.com/2021/06/pre-order-learning-perl-8th-edition/ for information about how to preorder _Learning Perl_, 8th edition. This reportedly will also be available on Safari online (available through Purdue Libraries). -mark From mark at purdue.edu Tue Jun 22 05:11:29 2021 From: mark at purdue.edu (Mark Senn) Date: Tue, 22 Jun 2021 08:11:29 -0400 Subject: [Purdue-pm] I like Raku's operators Message-ID: <8411.1624363889@pier.ecn.purdue.edu> I read some of the answers (but not the one that uses this method) to the Perl (and Raku---formerly known as Perl 6) Weekly Challenge problem and thought I could write one that is easier to understand. Here it is: #!/home/pier/e/mark/sw/ubuntu-18.04-x86_64/rakudo-star-2021.02.1/bin/raku # From https://perlweeklychallenge.org/blog/perl-weekly-challenge-117/#TASK1 # You are given text file with rows numbered 1-15 in random order # but there is a catch one row in [sic -mark] missing in the file. # # 11, Line Eleven # 1, Line one # 9, Line Nine # 13, Line Thirteen # 2, Line two # 6, Line Six # 8, Line Eight # 10, Line Ten # 7, Line Seven # 4, Line Four # 14, Line Fourteen # 3, Line three # 15, Line Fifteen # 5, Line Five # # Write a script to find the missing row number. # The lines from the text file. my $heredoc = qq:to/END/; 11, Line Eleven 1, Line one 9, Line Nine 13, Line Thirteen 2, Line two 6, Line Six 8, Line Eight 10, Line Ten 7, Line Seven 4, Line Four 14, Line Fourteen 3, Line three 15, Line Fifteen 5, Line Five END # Inside every large program is a small program struggling to get out. # ---Tony Hoare, famous computer scientist # This task can be done with 65 characters: (([+] (1..15)) - ([+] (comb /\d+/, $heredoc).map({.UInt}))).say; # Below is a better explanation. # Sum 1, 2, ..., 15. # "[+] (1..15)" is the the same as 1 + 2 + ... + 15. my $allsum = [+] (1..15); # Sum the heredoc numbers. # "comb /\d+/, $heredoc" matches all strings of one # or more digits and returns a list---comb matches # what I'm looking for---split matches what I'm not # looking for---I use comb much more often. # The "map({.UInt})" converts each string to a number. my $heresum = [+] (comb /\d+/, $heredoc).map({.UInt}); # Print the answer. ($allsum - $heresum).say From mark at purdue.edu Mon Jun 28 06:12:32 2021 From: mark at purdue.edu (Mark Senn) Date: Mon, 28 Jun 2021 09:12:32 -0400 Subject: [Purdue-pm] Perl weekly challenge renamed Message-ID: <11941.1624885952@pier.ecn.purdue.edu> Perlweeklychallenge.org has been renamed the theweeklychallenge.org. So far, perlweeklychallenge.org has received solutions to their programming exercises in over 50 programming languages. I sometimes read the solutions on the web site. The breadth of solutions people come up with to solve the same problem is amazing. I suggest that coders, programmers, etc., especially students, at least read the solutions to help their individual preferences develop faster. -mark Inside every large program is a small program struggling to get out. ---Tony Hoare What's dangerous is not to evolve. ---Jeff Bezos