🦋 Welcome to the former MAIN() IRC channel of the Raku Programming Language (raku.org). This channel has moved to Libera (irc.libera.chat #raku)
Set by lizmat on 23 May 2021.
00:00 melezhik left 00:02 reportable6 left 00:04 reportable6 joined
elcaro tbrowder: It's still not clear what your doing without an example... you have a list of things that are numbers in various formats, and your trying to parse them to a Numeric type? 00:22
also, one limitation of the radix literal syntax is, well... that it requires a "literal". you can't do `:$base<$str>`. for when you need a variable base, there's `$str.parse-base($base)` 00:24
tbrowder i understand. i just need a list of numbers that are not pure strings but retain their number type even as a string. the <<>> do that for all formats it seem. 00:27
elcaro Could you use allomorphs? 00:37
m: say my $x = RatStr.new(:16<10.1>, '0x10.1'); say +$x 00:38
camelia 0x10.1
00:46 sm1 left 00:53 Doc_Holliwould left
rassoc that's what «...» is doing 00:55
"This style of quoting is like qqww, but with the added benefit of constructing allomorphs"
00:57 Doc_Holliwood joined 01:30 Doc_Holliwood left 01:33 Doc_Holliwood joined
tbrowder cool 01:43
and i'm constructing the set of allomorphs into an array for test inputs manually, so the <<>> are exactly what i need for that. 01:46
02:07 Doc_Holliwood left 02:20 rassoc left 02:56 frost joined 03:56 sourceable6 left, bisectable6 left, unicodable6 left, squashable6 left, releasable6 left, reportable6 left, evalable6 left, greppable6 left, benchable6 left, coverable6 left, notable6 left, committable6 left, shareable6 left, bloatable6 left, linkable6 left, nativecallable6 left, quotable6 left, tellable6 left, statisfiable6 left, coverable6 joined, releasable6 joined, committable6 joined, shareable6 joined 03:57 greppable6 joined, bloatable6 joined, quotable6 joined, tellable6 joined, notable6 joined, statisfiable6 joined, reportable6 joined, unicodable6 joined, bisectable6 joined 03:58 nativecallable6 joined, sourceable6 joined, squashable6 joined 03:59 benchable6 joined, linkable6 joined, evalable6 joined 04:02 tejr left, tejr joined 04:12 RandalSchwartz left
Geth Raku-Steering-Council: szabgab++ created pull request #42:
link to web site
Raku-Steering-Council: szabgab++ created pull request #43:
list all the announcements
04:49 Woodi joined 05:01 daxim left 05:02 daxim joined 05:03 markmarkmark left, corwin left, oodani left, ingy left, eof left, rjbs left, ptc left, ugexe left 05:04 ptc joined, ugexe joined, rjbs joined 05:05 ilogger2 left, leont left, SmokeMachine left, moon-child left, samcv left, perlmaros left, goblin left, sjn left, Juerd left, HobGoblin joined, perlmaros joined, childlikempress joined, sjn joined, ilogger2_ joined, SmokeMachine joined, leont joined 05:06 Juerd joined, vrurg left, Maylay left, Grrrr left, DarthGandalf left, masak left, tbrowder left, KotH left, gugod left, BinGOs left, mtj left, masak_ joined, KotH_ joined, bingos_ joined, Grrrr joined, vrurg joined 05:07 tbrowder joined 05:08 childlikempress is now known as moon-child 05:12 oodani joined, mtj joined, summerisle joined 05:13 samcv joined, gugod joined, Maylay joined, corwin joined, corwin left, corwin joined 05:14 DarthGandalf joined 05:16 ingy joined 05:20 markmarkmark joined 06:03 reportable6 left 06:05 reportable6 joined 06:07 Eddward left
Geth Raku-Steering-Council/main: 4cdf55c717 | (Gabor Szabo)++ (committed using GitHub Web editor) | README.md
link to web site
Raku-Steering-Council/main: e594156663 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | README.md
Merge pull request #42 from szabgab/patch-1

link to web site
06:09 bingos_ is now known as BinGOs 06:10 bingos_ is now known as BinGOs, BinGOs left, BinGOs joined 06:27 lucerne left 06:46 kjp left 06:51 ufobat joined 06:56 kjp joined 07:12 abraxxa joined 07:18 abraxxa left 07:19 abraxxa joined, patrickb joined 07:26 patrickb left 07:51 frost left 07:59 dakkar joined 08:06 frost joined 08:32 frost left 08:45 Doc_Holliwood joined 09:00 rassoc joined 09:08 abraxxa left 09:11 Sgeo left 09:25 abraxxa joined 09:34 frost joined 09:55 chrysanthematic joined 09:56 chrysanthematic joined, chrysanthematic left 10:09 chrysanthematic joined, chrysanthematic left
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/07/05/2021-...essing-up/ 10:59
11:04 stoned75 left 11:06 stoned75 joined
moritz lizmat++ 11:21
rassoc thanks a lot! 11:32
11:43 dogbert17 joined 11:46 dogbert11 left 11:49 KotH_ is now known as KotH 11:57 patrickb joined 12:03 reportable6 left, reportable6 joined
rassoc raiph states the following in one of those links: "In Raku, Int denotes what PLs like Swift mean by Int?. The rationale is that object types should incorporate type safety by default without requiring a blizzard of ?s." 12:15
how is that true? crystal, rust and swift enforce these null-checks at compile-time, don't they? How does raku come close to this? 12:16
moritz it doesn't 12:24
tbrowder howdy, rakoons 12:54
i just put up a short article on a proposed 'modf' routine for the raku core on the rakudo wiki. its link is in the list in the brief menu on the right side entitled 'Modf routine'. 12:57
i would appreciate critical reviews and changes to that. 12:58
i have successfully moved my ongoing implementation of that from the 6.c to the 6.e release side of the rakudo master branch, and i will be implementing the user interface as i describe on the wiki. 13:01
13:03 linkable6 left, evalable6 left 13:04 linkable6 joined 13:05 evalable6 joined
m6locks has anyone done SICP in raku? 13:07
something like this alumni.media.mit.edu/~tpminka/PLE/h...tream.html
tbrowder correction: the title on the wiki is "Modf proposal"
13:10 RandalSchwartz joined 13:32 squashable6 left 13:33 squashable6 joined 13:34 squashable6 left 13:37 squashable6 joined 13:41 greyrat left 13:44 greyrat joined, lucerne joined 13:48 MasterDuke joined 14:24 frost left 14:25 frost left 14:37 MasterDuke left 15:37 committable6 left, evalable6 left, quotable6 left, linkable6 left, unicodable6 left, sourceable6 left, squashable6 left, bloatable6 left, releasable6 left, reportable6 left, greppable6 left, nativecallable6 left, notable6 left, coverable6 left, statisfiable6 left, shareable6 left, benchable6 left, bisectable6 left, tellable6 left 15:38 sourceable6 joined, evalable6 joined, coverable6 joined, quotable6 joined, bisectable6 joined, committable6 joined, bloatable6 joined 15:39 squashable6 joined, linkable6 joined, notable6 joined, greppable6 joined 15:40 statisfiable6 joined, benchable6 joined, reportable6 joined, nativecallable6 joined, releasable6 joined, shareable6 joined, unicodable6 joined 15:41 tellable6 joined, Doc_Holliwood left 16:07 smarton left 16:11 smarton joined 16:12 smarton left 16:16 smarton joined 16:20 smarton is now known as brown121407, Eddward joined 16:36 dakkar left
littlebenlittle[ m: '"this"' ~~ / <?before '"'> <?after '"'> .* / 16:51
camelia ( no output )
littlebenlittle[ * m: say '"this"' ~~ / <?before '"'> <?after '"'> .* / 16:52
m: say '"this"' ~~ / <?before '"'> <?after '"'> .* /
camelia Nil
littlebenlittle[ m: '"this"' ~~ / <?before '"'> <?after '"'> .* / 16:53
camelia ( no output )
littlebenlittle[ * m: say '"this"' ~~ / <?before '"'> <?after '"'> .* /
m: say '"this"' ~~ / <?before '"'> <?after '"'> .* /
camelia Nil
16:53 Kaiepi left, Kaiepi joined
littlebenlittle[ How can I get zero width assertions to work together in order to match values delimited by quotes or braces? 16:54
moritz m: say '"this"' ~~ / <?after '"'> .*? <?before '"'>/
camelia 「this」
littlebenlittle[ The before there is actually matching an implicit "", right? Or does it operate on .* from the right? 16:57
Ah, no, before operates from the right. docs.raku.org/language/regexes#Loo...assertions 16:58
Thank you!
m: say '-this-' ~~ rx:r / <?after '-'> <-[-]>* <?before '-'> /; 17:21
camelia 「this」
littlebenlittle[ m: say '-this-' ~~ anon grammar { token TOP { <?after '-'> <-[-]>* <?before '-'> } };
camelia False
CIAvash m6locks: I don't know SICP. Can you be a little bit more specific. From the haskell examples, you can do these things: 17:37
m: my &mul_odd_squares = *.grep(* !%% 2).map(*²).reduce: &[×]; say mul_odd_squares [1..5] 17:38
camelia 225
CIAvash m: say [×] [1..5].grep(* !%% 2).map(*²)
camelia 225
CIAvash m: my &mul_odd_squares = &reduce.assuming(&[×]) ∘ &map.assuming(*²) ∘ &grep.assuming(* !%% 2); say mul_odd_squares [1..5]
camelia 225
CIAvash m: [1..5] ==> grep(* !%% 2) ==> map(*²) ==> reduce(&[×]) ==> say() 17:39
camelia 225
17:46 MoC joined, ufobat left 17:48 Doc_Holliwood joined 17:55 ufobat joined
rassoc littlebenlittle[, not the most concise, but you can also extract in case things become more complicated: 17:58
m: grammar G { token TOP { '-' ~ '-' <foo> }; token foo { <-[-]>* }}; G.parse("-this-")<foo>.say
camelia 「this」
rassoc m: "-this-".match(/'-' $<foo>=.* '-'/)<foo>.say
camelia 「this」
rassoc or utilize make/made
18:02 reportable6 left 18:03 reportable6 joined 18:04 Sgeo joined
m6locks CIAvash: SICP is a programming course (and a similarly titled book) held at MIT, it uses Scheme to teach basic programming concepts mitpress.mit.edu/sites/default/fil...index.html 18:20
but it has been a hobby of many to re-do the exercises in a language of choice 18:24
18:26 patrickb left
rassoc m6locks: do you have a repo with the full list of exercises? 18:28
18:35 Doc_Holliwood left, greyrat left, RandalSchwartz left, dogbert17 left, gugod left, samcv left, ufobat left, MoC left, Kaiepi left, Eddward left, brown121407 left, tellable6 left, unicodable6 left, shareable6 left, releasable6 left, nativecallable6 left, statisfiable6 left, greppable6 left, notable6 left, linkable6 left, bisectable6 left, coverable6 left, sourceable6 left, lucerne left, kjp left, ingy left, corwin left, Maylay left, summerisle left, oodani left, abraxxa left, Sgeo left, reportable6 left, stoned75 left, rassoc left, markmarkmark left, DarthGandalf left, Ulti left, andinus` left, Grrrr left, Woodi left, Util left, avar left, m6locks left, jdv left, mtj left, leont left, SmokeMachine left, rjbs left, Raycat|Home left, Geth left, jess left, kybr left, perlbot left, nine left, kawaii_ left, sena_kun left, jrjsmrtn left, vodkra left, CIAvash left, cnx left, demostanis[m] left, bdju left, dcx left, m_athias left, Altreus left, moritz left, skaji left, cooper left, juanfra left, tinita left, elcaro left, camelia left, nebuchadnezzar left, doconthe1ocks left, lucs left, jjatria left, bartolin_ left, pierrot left, phogg left, pounce left, benchable6 left, squashable6 left, bloatable6 left, committable6 left, quotable6 left, evalable6 left, ilogger2_ left, TempIRCLogger left, Tirifto left, dg left, polettix_ left, ecocode left, sivoais left, Od1n left, lizmat left, Henry151 left, AlexDaniel left, littlebenlittle[ left, esh_ left, gfldex left, casaca left, jercos left, Ekho left, broquain1 left, domm left, patterner_ left, rba left, happy-dude left, PotatoGim left, gabiruh_ left, jcallen left, timo left, sftp left, samebchase left, KotH left, swaggboi left, jmcgnh left, solitario left, gordonfish left, avuserow left, JRaspass left, _________ left, dustinm` left, japhb left, perryprog left, tejr left, tbrowder left, Juerd left, ugexe left, daxim left, dpk left, holyghost left, simcop2387 left, GreaseMonkey left, zostay left, pjlsergeant left, discord-raku-bot left, leah2 left, rypervenche left, leedo left 18:39 Sgeo joined, reportable6 joined, ufobat joined, Doc_Holliwood joined, MoC joined, Kaiepi joined, Eddward joined, brown121407 joined, tellable6 joined, unicodable6 joined, shareable6 joined, releasable6 joined, nativecallable6 joined, benchable6 joined, statisfiable6 joined, greppable6 joined, notable6 joined, linkable6 joined, squashable6 joined, bloatable6 joined, committable6 joined, bisectable6 joined, quotable6 joined, coverable6 joined, evalable6 joined, sourceable6 joined, lucerne joined, greyrat joined, RandalSchwartz joined, dogbert17 joined, stoned75 joined, abraxxa joined, rassoc joined, kjp joined, markmarkmark joined, ingy joined, DarthGandalf joined, corwin joined, Maylay joined, gugod joined, samcv joined, summerisle joined, mtj joined, oodani joined, tbrowder joined, Grrrr joined, KotH joined, Juerd joined, leont joined, SmokeMachine joined, ilogger2_ joined, rjbs joined, ugexe joined, daxim joined, Woodi joined, tejr joined, happy-dude joined, Raycat|Home joined, dpk joined, TempIRCLogger joined, Geth joined, jess joined, holyghost joined, kybr joined, simcop2387 joined, GreaseMonkey joined, perlbot joined, swaggboi joined, nine joined, zostay joined, pjlsergeant joined, kawaii_ joined, discord-raku-bot joined, CIAvash joined, littlebenlittle[ joined, cnx joined, AlexDaniel joined, demostanis[m] joined, juanfra joined, Util joined, sena_kun joined, jmcgnh joined, jrjsmrtn joined, vodkra joined, Tirifto joined, solitario joined, avar joined, m6locks joined, jdv joined, gordonfish joined, avuserow joined, Ulti joined, dg joined, andinus` joined, PotatoGim joined, polettix_ joined, tinita joined, JRaspass joined, leah2 joined, rypervenche joined, leedo joined, dustinm` joined, japhb joined, perryprog joined, jcallen joined, timo joined, sftp joined, samebchase joined, esh_ joined, gfldex joined, jercos joined, Ekho joined, broquain1 joined, domm joined, patterner_ joined, rba joined, Od1n joined, sivoais joined, lizmat joined, Henry151 joined, camelia joined, nebuchadnezzar joined, doconthe1ocks joined, lucs joined, jjatria joined, bartolin_ joined, pierrot joined, phogg joined, pounce joined, bdju joined, dcx joined, m_athias joined, Altreus joined, moritz joined, skaji joined, cooper joined, casaca joined, elcaro joined, ecocode joined, _________ joined, gabiruh_ joined 18:40 vrurg joined, BinGOs joined, masak_ joined, sjn joined, moon-child joined, perlmaros joined, HobGoblin joined, ptc joined, eseyman joined, xinming joined, Manifest0 joined, [Coke] joined, RakuIRCLogger joined, peder joined, tobs joined, xkr47 joined, tonyo joined, Scotteh joined, tadzik joined, El_Che joined, charsbar joined, jast joined, raydiak joined, Voldenet joined, synthmeat joined, silug joined
CIAvash weekly: github.com/CIAvash/qutebrowser-userscripts 18:43
notable6 CIAvash, Noted! (weekly)
CIAvash weekly: www.ciavash.name/blog/2021/07/05/r...d-my-blog/
notable6 CIAvash, Noted! (weekly)
18:51 RandalSchwartz left
sjn lizmat++ # weekly raku news \o/ 18:52
m6locks rassoc: alas, no, but there's quite few related repos on github, this being one github.com/ivanjovanovic/sicp 19:21
also here: mitpress.mit.edu/sites/default/fil...index.html 19:22
19:44 sm1 joined 19:52 Raycat|Home left, MoC left, Raycat|Home joined 19:54 sm1 left 20:13 discord-raku-bot left, ufobat left, discord-raku-bot joined 20:36 RandalSchwartz joined 20:40 sono joined 20:47 discord-raku-bot left 20:49 discord-raku-bot joined 21:02 patrickb joined 22:02 linkable6 left, evalable6 left 22:04 linkable6 joined 22:05 evalable6 joined 22:26 patrickb left 22:29 discord-raku-bot left 23:29 committable6 left, shareable6 left, benchable6 left, bloatable6 left, reportable6 left, sourceable6 left, evalable6 left, linkable6 left, quotable6 left, squashable6 left, greppable6 left, tellable6 left, notable6 left, coverable6 left, releasable6 left, unicodable6 left, bisectable6 left, statisfiable6 left, nativecallable6 left 23:30 unicodable6 joined, coverable6 joined, tellable6 joined, squashable6 joined 23:31 linkable6 joined, reportable6 joined, shareable6 joined 23:32 releasable6 joined, notable6 joined, committable6 joined, bloatable6 joined, benchable6 joined, bisectable6 joined, statisfiable6 joined, evalable6 joined, sourceable6 joined, greppable6 joined, quotable6 joined, nativecallable6 joined 23:38 Doc_Holliwood left 23:41 monkey_ joined 23:45 Doc_Holliwood joined 23:47 monkey_ left 23:55 casaca left