🦋 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.
AlexDaniel oh. 00:01
wrong channel 00:02
melezhik AlexDaniel: there is link to report, the very first column 01:02
tellable6 2020-04-14T23:57:13Z #raku <AlexDaniel> melezhik2: hmm there's no link to the output, can you make `Result` column clickable too?
AlexDaniel oh, there is 01:03
how did I miss that :S
melezhik NP. based on your comment I will make a result column clickable 01:05
and a column with module name will make a link to a module source code (raku.modules/github/gitlab)
AlexDaniel yeah, that's what I expected, I think 01:07
melezhik yeah 01:10
AlexDaniel: done 01:12
lizmat just realized that this is valid code 09:45
m: my $_-_-_-_-_-_ = "braille"; say $_-_-_-_-_-_
camelia braille
sena_kun AlexDaniel, I've patched github::pastebin and will see if that fixes blin image. :) 09:47
chloekek So according to S22 you can put phone numbers in META6.json. 10:17
Yeah I’m not going to display those, privacy legislation nightmare. 10:18
cpan-raku New module released to CPAN! Gnome::Gdk3 (0.15.5) by 03MARTIMM 10:52
cpan-raku New module released to CPAN! Gnome::N (0.17.4) by 03MARTIMM 13:09
cpan-raku New module released to CPAN! Gnome::Gio (0.5.1.1) by 03MARTIMM 16:28
chloekek p6: sub f { UNDO die; }; f 16:46
camelia Died
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
chloekek Why does this die?
jnthn 'cus the default return value is Nil, which is considered failure 16:48
chloekek :/
jnthn (I believe it goes on .defined)
That's the seamntics of KEEP/UNDO; they look at the return value, and UNDO additionally fires if there's an exceptional exit too 16:49
chloekek Well that explains why all my transactions got rolled back.
jnthn If it didn't, it'd be useless with `fail`
chloekek I’ll file a doc issue. 16:50
> it'd be useless with `fail` -- or make fail call UNDO 16:58
Directly, rather than through an awkward definition of "unsuccessful" 16:59
jnthn That assumes a bunch of coupling between things that doesn't exist; `fail` is really just `return` plus wrapping in a failure 17:01
El_Che Does anyone know why test_script in appveyor (Windows) does not return output when testing? ci.appveyor.com/project/nxadm/supe...201691#L70 17:09
I am trying to write down good windows testing instructions, but my own module is failing :) 17:10
so far I managed to move the windows setup from building rakudo like all the examples I found to using a precompiled windows rakudo. Way faster
El_Che my tests captures std out and std err and check the values. It works fine on travis (Linux) 17:12
lucs Given 「my $x = "foo \\s+ bar"」, how do I use it as a regex? 「… ~~ / $x /」 fails, of course. 17:16
m: my $x = "foo \\s+ bar"; so 'foo bar' ~~ / $x /; 17:17
camelia WARNINGS for <tmp>:
Useless use of "so " in expression "so 'foo bar' ~~" in sink context (line 1)
lucs m: my $x = "foo \\s+ bar"; print so 'foo bar' ~~ / $x /;
camelia False
El_Che m: my $x = rx/foo \s+ bar/; say "foo bar" ~~ $x 17:18
camelia 「foo bar」
El_Che m: my $x = rx/foo \s+ bar/; say "foobar" ~~ $x
camelia Nil 17:19
jnthn m: my $x = "foo \\s+ bar"; print so 'foo bar' ~~ / <$x> /;
camelia True
lucs Heh, I thought I had tried that :/ 17:20
Thanks jnthn.
El_Che: Also cool, thanks.
El_Che lucs: I am pretty fond of rx 17:22
lucs Oh, what I had tried had the literal string in the regex: ... / <"foo \\s+ bar"> /
El_Che the comparison looks like a smart match
lucs Can something like that, without an extra variable, work?
El_Che something we learned to fear in Perl is handy and styleful in raku 17:23
:)
lucs raku++ eh :)
jnthn: Great RakuAST talk by the way. Mostly over my head, but your calm and dedication are very inspiring and confidence inducing. 17:25
lucs Too bad I won't be around for the next 95 years or so... 17:26
El_Che lucs: your code may be
lucs Um, that's kind of you, but probably not :) 17:27
lucs m: my $s = 'infinite'; $s .= trans('fi' => 'fi'); print $s # :-( 18:21
camelia infnite
lucs Bug or mistake on my part? 18:22
[Coke] lucs: m: my $s = 'infinite'; say $s.trans('fi' => 'fi'); 18:24
m: my $s = 'infinite'; say $s.trans('fi' => 'fi');
camelia infnite
[Coke] (just testing to see if was getting returned there.) 18:26
lucs m: my $s = 'infinite'; $s ~~ s/'fi'/fi/; print $s # I guess I'll use this. 18:27
camelia infinite
[Coke] it's not about the ligature, though: 18:29
m: my $s = "infinite"; say $s.trans("fi"=>"EEEEEEEK");
camelia EnEEnEte
lucs Yow
[Coke] m: my $s = "infinite"; say $s.subst("fi"=>"EEEEEEEK");
camelia Cannot resolve caller match(Str:D: Pair:D, :g(Any)); none of these signatures match:
(Str: Cool:D $pattern, |c)
(Str: Regex:D $pattern, :continue(:$c)!, *%_)
(Str: Regex:D $pattern, :pos(:$p)!, *%_)
(Str: Regex:D $pattern, :glo…
[Coke] m: my $s = "infinite"; say $s.subst("fi","EEEEEEEK"); 18:30
camelia inEEEEEEEKnite
[Coke] ^^ you want .subst, not .trans
[Coke] m: my $s = 'infinite'; say $s.subst('fi','fi'); 18:30
camelia infinite
lucs Turns out I had a bunch to do, so trans() would have been neater.
But that'll do, yep. 18:31
[Coke] I think the doc could be clearer about the length of the source and replacements for .trans 18:32
it does say "characters", but that's super clear.
lucs Oh, I see. Mistake on my part then :) 18:33
Thanks!
[Coke] er, that's *NOT* super clear. 18:34
sorry. :)
lucs Yes, I caught that :)
[Coke] whew. 18:35
lucs :) 18:35
Given something like that, I suppose subst() will be quicker than a regex s/// ? 18:36
(I don't actually really care about quicker here, just curious.) 18:37
[Coke] I would expect subst to be slightly faster, but don't have numbers to back it up 18:41
m: my $s = "infinite"; $s.subst('nit','tin') for ^1000 ; say now - INIT now 18:42
camelia 0.0085513
[Coke] m: my $s = "infinite"; $s.subst('nit','tin') for ^100000 ; say now - INIT now
camelia 0.2246079
[Coke] m: my $s = "infinite"; $s ~~ s/'nit'/'tin'/ for ^100000 ; say now - INIT now
camelia 0.52795
lucs Yep 18:43
lizmat weekly: www.papercall.io/cfps/3181/submissions/new 18:54
notable6 lizmat, Noted! (weekly)
Geth_ doc: kbucheli++ created pull request #3341:
how to flatten itemized sublists on an Iterable
21:47
Nileee hi! 22:52
sacomo hello 23:12
timotimo hi sacomo 23:40