🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:01 Zippy left 00:02 reportable6 left, reportable6 joined 00:09 Skarsnik left 00:20 sm1 left 00:24 jess left 00:28 Manifest0 left 01:27 frost joined 01:34 ramdom joined, sm1 joined 01:35 ramdom left 01:40 monkey_ left 02:28 sm1 left 02:42 sm1 joined 02:53 sm1 left 03:19 sm1 joined 03:34 sm1 left 04:04 Colt2 joined, Colt2 left, Colt2 joined, sm1 joined 04:05 Colt left 04:06 Colt2 left 04:07 Colt joined 04:33 sm1 left 05:29 sm1 joined 05:47 Sgeo_ joined 05:48 BinGOs left, jmcgnh left, ptc_ left, gabiruh left, ptc joined, bingos joined 05:49 gabiruh joined, Sgeo left 05:51 jmcgnh joined 05:54 corwin left, GreaseMonkey left, daxim left, ugexe left, jcallen left, camelia left, Ekho left, dcx left, peder left, dustinm`_ left, Ulti_ left, mtj left, ingy left, jercos left 05:55 pierrot left, jercos joined, greaser|q joined, ugexe joined, jcallen joined, daxim joined, mtj joined 05:56 corwin joined, corwin left, corwin joined, pierrot joined, dcx joined 05:57 camelia joined, dustinm` joined, ingy joined, greaser|q left, greaser|q joined, greaser|q is now known as GreaseMonkey 06:00 peder joined, Ulti joined, Ekho joined 06:02 reportable6 left 07:02 linkable6 left, sourceable6 left, squashable6 left, nativecallable6 left, bloatable6 left, bisectable6 left, quotable6 left, statisfiable6 left, unicodable6 left, notable6 left, evalable6 left, coverable6 left, shareable6 left, tellable6 left, greppable6 left, benchable6 left, committable6 left, releasable6 left 07:03 unicodable6 joined, reportable6 joined 07:04 notable6 joined, greppable6 joined, coverable6 joined, bloatable6 joined, linkable6 joined 07:05 statisfiable6 joined, benchable6 joined, tellable6 joined 07:06 sm1 left 07:08 Flwyd left 07:25 sm1 joined 07:27 seednode left 07:28 seednode joined 07:44 sm1 left 07:53 abraxxa joined, ecocode__ left, ecocode__ joined 07:58 abraxxa left, abraxxa joined 08:01 Sgeo_ left 08:03 sm1 joined 08:05 evalable6 joined, shareable6 joined, quotable6 joined, squashable6 joined 08:21 Manifest0 joined 08:44 sm1 left 08:50 dakkar joined 09:05 releasable6 joined, committable6 joined 09:08 bingos is now known as BinGOs 09:19 sm1 joined 09:27 mjgardner left, PotatoGim left 09:28 patterner_ left, rjbs left, tbrowder left, zostay left, leont left, abraxxa left 09:29 kawaii_ left, ecocode__ left, skaji left, SmokeMachine_ joined, SmokeMachine left, pjlsergeant left, SmokeMachine_ is now known as SmokeMachine 09:30 kawaii_ joined 09:31 patterner_ joined, leont joined, ecocode__ joined, rjbs joined, tbrowder joined 09:32 zostay joined, pjlsergeant joined 09:34 skaji joined 09:42 PotatoGim joined, mjgardner joined 09:46 abraxxa joined 10:03 nativecallable6 joined 10:04 bisectable6 joined 10:28 sm1 left 10:29 sm1 joined 10:34 ircuser is now known as merpaderp 11:04 sourceable6 joined 11:20 ufobat joined, ufobat left 11:39 Altai-man joined 11:54 andrzejku joined 12:02 reportable6 left 12:04 reportable6 joined 12:19 abraxxa left 12:20 abraxxa joined 12:24 abraxxa left 12:26 abraxxa joined 12:33 atweedie joined 12:45 atweedie left, atweedie joined
atweedie m: my @a = 1..4; for @a.kv -> $i, $j { "$i//$j".say } 12:50
camelia 0//1
atweedie m: my @a = 1..4; for ^Inf Z @a -> $i, $j { "$i//$j".say }
camelia 0 1//1 2
2 3//3 4
atweedie according to the (12-year old) perl6advent.wordpress.com/2009/12/...nd-profit/ the latter should be identical to the first? 12:51
frost m: my @a = 1..4; for (^Inf Z @a).flat -> $i, $j { "$i//$j".say } 12:54
camelia 0//1
frost my @a = 1..4; for ^Inf Z @a -> ($i, $j) { "$i//$j".say } 13:01
evalable6 0//1
atweedie ty! I realize I encountered .flat in the comments of one of the earlier sections. It was mentioned in the context of the Great List Refactor
ddg turns up some results on the GLR, so I'll do some reading...
frost the 2009 version is too old
atweedie oh that's nicer! 13:02
frost somethings must have be changed, but i don't know, too
the channel is so quiet today 13:03
Geth ecosystem: a4672f8e06 | (Elizabeth Mattijsen)++ | META.list
Remove Zodiac::Chinese

It appears to have vanished from existence
atweedie good to know that's an anomaly
frost will a new version be released this month? 13:10
13:16 frost left
lizmat .tell frost most likely not 13:26
tellable6 lizmat, I'll pass your message to frost
14:02 atweedie left 14:27 sm1 left 14:43 Sgeo joined 14:51 atweedie joined 14:52 atweedie left, atweedie joined 15:06 sm1 joined 15:21 Colt left 15:27 andrzejku left 15:32 patrickb joined
patrickb o/ 15:32
codesections: Did you notice: github.com/rakudo/rakudo/issues/46...-960553458 15:33
15:43 Kaiepi left 15:59 Altai-man left 16:20 andrzejku joined 16:33 andrzejku left 16:51 patrickb left, patrickb joined 16:57 patrickb left 16:58 patrickb joined 16:59 sm1 left 17:03 patrickb left 17:04 patrickb joined 17:07 patrickb left 17:08 patrickb joined 17:09 patrickb left 17:10 patrickb joined 17:14 patrickb left, patrickb joined 17:15 patrickb left 17:23 andrzejku joined 17:24 rypervenche left 17:29 atweedie left, Guest4 joined
Guest4 Bonjour! Is it possible to use the zip operator with an inline function? Something like: 17:35
m: say <1 2 3> Z[&{$^a + $^b}] <4 4 4>
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in bracketed infix; couldn't find final ']' (corresponding starter was at line 1)
at <tmp>:1
------> 3say <1 2 3> Z[&7⏏5{$^a + $^b}] <4 4 4>
17:36 dakkar left
lizmat m: say <1 2 3> Z[&(* + *)] <4 4 4> # Guest4 17:42
camelia (5 6 7)
lizmat m: say <1 2 3> Z[&({ $^a + $^b })] <4 4 4> # Guest4 17:43
camelia (5 6 7)
17:46 sm1 joined
Guest4 thank you lizmat! 17:47
MasterDuke github.com/rakudo/rakudo/issues/4423 is related 17:48
Guest4 and thank you for the caveat MasterDuke! 17:53
MasterDuke np
17:58 rypervenche joined 18:02 andrzejku left, reportable6 left 18:03 reportable6 joined
Guest4 okay, one more... why does this produce a Nil either side? 18:04
m: 'foo'.split("").map(*.ord)
camelia ( no output )
lizmat because that's what split dies 18:05
MasterDuke m: 'foo'.split("", :skip-empty).map(*.ord).say
camelia (102 111 111)
lizmat you probably want .comb
MasterDuke m: 'foo'.comb.map(*.ord).say
camelia (102 111 111)
Guest4 Is the intent like C-strings to make a falsy delimiter for loop/construct termination on iteration over? 18:06
lizmat has trouble parsing your question
Guest4 Where can I look up why the sequence generated by split creates Nil on either end? 18:07
There is no mention of Nil at docs.raku.org/routine/split 18:08
MasterDuke "If DELIMITER is the empty string, it effectively returns all characters of the string separately (plus an empty string at the begin and at the end)."
Guest4 Thanks, but why?
[Coke] It's not a Nil, it's an empty string, IIRC. 18:09
m: dd 'this'.split('');
camelia ("", "t", "h", "i", "s", "").Seq
[Coke] :skip-empty is also mentioned in the first few paragraphs. 18:10
MasterDuke i don't actually know why that behavior was decided upon though
Guest4 Okay, thanks.
[Coke] Very old, and there's a note about it in the p5-raku page, IIRC 18:11
lizmat with "" you're splitting on the boundary between characters. The first character also have a boundary with the conceptual begin / end of string 18:12
*and last
but there's nothing inbetween 18:13
Guest4 Okay. That makes sense.
lizmat it can be handy on some situations :-)
Altreus Raku strikes me as the sort of language to have tokens that mean start of string and end of string
lizmat ^ and $
Altreus I mean values, identifiers
MasterDuke github.com/Raku/roast/commit/256d6...8d3b5696de is actually a bit more recent than i'd expected 18:14
18:25 sm1 left 18:26 Guest4 left 18:29 squashable6 left 18:30 squashable6 joined 18:37 p6steve joined 19:03 andrzejku joined 19:14 p6steve left 19:16 abraxxa left, abraxxa joined 19:20 p6steve joined, abraxxa left, abraxxa joined
lizmat PSA: the Rakudo Weekly News will be published tomorrow, 23 November 2021 19:20
19:20 abraxxa left
p6steve hi all - can anyone tell me the docker / ubuntu recipe (ie. FROM xxx, RUN yyy) for a fast yet complete rakudo-star install? 19:27
(ok to point me to somewhere in GitHub that is a good jump off point)
El_Che p6steve: I just add the repo to a upstream distro image: github.com/nxadm/rakudo-pkg#os-repositories 19:30
(mind you: rakudo+zef, not rakudo-star)
p6steve El_Che yes ... perfect ... thanks !! 19:37
(other answers also of interest...) 19:38
El_Che p6steve: one of the use cases was containers because I throught star was not a match (you want small images) 19:39
p6steve: let me look for the docker image of jj
p6steve I have the jj images - no need
El_Che github.com/JJ/alpine-raku 19:40
p6steve they are cool for test ... but I want a (small) container image build setup
(actually raku + zen is better for what I need) 19:41
El_Che I am interested to hear if there are other options 19:44
19:52 goblin left, gfldex left, goblin joined, gfldex joined 19:53 p6steve left 20:07 p6steve joined 20:13 colemanx joined 20:33 andrzejku left 20:39 p6steve left
SmokeMachine Do you people something like this (github.com/FCO/Test-Describe/blob/....rakutest) would make sense on the ecosystem? 20:49
lizmat it feels it lacks in the documentation dept :-) 20:56
lizmat goes afk&
21:06 Kaiepi joined
gfldex m: say 'ⅯⅯⅩⅩⅠ'.Int; 21:51
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5ⅯⅯⅩⅩⅠ' (indicated by ⏏)
in block <unit> at <tmp> line 1
Nemokosch what the...
gfldex m: say 'Ⅳ'.Int; 21:52
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5Ⅳ' (indicated by ⏏)
in block <unit> at <tmp> line 1
Nemokosch I mean... should this even work? 😄
gfldex How else am I supposed to count those fine folk? i.pinimg.com/originals/9e/7c/8e/9e...c7c0f6.jpg 21:54
Nemokosch the hard 👏 way 👏
gfldex Given that years are still frequently¹ written in roman numerals, there is good reason to support that. 21:55
¹) by film studios to hide the fact of reruns 21:56
Nemokosch www.rosettacode.org/wiki/Roman_num...ecode#Raku
gfldex m: say Date.new(ⅯⅩⅩⅠ); 21:57
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3say Date.new(Ⅿ7⏏5ⅩⅩⅠ);
expecting any of:
22:06 evalable6 left, linkable6 left 22:07 linkable6 joined
tbrowder i think there is a module for roman numerals...maybe perl if not raku 22:28
Math::Roman 22:29
raku 22:30
gfldex That module doesn't talk unicode. 22:38
22:42 sm1 joined
Nemokosch even better then, one can add a pull request 😛 22:52
22:53 lizmat_ joined, RakuIRCLogger left, TempIRCLogger__ joined 22:54 Geth__ joined, TempIRCLogger left, Geth left, Geth__ left, Geth joined, lizmat left 22:55 lizmat_ left, lizmat joined 23:07 evalable6 joined 23:20 squashable6 left 23:27 Guest495 joined 23:43 sm1 left
tbrowder maybe time for a PR 23:45