slurp with enc("utf16") doesn't work

2020-05-13 Thread Joseph Brenner
I just got to look into this one again a little further, and it does seem that reading a utf16 file like this doesn't work: my $contents = slurp( $file, :enc("utf16") ); Though this, however, does work: my $fh = $file.IO.open( :r, :enc("utf16") ); my $contents = $fh.slurp; Als

the state of the build and install instructions

2020-05-14 Thread Joseph Brenner
I'm having trouble doing a build of raku from github. Could it be the INSTALL.txt file is out-of-date? I was trying to build a "bleeding edge" Raku using the instructions here: https://github.com/rakudo/rakudo/blob/master/INSTALL.txt So I thought I'd just need to do this: cd /home/doom/End

Matching subpatterns in any order, conjunctions, negated matches

2020-05-15 Thread Joseph Brenner
Regex engines by their nature care a lot about order, but I occasionally want to relax that to match for multiple multicharacter subpatterns where the order of them doesn't matter. Frequently the simplest thing to do is just to just do multiple matches. Let's say you're looking for words that ha

Re: Matching subpatterns in any order, conjunctions, negated matches

2020-05-16 Thread Joseph Brenner
(it gets the combinations, not just the permutations). On 5/16/20, William Michels wrote: > On Fri, May 15, 2020 at 7:33 PM Joseph Brenner wrote: >> >> Regex engines by their nature care a lot about order, but I >> occasionally want to relax that to match for multiple >&

Re: Matching subpatterns in any order, conjunctions, negated matches

2020-05-16 Thread Joseph Brenner
s them all work on top of each other. I keep thinking there's an edge case in these before/after tricks that might matter if we weren't matching the one-word-per-line format of the unix dictionaries, but I need to think about that a little more... Peter Pentchev wrote: > On Fr

Re: Matching subpatterns in any order, conjunctions, negated matches

2020-05-17 Thread Joseph Brenner
e by lines or words or something-- but what could that possibly mean? In that case the "qu" is just part of the string and fair game to match against, so...) On 5/16/20, Peter Pentchev wrote: > On Sat, May 16, 2020 at 05:53:04PM -0700, Joseph Brenner wrote: >> Peter Pentchev w

Regexps using 'after' and 'before' like ^ and $

2020-05-25 Thread Joseph Brenner
Given this string: my $str = "Romp romp ROMP"; We can match just the first or last by using the usual pinning features, '^' or '$': say $str ~~ m:i:g/^romp/; ## (「Romp」) say $str ~~ m:i:g/romp$/; ## (「ROMP」) Moritz Lenz (Section 3.8 of 'Parsing', p32) makes t

Re: Regexps using 'after' and 'before' like ^ and $

2020-05-26 Thread Joseph Brenner
> > They match the same three characters, but for entirely different reasons. > > The 「^」 version is basically the same as: > > / ... / > > While the other one is something like: > > / ... / > > (The 「try」 is needed because 「.substr( -1 )」 is a Failure.

Re: Regexps using 'after' and 'before' like ^ and $

2020-05-29 Thread Joseph Brenner
I opened a github issue: https://github.com/rakudo/rakudo/issues/3728 On 5/26/20, Joseph Brenner wrote: > Hey Brad, thanks much for the explication: > >> 「」 should probably also prevent the position from being at the >> end. > >> It does work if you write it differ

Accidentally closed an issue

2020-05-30 Thread Joseph Brenner
I was just trying to comment on an issue I opened the other day, and I accidentally closed it. I don't see any way for me to re-open it, so I would guess I don't have permissions to do so. Could someone re-open this? https://github.com/rakudo/rakudo/issues/3728

Re: Accidentally closed an issue

2020-05-30 Thread Joseph Brenner
Thanks much. On 5/30/20, JJ Merelo wrote: > Reopened > > El sáb., 30 may. 2020 a las 19:26, Joseph Brenner () > escribió: > >> I was just trying to comment on an issue I opened the other day, and I >> accidentally closed it. I don't see any way for me to re-open

Re: just curious to know

2020-06-14 Thread Joseph Brenner
No particular "killer app" has emerged for Raku as of yet, there's no task that's going to make you go "Aha, this is a job for Raku!". But you know, it's not as though the original perl was designed to be the Web 1.0 server-side scripting language or the saviour of the human genome project... Tha

interpolating the return from embedded code in a regexp

2020-06-14 Thread Joseph Brenner
In part because of the recent discussion here, I decided to play around with using Raku code embedded in a regexp. I came up with a contrived example where I was going to examine a product listing in a text block to see if the product descriptions matched the product codes. The valid associations

Re: interpolating the return from embedded code in a regexp

2020-06-14 Thread Joseph Brenner
ave me some > ideas > > Try matching against / (^P\d+) \s+ %products{$0} / > > This one also works, in a roundabout way > / (^P\d+) \s+ {"%products{$0}"} / > -y > > > On Sun, Jun 14, 2020 at 4:44 PM Joseph Brenner wrote: > >> In part because of the

Code assertions to spy on regexps behavior

2020-06-14 Thread Joseph Brenner
By the way, I've been finding code assertions are a fun way of spying on what's going on with your regexps: $_ = "Alpha beta gamma"; my @matches = m:g/(a) /; # 5 # 10 # 13 # 16

Re: interpolating the return from embedded code in a regexp

2020-06-14 Thread Joseph Brenner
ets > > NO: bad line. > ... > Why is it reading with an empty-string $0 in %products{''} > > -y > > > On Sun, Jun 14, 2020 at 5:47 PM Joseph Brenner wrote: > >> Well, with the first one it rejects all of my lines, and with the >> second one it passes

Re: interpolating the return from embedded code in a regexp

2020-06-14 Thread Joseph Brenner
istake when I wrote it up, but whatever.) On 6/14/20, Joseph Brenner wrote: > Well, with the first one it rejects all of my lines, and with the > second one it passes all of them. > > Just to be be clear, my idea is the second line is wrong, and it > should flag that one as a pr

Re: Code assertions to spy on regexps behavior

2020-06-17 Thread Joseph Brenner
On 6/14/20, Vadim Belman wrote: > It doesn't have to be an assertion. Just a code block would do the same. > > Best regards, > Vadim Belman > >> On Jun 14, 2020, at 8:55 PM, Joseph Brenner wrote: >> >> $_ = "Alpha beta gamma"; >> my @matches = m:g/(a) /; > >

Re: interpolating the return from embedded code in a regexp

2020-06-17 Thread Joseph Brenner
the way you would > expect > > Although I would do something like this instead: > > my ($code,$desc) = $line.split( /\s+/, 2 ); > if %products{$code} eq $desc { > > On Sun, Jun 14, 2020 at 6:44 PM Joseph Brenner wrote: > >> In part because of the recent di

Re: interpolating the return from embedded code in a regexp

2020-06-17 Thread Joseph Brenner
22」 > > 0 => 「2」 > > The Match docs can be clearer on when to use {} and when it isn't needed, > opened an issue https://github.com/Raku/doc/issues/3478 > > -y > > > On Mon, Jun 15, 2020 at 3:09 PM Brad Gilbert wrote: > >> You don't want to use

Re: interpolating the return from embedded code in a regexp

2020-06-18 Thread Joseph Brenner
; By "works", I mean that the third "Corn dogs" example matches, while > the first two fail: > > checking line: P123 Viridian Green Label Saying Magenta > NO: bad line. > checking line: P666 Yoda puppets > NO: bad line. > checking line: P912 Corn dogs > Matc

Re: interpolating the return from embedded code in a regexp

2020-06-19 Thread Joseph Brenner
d updated to 2020.05.1 (I thought you were > still on 2019.03.1). > > FYI, I had been trying to write a line of code that calls the ".words" > method on both the input lines and your product list, but for some > reason I haven't been able to get to work. Maybe it's

junctions and parenthesis

2020-06-21 Thread Joseph Brenner
I was just playing around with junctions a bit today, and I noticed that if you weren't religious about using parenthesis with them you could get quietly tripped up: say so any() eq any(); # True (as expected) say so any() eq any(); # False (as expected) say so any eq any ; #

Re: junctions and parenthesis

2020-06-22 Thread Joseph Brenner
n operators -- so "eq" binds more tightly > than "any". > > Thus > >say so any eq any ; > > parses like > >say(so(any( eq any(; > > which is indeed False. > > I'm not exactly sure what sort of warning should go here, or

Re: junctions and parenthesis

2020-06-24 Thread Joseph Brenner
s nicely, though (the syntax is less like English): say so .any eq .any; My solution would be just to always use parens on the junction functions: say so any() eq any(); On 6/24/20, Timo Paulssen wrote: > On 22/06/2020 20:12, Joseph Brenner wrote: >> > Speculating wildl

Re: Raku-LibCurl:ver<1.0> install error on older MacOS?

2020-07-13 Thread Joseph Brenner
I don't know if it's related, but I was just having some trouble with installs of LibCurl on an old linux box, I was getting errors like: # at t/01-load.t6 line 7 # Cannot locate native library 'libcurl.so': libcurl.so: cannot open shared object file: No such file or directory But I had libraries

doing an inner join via cross-product

2020-07-19 Thread Joseph Brenner
I was thinking about the cross-product operator the other day, and I was wondering if there might be a convenient way of filtering the resulting cartesian product to do something like a database inner join: my @level = ( godzilla => 9 ,gremlin => 3, hanuman => 5 ); my @origin = (

SF Perl's Raku Study Group

2020-07-31 Thread Joseph Brenner
As usual, on Sunday afternoon at 2pm Pacific Standard Time, we're going to be doing our usual Raku study group... since we're zooming 'em these days there's no reason not to publicize them wider: https://www.meetup.com/San-Francisco-Perl/events/272258217/ These tend to be intermediate level discu

SF Perl's Raku Study Group

2020-08-08 Thread Joseph Brenner
The SF Perl group's online Raku Study group is coming up again tomorrow, Sunday August 09th at 2pm, via zoom. RSVP to: https://www.meetup.com/San-Francisco-Perl/events/271993517/ zoom link, 2pm: https://us04web.zoom.us/j/72909473784?pwd=YTd1ZnlWTFV3ckZMWmtRcXdPK2loZz09

Re: SF Perl's Raku Study Group

2020-08-09 Thread Joseph Brenner
other subject, we're probably going to be messing around with again with type contraints, where clauses, subsets, and type coercion. On 8/8/20, Joseph Brenner wrote: > The SF Perl group's online Raku Study group is coming up again > tomorrow, Sunday August 09th at 2pm, via zoom.

The SF Perl Raku Study Group, at 1pm this Sunday, the 16th

2020-08-14 Thread Joseph Brenner
"The world is full of magical things patiently waiting for our wits to grow sharper." [1] Time for another Raku study group: https://us02web.zoom.us/j/86928085691?pwd=bWZ5TzNWbFlTaFpOWVloU3NXUEIrdz09 Password: 4RakuRoll Note: we're experimenting with an earlier start time, 1pm California time,

SF Perl's Raku Study Group: Sunday 1pm PST

2020-08-18 Thread Joseph Brenner
Yeaning for the ancient heavenly connection to the starry dynamo of night, it's the Raku study group: https://us02web.zoom.us/j/85864767082?pwd=TW94dG8zR2tHWEl3ZVdvdmVyYkJkUT09 Password: 4RakuRoll. Note: we're using an earlier start time now, 1pm PST, to make things a little easier for people i

[email protected], [email protected]

2020-08-28 Thread Joseph Brenner
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams of the Raku Study Group. https://us02web.zoom.us/j/88495193366?pwd=TXpMSlVqaVVGMm52SWlvSmRrZXFBUT09 Password: 4RakuRoll Note: we're still using that earlier start time: 1pm in California. This make

Raku Study group in progress

2020-08-30 Thread Joseph Brenner
I'm trying to get the Raku study group working today, but I've been having a bunch of zoom weirdness. It should be in progress now: The SF Perl Raku Study Group, 8/30 at 1pm PDT https://us02web.zoom.us/j/88495193366?pwd=TXpMSlVqaVVGMm52SWlvSmRrZXFBUT09 Password: 4RakuRoll

The Raku Study group, Sunday at 1pm PST

2020-09-03 Thread Joseph Brenner
In times of crisis the wise build bridges, while the foolish build barriers: The Raku Study Group. September 6th, 1 pm in California, 9pm in the UK. Zoom meeting link: https://us02web.zoom.us/j/83899299398?pwd=S1dxa1FUVU9ZZGE2ZERWQmtoMmFhdz09 Passcode: 4RakuRoll RSVPs are always helpful, though

The SF Perl Raku Study Group, Sunday Sept 13th at 1pm PDT

2020-09-11 Thread Joseph Brenner
And another Raku study group is added to the cosmic unconsciousness, yet another node in the lattice of coincidence. September 13, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/83345271518?pwd=dG9za2pTQXFIVjBuSFJ0UXNQOUNmZz09 Passcode: 4RakuRoll RSVPs are always

The SF Perl Raku Study Group, Sunday Sept 20th at 1pm PDT

2020-09-19 Thread Joseph Brenner
One must have a mind of winter to behold the Nil that is not there and the Any that is. The Raku Study Group: September 20th, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/87842843034?pwd=RVYwb2dQdk9ESHVtS0N5VGUrbHpFZz09 Passcode: 4RakuRoll RSVPs are always help

Re: "ICU - International Components for Unicode"

2020-09-24 Thread Joseph Brenner
I'm not sure myself, but my first guess would be probably not...I *think* Raku is doing it's own Unicode thing, and isn't using any system ICU libraries (but I'm willing to stand corrected on that). As far as perl (the-language-formerly-known-as-perl5) is concerned: That page http://site.icu-pro

Re: "ICU - International Components for Unicode"

2020-09-24 Thread Joseph Brenner
ght there might be some point in using them for something or other. On 9/24/20, Elizabeth Mattijsen wrote: > https://www.codesections.com/blog/raku-unicode/ > >> On 24 Sep 2020, at 20:00, Joseph Brenner wrote: >> >> I'm not sure myself, but my first guess would be prob

Re: "ICU - International Components for Unicode"

2020-09-24 Thread Joseph Brenner
tware, > Leica Geosystems GIS & Mapping LLC, Mandrake Linux, OCLC, Progress > Software, Python, QNX, Rogue Wave, SAP, SIL, SPSS, Software AG, SuSE, > Sybase, Symantec, Teradata (NCR), ToolAware, Trend Micro, Virage, > webMethods, Wine, WMS Gaming, XyEnterprise, Yahoo!, Vuo, and man

SF Perl's Raku Study Group

2020-09-26 Thread Joseph Brenner
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started, The Raku Study Group: September 27, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/88535076025?pwd=MHBOTDltVitVMlh4R2Z5WUFaSDYwQT09 Passcode: 4RakuRoll https:

The SF Perl Raku Study Group, 10/4 at 1pm PDT

2020-10-01 Thread Joseph Brenner
Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information? The Raku Study Group. October 4th, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/88535076025?pwd=MHBOTDltVitVMlh4R2Z5WUFaSDYwQT09 Passcode: 4RakuRoll RSVPs are helpf

The SF Perl Raku Study Group, 10/11 at 1pm PDT

2020-10-09 Thread Joseph Brenner
"You engineers are all mystics." -- Bruce Sterling, "Green Days in Brunei" (1985) And so, the SF Perl Raku Study Group: October 11th, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/83672832845?pwd=WWs0Wm5GaDUyN3RkQkZRM2QzMnhzUT09 Passcode: 4RakuRoll RSVPs can be

Re: Language Design: 'special casing' of split()? (i.e. .split performs concomitant .join? )

2020-10-10 Thread Joseph Brenner
William Michels wrote: >I actually wondered where the different programming paradigms >would be delineated I think were the present topic has to do more with the strong/weak/gradual typing debates-- here Raku is doing an automatic type conversion that a "strong-typing" fanatic would sneer at. Th

Re: cross reduce operator magic

2020-10-11 Thread Joseph Brenner
Bruce Gray wrote: > NOTE: 30 minutes from now is the start of the Raku Study Group of the San > Francisco Perl Mongers. Thanks-- though now it's 3 minutes-- but that was the info for last week. The current one is: https://www.meetup.com/San-Francisco-Perl/events/273839687/ In general, you ca

The SF Perl Raku Study Group, 10/18 at 1pm PDT

2020-10-15 Thread Joseph Brenner
"... I collected the instruments of life around me, that I might infuse a spark of being into the lifeless thing that lay at my feet." The Raku Study Group October 18th, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/89020855442?pwd=VitIMS9pU1g5QWl2eEFSN3RGTS82UT09

The SF Perl Raku Study Group, 10/25 at 1pm PDT

2020-10-24 Thread Joseph Brenner
With great power, comes the Raku Study group. October 25th, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/84087845936?pwd=OXlkQ1UxRGw4bHNoUmZwMlE5dDBndz09 Passcode: 4RakuRoll https://www.meetup.com/San-Francisco-Perl/events/274150568/

The SF Perl Raku Study Group, 11/01 at 1pm PDT

2020-10-29 Thread Joseph Brenner
"Man or Child, Stong or Weak, None of those matter once you are out at sea!" -- Usopp ("One Piece") The Raku Study Group. November 1st, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/84566910601?pwd=R0ppbC9JRm5rV0hCdTJISkQ0Rml0QT09 Passcode: 4RakuRoll RSVPs are

The SF Perl Raku Study Group, 11/01 at 1pm PDT

2020-10-30 Thread Joseph Brenner
And one more time (with a corrected meetup link this time): "Man or Child, Stong or Weak, None of those matter once you are out at sea!" -- Usopp ("One Piece") The Raku Study Group. November 1st, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/84566910601?pwd=R0pp

The SF Perl Raku Study Group, 11/08 at 1pm PDT

2020-11-07 Thread Joseph Brenner
The SF Perl Raku Study Group, 11/01 at 1pm PDT "Possibilities, innumerable and tightly packed, could shower forth like mushroom spore between such alternatives as being here, or there; alive, or dead; and old, or young." -- Elizabeth Jane Howard, The Long View (1956) The Raku Study Group. Nov

Re: Subset w/ Inline::Perl5 RE as constraint

2020-11-08 Thread Joseph Brenner
I think this kind of thing does what you're after: use Inline::Perl5; my $p5 = Inline::Perl5.new; my $p5pat = '\w+'; $p5.run( 'sub chk { $_[0] =~ m/' ~ $p5pat ~ '/ }' ); subset p5_words of Str where { $p5.call( "chk", $^a ) }; my p5_words $a = "alpha"; say $a; # alpha, perl5 word chars, so acce

The SF Perl Raku Study Group, 11/15 at 1pm PDT

2020-11-12 Thread Joseph Brenner
"The winds and waves are always on the side of the ablest navigators." -- Edward Gibbon The Raku Study Group. November 15th, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/81829068041?pwd=QkhkM0RMSFJUdEFxYnA0UHhXcWFzdz09 Passcode: 4RakuRoll RSVPs are useful, thou

The SF Perl Raku Study Group, 11/22 at 1pm PDT

2020-11-20 Thread Joseph Brenner
"But in analysing history do not be too profound, for often the causes are quite superficial." -- Ralph Waldo Emerson, 1836 The Raku Study Group. November 22nd, 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/86007414540?pwd=UmlIU3pFWWVSRGtQZ1Y3ZGRlTFNVdz09 Pass

Lambert Lum on Docker, November 29th, 1pm.

2020-11-26 Thread Joseph Brenner
We're taking a break from the "Raku Study Group" this weekend, but Lambert Lum has volunteered to use the timeslot to talk about Docker. This is on Sunday November 29th, 1pm, via google meet rather than zoom: https://meet.google.com/mdh-ywsn-ghk https://www.meetup.com/SVPerl/events/274755174

The ,= operator

2020-11-26 Thread Joseph Brenner
I was going through the operator list in the documentation the other day, and I noticed this one: postfix ,= Creates an object that concatenates, in a class-dependent way, the contents of the variable on the left hand side and the expression on the right hand side: my %a = :11a, :22

Re: The ,= operator

2020-11-27 Thread Joseph Brenner
First off, much thanks to Ralph Mellor for his detailed explanations. Ralph Mellor wrote: > @r ,= 'd'; > > The above expands to: > > @r = @r , 'd'; Okay, that makes sense. So the circular reference I thought I was seeing is really there, and it's working as designed. There isn't anything very

Re: The ,= operator

2020-11-27 Thread Joseph Brenner
About the documentation in general... > > that particular pair-input syntax is my least favorite. > > Flipping around the order of key and value when the value is a numeric...? > > > > And it isn't needed to demo the operator, any pair input syntax works. > > I might argue that examples should ...

Re: The ,= operator

2020-11-29 Thread Joseph Brenner
Ralph Mellor wrote: >> > @r = @r , 'd'; >> >> Okay, that makes sense. So the circular reference I thought I >> was seeing is really there, and it's working as designed. >> >> There isn't anything very useful in this behavior though, is there? > > Yes. > > Here are some relevant results from a se

Re: The ,= operator

2020-11-29 Thread Joseph Brenner
Joseph Brenner wrote: > Just to be clear, I wasn't saying I didn't think circular references should be forbidden, Sorry about the double-negative. It could use another "not" to triple it.

Re: The ,= operator

2020-11-29 Thread Joseph Brenner
William Michels wrote: >> > "Perhaps more importantly, what improvement do you propose?" > > Apologies for top-posting, but what immediately comes to my mind upon > encountering the creation of a self-referential (circular/infinite) > object is proverbially 'going-down-a-level' and trying again. S

Re: The ,= operator

2020-11-30 Thread Joseph Brenner
William Michels wrote: > Joe, what would you expect the code below to produce? > %h<> ,= c => 3; > @a[] ,= 'd'; Well *I* expect it to error out, but that's my p5 brain talking. The Raku approach is if you ask for nothing it gives you everything, so an empty index like that essentially doesn'

The SF Perl Raku Study Group, 12/6 at 1pm PDT

2020-12-02 Thread Joseph Brenner
Gregory Corso's "The Poet's Choice": When confronted by two alternatives, choose both. The Raku Study Group. December 6th, 2020 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/89496477711?pwd=aUdqa3FSdGZMNFBnR1hNbzdsbkZsUT09 Passcode: 4RakuRoll RSVPs are useful

Re: The ,= operator

2020-12-06 Thread Joseph Brenner
ToddAndMargo via perl6-users wrote: > I am a little late to this conversation, but `,=` > looks a lot like `push` to me. Yes that was my first impression, if you read ahead a bit in the discussion you'll see it explained. In summary: the = shortcuts all work in a precisely parallel way, so @r

The SF Perl Raku Study Group, 12/13 at 1pm PDT

2020-12-07 Thread Joseph Brenner
Jim Carrol, "Day and Night": "And even when the question finds the answer/ Then even then, there's something like a dancer" The Raku Study Group December 13th, 2020 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/88945179127?pwd=MlBnSW9zZ0ozRVRaL0s5d1dKbjZQdz09

The SF Perl Raku Study Group, 12/20 at 1pm PDT

2020-12-18 Thread Joseph Brenner
"The mysterious insights that people have when speaking, listening, creating, and even when they are programming, are still beyond the reach of science; nearly everything we do is still an art." -- Donald Knuth, "Computer programming as an art", CACM, December 1974 The Raku Study Group Decembe

The SF Perl Raku Study Group, 01/10 at 1pm PDT

2021-01-09 Thread Joseph Brenner
"The old world is dying, and the new world struggles to be born: now is the time of monsters" Antonio Gramsci, according to Heather Cox Richardson. The Raku Study Group January 10, 2021 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/83476350767?pwd=RWh6TTRKejEx

The SF Perl Raku Study Group, 01/17 at 1pm PDT

2021-01-16 Thread Joseph Brenner
"I had an ardent desire to believe that there can be such a thing as knowledge, combined with a great difficulty in accepting much that passes as knowledge." -- Bertrand Russell, "The Philosophy of Logical Atomism" (1918) The Raku Study Group January 17, 2021 1pm in California, 9pm in the U

The SF Perl Raku Study Group, 01/24 at 1pm PDT

2021-01-22 Thread Joseph Brenner
"I cannot bring a world quite round, Although I patch it as I can." -- Wallace Stevens, "The Man With The Blue Guitar" The Raku Study Group January 24, 2021 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/82188514535?pwd=RU11S3JQSTNIcHh4K3l1MkZnVW1VUT09 Passcode

The SF Perl Raku Study Group, 01/31 at 1pm PDT

2021-01-28 Thread Joseph Brenner
>From the introduction to "Naming, Necessity, and Natural Kinds" (1977), edited by Stephen P. Schwartz: "Putnam extends the theory to natural kind terms. His view is that we 'baptise' what we take to be good examples or paradigms of some substance such as water and then use 'water' to refer to wh

Re: I need help with ~~m/

2021-01-30 Thread Joseph Brenner
I think ToddAndMargo was thinking of perl5 regexes, where [.] is a good way of matching a literal dot-- though myself, I'm more inclined to use \. In Raku, the square brackets just do non-capturing grouping much like (?: ... } in perl5. To do a character class, you need angles around the squares.

Re: I need help with ~~m/

2021-01-30 Thread Joseph Brenner
> My mistake was think that if a value at the end > did not exist, I was given back a null. Now I know > to look for a false. > > say "1.33" ~~ m/(\d+) ** 3..4 % "." / > False That pattern says there has to be three or four fields of digits, so if you don't have that many, the entire match has t

The SF Perl Raku Study Group, 02/07 1pm PDT

2021-02-04 Thread Joseph Brenner
Leo Tolstoy, "Anna Karenina": "After wavering for some time between various kinds of art-- religious, historical, genre or realistic-- he began to paint. He understood all the different kinds and was able to draw inspiration from all, but he could not imagine that it is possible to be q

Re: REPL-specific issue with stored regex variable?

2021-02-07 Thread Joseph Brenner
William Michels via perl6-users wrote: > Hello, I'm wondering if there's a REPL-specific issue with the following > docs.raku.org code? The code can be found at: > https://docs.raku.org/language/regexes#Regex_interpolation I'm seeing the same behavior. This code runs in a script, but if you pas

The SF Perl Raku Study Group, 02/14 at 1pm PDT

2021-02-11 Thread Joseph Brenner
Juanita Nelson, "A Matter of Freedom" from "Seeds of Liberation" (1964) edited by Paul Goodman: "How could I presume to have so much of the truth that I would defy constituted authority? What made me so certain of myself in this regard? I was not certain. But it seemed to me that if I s

Re: My OOP keeper

2021-02-14 Thread Joseph Brenner
Ralph Mellor wrote: > Raku's OOP was designed to support proto-type programming > and method delegation straight out-of-the-box. Can you give us a pointer to some code examples on how to use Raku for prototype-style OOP? I can think of ways to do it, but I don't know that I see any advantage

Re: My OOP keeper

2021-02-14 Thread Joseph Brenner
Darren Duncan wrote: > I don't understand the terminology "keeper" in this context. "Keeper" is just his own term for his private notes, like a "cheat sheet" or a summary.

^methods doesn't show all methods

2021-02-16 Thread Joseph Brenner
Set objects have Associative methods: my $s = set 2, 4, 6; say $s.keys; # (4 2 6) But I don't see them in the list from .^methods: say $s.^methods; # (menu default pick minpairs Setty grabpairs SET-SELF raku Method+{is-nodal}.new Real Baggy iterator keyof Method+{is-nodal}.new Method+{

Re: ^methods doesn't show all methods

2021-02-16 Thread Joseph Brenner
Gianni Ceccarelli wrote: >If you grep the list itself, instead of its gist:: > > $ raku -e 'Set.^methods.map(*.name).grep(/keys/)>>.say' > keys Yes, you're right. That's all there was to it.

The SF Perl Raku Study Group, 02/21 at 1pm PDT

2021-02-17 Thread Joseph Brenner
Christopher Marlowe, "Doctor Faustus" (~1588): "Learned Faustus, To know the secrets of astronomy Graven in the book of Jove's high-firmanent, Did mount himself to scale Olympus' top. Being seated in a chariot burning bright Drawn by the strength of yoked dragons necks He views the clouds, the pla

Re: ^methods doesn't show all methods

2021-02-18 Thread Joseph Brenner
Vadim Belman wrote: > It's not about gist truncating long lists. After all, when it does so it > ends the output with triple dot. > > Yet nobody spotted that not every methods in the list are represented by > their names. Alongside with something like 'elems' there are many > 'Method+{is-nodal}.n

The SF Perl Raku Study Group, 02/28 at 1pm PDT

2021-02-26 Thread Joseph Brenner
The SF Perl Raku Study Group, 02/28 at 1pm PDT "With the Power of your Ancestor Grant the prayer of your followers, Arise and Show Your Power" "Mothra's Song" (1961) by Yuji Koseki The Raku Study Group. February 28th, 2021 1pm in California, 9pm in the UK Zoom meeting link:

list of all raku classes?

2021-02-28 Thread Joseph Brenner
Is there a convenient way to get a list of all classes built-in to Raku?

Re: list of all raku classes?

2021-02-28 Thread Joseph Brenner
Daniel Sockwell wrote: >> Is there a convenient way to get a list of all classes built-in to Raku? > Short answer: > raku -e '.say for (|CORE::, |UNIT::, |OUTERS::, |MY::).grep({ .key eq > .value.^name }).grep({ .value.HOW.^name eq "Perl6::Metamodel::ClassHOW" > }).map(*.key).unique' > Somewhat

Re: Alternative view of Raku Documentation

2021-03-02 Thread Joseph Brenner
This is some very nice work, of course. I was wondering how difficult it would be to support other output formats (texinfo, nroff...). > Please let me know whether you find the search interface easier than the one > on the official site. I've got some problems with the existing search, myself,

A problem case for the site documentation search: the "^methods" method.

2021-03-02 Thread Joseph Brenner
If you go to docs.raku.org and type "^methods" into the search window, you get a drop down looking something like this: class Method Submethod method methods Reference ^methods methods Submethods Routine method Site Search sear

The SF Perl Raku Study Group, 03/07 at 1pm PDT

2021-03-04 Thread Joseph Brenner
>From Aristotle's "Categories", the first book of The Organon (trans. Harold P. Cook): "When genera are co-ordinate and different, differentiae will differ in kind. Take the genera, animal and knowledge. 'Footed', 'two-footed', 'winged', 'aquatic' are among the differentiae of animal.

Re: Newsgroups

2021-03-04 Thread Joseph Brenner
William Michels via perl6-users wrote: > Hi David, I see the archives are current: > > https://www.nntp.perl.org/group/perl.perl6.users/ Yes, going to the nntp web site, I can see something I just posted today. But David may actually be using an actual nntp feed via a newsreader-- nntp refers to

Re: Newsgroups

2021-03-04 Thread Joseph Brenner
This, for example, doesn't show any new posts in the last 30 days: https://groups.google.com/g/perl.perl6.users On 3/4/21, Joseph Brenner wrote: > William Michels via perl6-users wrote: >> Hi David, I see the archives are current: >> >> https://www.nntp.perl.

documentation of internals

2021-03-06 Thread Joseph Brenner
Is there anything like an equivalent of "man perlguts" for Raku/rakudo? There are things like this, but they seem to be very out-of-date: https://github.com/rakudo/rakudo/blob/master/docs/architecture.html

Re: documentation of internals

2021-03-09 Thread Joseph Brenner
> I think it is best if you open an issue for this, so that it will not fall > through the cracks. Okay, fair enough: https://github.com/rakudo/rakudo/issues/4245 On 3/7/21, Elizabeth Mattijsen wrote: >> On 7 Mar 2021, at 00:16, Joseph Brenner wrote: >> >> I

Re: A problem case for the site documentation search: the "^methods" method.

2021-03-10 Thread Joseph Brenner
JJ Merelo wrote: > This is a bug in Documentable. Generated an issue there > https://github.com/Raku/Documentable/issues/149 Thanks for the report. And thanks for opening the issue.

Working with a regex using positional captures stored in a variable

2021-03-11 Thread Joseph Brenner
Does this behavior make sense to anyone? When you've got a regex with captures in it, the captures don't work if the regex is stashed in a variable and then interpolated into a regex. Do capture groups need to be defined at the top level where the regex is used? { # From a code example in the "

The SF Perl Raku Study Group, 03/14 at 1pm PDT

2021-03-11 Thread Joseph Brenner
Donald Knuth, "Computer programming as an art", CACM, December 1974: "In this connection it is most important for us all to remember that there is no one 'best' style; everybody has his own preferences, and it is a mistake to try to force people into an unnatural mold. ... The important thing is

Re: [sf-perl] The SF Perl Raku Study Group, 03/14 at 1pm PDT

2021-03-12 Thread Joseph Brenner
You'll need to expand on that a bit, I don't get the complaint. Do pretentious quotations bug you? On 3/12/21, Tiejun Li wrote: > Joseph, > You think you are something. You are not. You are nothing. > TJ > > On Friday, March 12, 2021, 3:17:03 AM GMT+8, Joseph Bren

Re: Please create a Raku community channel

2021-03-13 Thread Joseph Brenner
Richard Hainsworth wrote: > I found out yesterday by the intervention of a regular participant in > the community that a new documentation website is being worked on. I should say, I was surprised to hear about that project also. I knew about Richard Hainsworth's work, but not about what the ot

Re: Working with a regex using positional captures stored in a variable

2021-03-13 Thread Joseph Brenner
n as a lexical regex > > > my regex pattern { (\d+) \s+ (\w+) } > > $input ~~ / / > 「9 million」 > pattern => 「9 million」 > 0 => 「9」 > 1 => 「million」 > > Or just use it as the whole regex > > > $input ~~ $pattern # vari

Re: Fwd: Working with a regex using positional captures stored in a [email protected]

2021-03-13 Thread Joseph Brenner
> > On 11.03.21 17:43, William Michels wrote: >> Hi Moritz your book is mentioned below. Care to chime in? Reply to >> perl6-users . >> >> Thx, Bill. >> W. Michels, Ph.D. >> >> -- Forwarded message - >> From: Joseph Brenner >

Re: The SF Perl Raku Study Group, 03/14 at 1pm PDT

2021-03-14 Thread Joseph Brenner
Oops: > March 14th, 2021 1pm in California, 9pm in the UK Now that's *8pm* in the UK. The European Contingent might drop by a little late today.

Re: Working with a regex using positional captures stored in a variable

2021-03-17 Thread Joseph Brenner
sistent. > So breaking consistency should be very carefully considered. > > In this case, there is very little benefit. > Even worse, you then have to come up with some new syntax to prevent it > from capturing when you don't want it to. > That new syntax wouldn't be as gu

The SF Perl Raku Study Group, 03/21 at 1pm PDT

2021-03-19 Thread Joseph Brenner
"Nothingness lies coiled in the heart of being-- like a worm." -- Jean-Paul Sartre, "Being and Nothingness" The Raku Study Group March 21, 2021 1pm in California, 8pm in the UK Zoom meeting link: https://us02web.zoom.us/j/85728574799?pwd=S2lZN3J0WkRTcU9WZFRMMXdsM1FWUT09 Passcode: 4RakuRol

  1   2   3   4   >