🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:01 Xliff left 00:07 fridim left 00:15 Doc_Holliwood left 00:24 fridim joined 00:43 skyl4rk left, skyl4rk joined 00:54 thundergnat left 00:59 BenGoldberg joined 01:08 molaf left 01:20 molaf joined 01:28 mowcat left 01:43 sjaveed left, sjaveed joined 01:49 sjaveed left 01:55 sjaveed joined 02:17 cpan-raku left
Geth doc: d21a27d71d | Coke++ | writing-docs/SQUASHATHONS.md
perl6 -> raku
02:17
02:19 cpan-raku joined, cpan-raku left, cpan-raku joined
[Coke] haven't had one of those in a while, have we? 02:32
02:51 ex_nihilo joined 03:29 guifa joined
guifa lizmat: your fix for X::Method::NotFound is making me have to think extra hard for Intl::X — but I think I figured something out to work mostly along the same lines 03:33
03:41 defaultxr left 03:46 abraxxa left 03:47 abraxxa joined 03:48 defaultxr joined 03:50 defaultxr left 03:51 BenGoldberg left 03:52 defaultxr joined
AlexDaniel [Coke]: yeah. In fact, the whole renaming process went surprisingly easy, I thought it'd be much harder 03:55
like, much much harder :)
03:56 approaching236 left
guifa BTW can anyone forward me one of the e-mails on the ICU perl6-users thread? I want to respond and just subscribed to the list but … no way to respond to previous messages that I can see 04:02
04:07 pepl joined 04:16 ex_nihilo left 04:17 ex_nihilo joined 04:20 Black_Ribbon left 04:48 abraxxa left 04:50 abraxxa joined 04:59 ex_nihilo left, BenGoldberg joined 05:02 stoned75 joined 05:17 jmerelo joined 05:19 aluaces joined 05:20 rindolf joined, molaf left 05:27 pepl left, stoned75 left 05:28 bocaneri joined 05:30 ufobat_ joined 05:31 xelxebar left, xelxebar joined 05:33 BenGoldberg left 05:36 bocaneri left 05:37 bocaneri joined 06:06 parabolize left 06:09 skids left 06:26 zacts joined 06:35 Doc_Holliwood joined 06:52 pepl joined 06:53 aluaces left 06:56 stoned75 joined
SmokeMachine m: my $a = %(bla => %(a => %(x => 1), b => %(x => 2), c => %(x => 3))); say $a{"bla"; *; "x"}:v # should this work? Is this a bug? 06:57
camelia Unexpected named argument 'v' passed
in block <unit> at <tmp> line 1
SmokeMachine Is this a bug? 06:58
07:22 zacts left
elcaro bisectable6: say %(:a(:1b)){'a'; 'b'}:v; 07:27
bisectable6 elcaro, Will bisect the whole range automagically because no endpoints were provided, hang tight
elcaro, Output on all releases: gist.github.com/1b0acce894e6f3b613...366dbaec0e
elcaro, Bisecting by output (old=2016.08.1 new=2016.09) because on both starting points the exit code is 1
elcaro looks like it doesn't like :v as soon as you try to use a semi-list
bisectable6 elcaro, bisect log: gist.github.com/c37918af17727854e1...fe342e72df
elcaro, Output on all releases and bisected commits: gist.github.com/ad502bfa78af0b891d...47def87560
07:27 dakkar joined
elcaro doesn't looks like it's ever worked 07:28
gfldex semilists are not well tested
07:32 xelxebar left 07:33 xelxebar joined 07:42 leont joined
AlexDaniel huh that's a very weird output 07:51
bisectable6: old=2016.08.1 new=2016.09 say %(:a(:1b)){'a'; 'b'}:v;
bisectable6 AlexDaniel, Bisecting by output (old=2016.08.1 new=2016.09) because on both starting points the exit code is 1
AlexDaniel, bisect log: gist.github.com/bab5f56b5f678b2c0d...a21504c443 07:52
AlexDaniel, There are 6 candidates for the first “new” revision. See the log for more details
AlexDaniel ah, that's why
thanks bisectable6, but you could've said something instead of just silently moving on… 07:53
bisectable6 AlexDaniel, It's my pleasure!
tobs That failed the Turing test for me :D 07:57
elcaro maybe bisectable is just being snarky 07:58
08:01 domidumont joined 08:10 Sgeo left
mark[m]1 its bisectables pleasure to just silently move on, we all have our pleasures 😉 08:12
* its bisectable's pleasure to just silently move on, we all have our pleasures 😉
08:25 BenGoldberg joined, natrys joined 08:33 aluaces joined 08:46 domidumont left 08:53 aluaces left 08:59 BenGoldberg left
Geth ¦ problem-solving: JJ assigned to jnthn Issue META6 specification only exists "de facto" github.com/Raku/problem-solving/issues/236 09:03
09:03 jmerelo left 09:26 zacts joined 09:29 Doc_Holliwood left 09:36 domidumont joined 09:38 zacts left, dustinm` joined
lizmat clickbaits rakudoweekly.blog/2020/09/28/2020-...-releaser/ 09:47
10:20 Xliff joined
Xliff timotimo: You around? 10:21
10:29 aluaces joined 10:58 aluaces left 11:19 MasterDuke left 11:39 MasterDuke joined 11:50 BenGoldberg joined 12:01 aluaces joined, rindolf left, rindolf joined
Geth doc: c349332854 | (Simon Proctor)++ | doc/Language/objects.pod6
Updating working on the TWEAK documentation based on confusion here : stackoverflow.com/questions/641036...ld-routine
12:05
doc: 7ddd0ddc67 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | doc/Language/objects.pod6
Merge pull request #3656 from Scimon/master

Updating working on the TWEAK documentation based on confusion here :…
linkable6 Link: docs.raku.org/language/objects
12:15 stoned75 left 12:17 stoned75 joined 12:21 MasterDuke left 12:24 BenGoldberg left 12:29 ufobat__ joined 12:32 ufobat_ left 12:38 pamplemousse__ joined 12:41 dakkar left 12:45 dakkar joined 12:48 sena_kun joined
[ptc] just wondering: is it possible to do an element-wise division (or multiplication for that matter) on an array? Something like Matlab's `./` operator? 12:49
I haven't been able to find anything in the docs, so I thought I'd ask here :-) 12:50
m: ($_ / 10 for 1..11) 12:54
camelia WARNINGS for <tmp>:
Useless use of "/" in expression "$_ / 10" in sink context (line 1)
[ptc] m: (1..11) >>/>> 10 12:57
camelia Potential difficulties:
Useless use of >>/>> in sink context
at <tmp>:1
------> 3(1..11) 7⏏5>>/>> 10
12:58
[ptc] menno
m: say((1..11) >>/>> 10)
camelia (0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1)
[ptc] ok, that seemed to work. Is there a better/more elegant way to do the same thing? 12:59
i.e. could one do `(1..11)./10` ?
dakkar m: say (1..11).map:*/10 13:00
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say (1..11).map:7⏏5*/10
expecting any of:
colon pair
dakkar uh…
m: say (1..11).map: */10
camelia (0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1)
dakkar (one day I'll remember that whitespace is sometimes significant in Raku…) 13:01
guifa m: say 1..11 X/ 10
camelia (0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1)
dakkar oh, that's clever but I'd nix it in a code review 13:02
too risky having a list-that's-accidentally-1-long
guifa m: say (1,) X/ 10 13:03
camelia (0.1)
guifa it works okay with one element lists
dakkar [ptc]: how does Matlab's ./ operator behave when it's got arrays on both sides?
[ptc] dakkar: iirc it divides each element by the respective element in the other array. Hence it only works if the arrays are the same length. 13:04
dakkar guifa: sorry, I meant that `10` is a 1-element list, and someone is going to make it `(1..10) X/ (10,11)
[ptc] it's been a while since I've done matlab though
guifa: ooh, that's a nice solution! 13:05
guifa dakkar: ah. yeah, that would then give different results
dakkar for arrays of the same length:
m: say (1..10) Z/ (11..20)
camelia (0.090909 0.166667 0.230769 0.285714 0.333333 0.375 0.411765 0.444444 0.473684 0.5)
[ptc] dakkar: wow! Thanks! I was only intersted in the division by scalar case :-) I like the generalisation too! 13:07
dakkar explanation: X is the cross-product meta-op, Z is the "zip" meta op
say <a b> X~ <c d>
evalable6 (ac ad bc bd)
dakkar m:say <a b> Z~ <c d>
evalable6 (ac bd)
13:07 squashable6 left 13:08 squashable6 joined
[ptc] cool, many thanks :-) 13:08
guifa if it’s something you’re going to be using a lot, and you want really fine control (throw an error if a list of nonmatching sizes are used, etc), you could also define your own operator 13:09
13:10 MasterDuke joined
guifa m: sub infix:<./> (@a, @b where @a == @b || die "Each side must have the same number of elements" ) { @a Z/ @b }; say (2,4,6) ./ (1,2,3); say (2,4,6) ./ (1,2) 13:10
camelia (2 2 2)
Each side must have the same number of elements
in sub infix:<./> at <tmp> line 1
in block <unit> at <tmp> line 1
guifa you could make it multi 13:11
so that you can handle Positional ./ Positional, and Positional ./ Numeric according to how matlab does 13:12
[ptc] yeah, I'd thought of that. Just wondered if there were something directly in the language and I'd just not spotted it in the docs
13:18 frot-lab left 13:30 rindolf left
[Coke] AlexDaniel: heh. I meant "squashathons", not "renaming commits". :) :) 13:45
13:45 rindolf joined 14:03 Sgeo joined 14:10 sjaveed left 14:12 sjaveed joined, sjaveed left, sjaveed joined 14:18 sjaveed left 14:23 skids joined 14:27 aborazmeh left 14:35 xinming_ left 14:37 xinming_ joined 14:40 aluaces left 14:44 sjaveed joined 14:49 parabolize joined 14:56 Altai-man joined 14:58 sena_kun left 15:02 sjaveed left 15:03 sjaveed joined 15:15 BenGoldberg joined 15:24 pepl left
[Coke] ... google for api info on how to determine monitor size. top hit "use a rule, measure the diagonal" 15:33
15:34 xinming_ left, xinming_ joined 15:39 abraxxa left
guifa [Coke]: I didn’t know the Google already was learning dad jokes 15:47
15:49 Doc_Holliwood joined, BenGoldberg left 16:01 abraxxa joined, abraxxa1 joined 16:05 abraxxa left 16:06 abraxxa1 left, zacts joined 16:07 abraxxa joined 16:09 xinming_ left 16:10 xinming_ joined 16:11 mowcat joined 16:24 elcaro left 16:28 xinming_ left 16:29 xinming_ joined 16:31 elcaro joined 16:36 elcaro left 16:37 elcaro joined, domidumont left 16:38 abraxxa left 16:40 dakkar left 16:44 elcaro left, elcaro joined 16:47 xinming_ left 16:49 xinming_ joined 17:00 approaching236 joined 17:03 jmerelo joined 17:06 xinming_ left 17:07 xinming_ joined 17:08 aborazmeh joined, aborazmeh left, aborazmeh joined 17:27 approaching236 left 17:28 toddr left, pamplemousse__ left 17:30 elcaro left 17:31 tejr left 17:32 tejr joined 17:35 tejr left 17:36 timeless left, cooper left 17:37 dylanwh left, PotatoGim left, aluaces joined, skaji_ left, tejr joined, elcaro joined, Grinnz left, peteretep left 17:38 BuildTheRobots left, ChoppedBacon left, kawaii left, spycrab0 left, caasih left, mithaldu_ left, mrsolo left, rjeli left, zostay left 17:39 tbrowder left, dog_star left, pnu__ left 17:46 skaji_ joined 17:47 peteretep joined 17:48 mrsolo joined, spycrab0 joined 17:50 zostay joined, Grinnz joined 17:53 mithaldu_ joined 17:54 dylanwh joined, kawaii joined, pnu__ joined 17:55 cooper joined, BuildTheRobots joined, PotatoGim joined 17:57 ChoppedBacon joined 17:58 caasih joined, tbrowder joined 17:59 timeless joined 18:00 rjeli joined, dog_star joined
AlexDaniel [Coke]: ah :D 18:04
18:04 stoned75 left 18:05 pamplemousse__ joined 18:08 xinming_ left 18:09 xinming_ joined 18:23 approaching236 joined 18:27 bocaneri left 18:31 pamplemousse__ left 18:32 ufobat__ left
Geth doc: 35ea8e21c8 | Coke++ | 2 files
perl6 -> raku
18:36
18:38 aborazmeh left 18:40 Doc_Holliwood left 18:41 BenGoldberg joined 18:46 cpan-raku left 18:48 cpan-raku joined, cpan-raku left, cpan-raku joined 18:56 sena_kun joined 18:58 Altai-man left 19:06 mithaldu_ left, zacts left, zostay_ joined, elcaro left, kawaii left 19:07 zostay left, zostay_ is now known as zostay, kawaii joined, mithaldu_ joined 19:08 jmac joined 19:15 BenGoldberg left
[Coke] AlexDaniel: ... but now that you mention it, found another one. :) 19:19
19:23 elcaro joined 19:31 abraxxa joined 19:33 xinming_ left, xinming_ joined 19:35 abraxxa left 19:36 mowotter joined 19:37 jmerelo left 19:38 mowcat left 19:39 approaching236 left 19:40 rindolf left 19:45 molaf joined 19:49 abraxxa joined 19:54 Doc_Holliwood joined 19:57 Xliff left 20:08 zacts joined 20:16 mithaldu_ left 20:28 zacts left, zacts joined 20:34 Kaiepi left 20:38 xinming_ left, natrys left, mithaldu_ joined 20:39 xinming_ joined 20:46 approaching236 joined 20:48 xinming_ left, xinming_ joined
[Coke] I remember asking this years ago but cannot find the ticket: do we have a way for raku to tell us what version of unicode we support? 20:55
also, how long has there been tab completion in the REPL? nifty 20:56
m: 3.fmt("0.3d") # bet we could improve the error message here by asking if they forgot a % 20:58
camelia Your printf-style directives specify 0 arguments, but 1 argument was supplied
in block <unit> at <tmp> line 1
sena_kun [Coke], I think lizmat has worked on printf, so can ping and ask. 20:59
[Coke] (unicode) reminded by the thread on perl6-users
@lizmat: ^^ fmt question 21:00
MasterDuke i thought unicode version might be in -V output, but i don't see it
[Coke] Yah, might be nice to have it in -V output and also in a $* var. 21:04
El_Che I thought tab completion was handled by external libs and progs? 21:06
21:08 sena_kun left
[Coke] Sure, it's probably readline or linenoise, but I didn't realize it was there 21:10
21:13 seanrobert joined
guifa [Coke]: I actually believe most of the unicode stuff is in MoarVM rather than in Rakudo 21:31
[Coke] ... Sure, but I only ever run moarvm through rakudo. :) 21:33
guifa Fair :-) I only started using the JS backend recently 21:35
21:36 seanrobert left
guifa I mention it only because while it’d be sweet to get the version number of Unicode, it might just not be available 21:36
21:37 zacts left 21:38 zacts joined 21:43 zacts left 21:44 zacts joined
El_Che 12.1 21:45
www.moarvm.org/releases.html
also here: github.com/MoarVM/MoarVM#feature-overview 21:46
and here: docs.raku.org/language/unicode
13 is from march this year 21:48
rather new
21:49 MasterDuke left 21:52 kawaii left, dog_star left, jmac left, Grinnz left, tbrowder left, timeless left, caasih left, zostay left, ChoppedBacon left 21:53 mrsolo left, mithaldu_ left, dog_star joined 21:54 rjeli left, spycrab0 left, peteretep left, skaji_ left 21:55 zostay joined, caasih joined, Grinnz joined, rjeli joined, tbrowder joined, ChoppedBacon joined 21:56 timeless joined, jmac joined, mithaldu_ joined, mrsolo joined, spycrab0 joined 21:57 peteretep joined, skaji_ joined 22:00 MasterDuke joined 22:05 aborazmeh joined, aborazmeh left, aborazmeh joined, aluaces left 22:07 BenGoldberg joined, kawaii joined 22:08 guifa` joined
guifa` El_Che: there's normally just one release a year, and the last one came out less than half a year ago 22:11
CLDR is worse, two releases a year and less stability between releases
22:29 xinming_ left 22:30 approaching236 left 22:31 xinming_ joined 22:32 zacts left 22:37 xinming_ left 22:39 xinming_ joined 22:40 BenGoldberg left 22:46 xinming_ left, xinming_ joined
lizmat [Coke]: re: 3.fmt("0.3d") I guess we could warn at compile time that no actual format was specified 22:46
and perhaps add a % at the end and see if that is a valid format 22:47
in the error reporting
22:48 aborazmeh left
lizmat my work on sprintf now lives in the RakuAST branch, and is "live" there as it were 22:48
PR's welcome :-)
22:53 MasterDuke left 23:08 xinming_ left 23:09 xinming_ joined 23:24 zacts joined 23:26 Xliff joined 23:30 wbn left, wbn joined 23:35 xinming_ left, xinming_ joined 23:36 BenGoldberg joined 23:41 dmc00 joined