Re: The SF Perl Raku Study Group, 04/10 at 1pm Pacific Time
And this: > March 10th, 2024 1pm in California, 9pm in the UK Should've read "8pm in the UK". On 3/7/24, Joseph Brenner wrote: > Note: Here in the US, we are about to "spring ahead" one mooorre time, > and the 1pm I'm referring to is an hour earlier than many of you expect. > >"It's becoming increasingly unusual to read a report of a new >technology or scientific discovery that doesn't breathlessly >use the phrase 'it seems like science fiction'. The news >cycle is currently dominated by hype about artificial >intelligence (a gross mis-characterisation of machine >learning algorithms and large language models). A couple of >years ago it was breathless hype about cryptocurrency and >blockchain technologies-- which turned out to be a financial >services bubble ... " > >-- Charles Stross, November 10th, 2023, >"We're sorry we created the Torment Nexus" > > The Raku Study Group > > March 10th, 2024 1pm in California, 9pm in the UK > > An informal meeting: drop by when you can, show us what you've got, > ask and answer questions, or just listen and lurk. > > Perl and programming in general are fair game, along with Raku, > > Zoom meeting link: > > https://us02web.zoom.us/j/87052612966?pwd=cExtbzJLVkIyUGVZRGlYWlBBRTg1dz09 > > Passcode: 4RakuRoll > > RSVPs are useful, though not needed: > https://www.meetup.com/san-francisco-perl/events/299663054/ >
The SF Perl Raku Study Group, 04/10 at 1pm Pacific Time
Note: Here in the US, we are about to "spring ahead" one mooorre time, and the 1pm I'm referring to is an hour earlier than many of you expect. "It's becoming increasingly unusual to read a report of a new technology or scientific discovery that doesn't breathlessly use the phrase 'it seems like science fiction'. The news cycle is currently dominated by hype about artificial intelligence (a gross mis-characterisation of machine learning algorithms and large language models). A couple of years ago it was breathless hype about cryptocurrency and blockchain technologies-- which turned out to be a financial services bubble ... " -- Charles Stross, November 10th, 2023, "We're sorry we created the Torment Nexus" The Raku Study Group March 10th, 2024 1pm in California, 9pm in the UK An informal meeting: drop by when you can, show us what you've got, ask and answer questions, or just listen and lurk. Perl and programming in general are fair game, along with Raku, Zoom meeting link: https://us02web.zoom.us/j/87052612966?pwd=cExtbzJLVkIyUGVZRGlYWlBBRTg1dz09 Passcode: 4RakuRoll RSVPs are useful, though not needed: https://www.meetup.com/san-francisco-perl/events/299663054/
Re: I need sorting help
On Tue, Mar 5, 2024 at 7:01 AM ToddAndMargo via perl6-users wrote: > >> $ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ > >> (try .Numeric) // $_}).List)' > >> > >> Yippee! > > raku -e '.say for .sort: { .comb(/ \d+ | \D+ /).map({ > > .Int // .self }).cache };' > > Awesome! Now I have two different methods! And now 4: $ raku -e '.say for .sort: {m/ \d+ /.Int}' bk1 bk2 bk10 bk34 or, same logic, but spelled differently: $ raku -e '.say for .sort: +*.match: / \d+ /' bk1 bk2 bk10 bk34 -- love, raiph
Re: pint: Elizabeth, sort list???
hello, > ==> sort({ | map { +$_ // $_ }, .split: /\d+/, :v }) ==> say() ok … so I'm lost but I'm not even curious to understand why (because of my lack of interest for the ==> operator :)) regards marc -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Strasbourg 14 rue René Descartes, BP 80010, 67084 STRASBOURG CEDEX 03.68.85.60.79
Re: pint: Elizabeth, sort list???
Hi Marc, This works: ==> sort({ | map { +$_ // $_ }, .split: /\d+/, :v }) ==> say() As the documentation says here https://docs.raku.org/routine/%3D%3D%26gt%3B The precedence is very loose so you will need to use parentheses to assign the result On Thu, Mar 7, 2024 at 8:37 AM Marc Chantreux wrote: > hello, > > > How would you write that expression using the feed operator? > > I tried > > < afoo12 afoo2 > > ==> {.sort: { | map { +$_ // $_ }, .split: /\d+/, :v }} > ==> {map } > > and the error message is really interesting > > Only routine calls or variables that can '.append' may > appear on either side of feed operators. > > on the other hand: I really don't understand why ==> even exists > as method call syntax works well. > > < afoo12 afoo2 > > .sort( { | map { +$_ // $_ }, .split: /\d+/, :v } ) > .map() > > what I would love instead is something closer than the haskell's $ > operator with a very low priority so it could be possible to be > parenthesis free. > > as example. I would like > > 1..10 ==> map * * 2 ==> say > > to be a joyful version of > > (1..10).map(* * 2).say > > regards > > -- > Marc Chantreux > Pôle CESAR (Calcul et services avancés à la recherche) > Université de Strasbourg > 14 rue René Descartes, > BP 80010, 67084 STRASBOURG CEDEX > 03.68.85.60.79 > > -- Fernando Santagata
Re: pint: Elizabeth, sort list???
hello, > How would you write that expression using the feed operator? I tried < afoo12 afoo2 > ==> {.sort: { | map { +$_ // $_ }, .split: /\d+/, :v }} ==> {map } and the error message is really interesting Only routine calls or variables that can '.append' may appear on either side of feed operators. on the other hand: I really don't understand why ==> even exists as method call syntax works well. < afoo12 afoo2 > .sort( { | map { +$_ // $_ }, .split: /\d+/, :v } ) .map() what I would love instead is something closer than the haskell's $ operator with a very low priority so it could be possible to be parenthesis free. as example. I would like 1..10 ==> map * * 2 ==> say to be a joyful version of (1..10).map(* * 2).say regards -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Strasbourg 14 rue René Descartes, BP 80010, 67084 STRASBOURG CEDEX 03.68.85.60.79