🦋 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.
elcaro m: use v6.e.PREVIEW; say 0 but True; # Bug in 6.e ? 00:20
camelia Don't know setting RESTRICTED
at gen/moar/ModuleLoader.nqp:249 (/home/camelia/rakudo-m-inst-2/share/perl6/lib/Perl6/ModuleLoader.moarvm:previous_setting_name)
from gen/moar/ModuleLoader.nqp:254 (/home/camelia/rakudo-m-inst-2/share/perl6/lib/…
elcaro m: say 0 but True 00:21
camelia 0
elcaro The above fails with v6.e.PREVIEW 00:22
err: Type object Int+{<anon|2>} of v6.c is not compatible with <anon|2> of v6.e
00:29 vike joined 00:34 xinming_ left 00:35 xinming_ joined
lizmat elcaro: confirmed, could you please make an issue ? 00:35
afk&
00:39 sftp left 00:40 sftp joined 00:51 xinming_ left, xinming_ joined 00:54 hobbs left, hobbs joined, hobbs left, hobbs joined 01:40 melezhik joined
melezhik Hi! I've made 2020.10 rakudo version available to test on rakudist.raku.org , if people want to test their distributions against the latest rakudo version 01:42
tellable6 2020-10-16T17:33:45Z #raku-dev <jmerelo> melezhik thanks!
01:45 sftp left
melezhik .tell jmerelo: hi @jmerelo! tell me how it goes with rakudist and if you need any help, thanks 01:45
tellable6 melezhik, I'll pass your message to jmerelo
01:51 xinming_ left, xinming_ joined 02:02 melezhik left 02:09 MasterDuke left 02:19 molaf left 02:24 xinming_ left, xinming_ joined, BenGoldberg left, BenGoldberg joined 02:30 sftp joined 02:32 molaf joined 02:40 lucasb left 03:02 BenGoldberg left, Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 03:08 Doc_Holliwood left 03:15 Chi1thangoo left 03:18 BenGoldberg left, Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 03:23 xinming_ left, xinming_ joined 03:41 xinming_ left, xinming_ joined 03:52 vgrato_ left 04:18 xinming_ left 04:19 xinming_ joined 04:24 Doc_Holliwood joined 04:26 xinming_ left, xinming_ joined 04:56 xinming_ left 04:57 xinming_ joined 05:02 xinming_ left 05:04 xinming_ joined 05:21 parabolize left 05:24 Doc_Holliwood left 05:25 bocaneri joined 05:33 sno left 05:58 k-man__ is now known as k-man 06:01 xinming joined 06:02 xinming_ left 06:08 moony left, BenGoldberg left 06:33 skids left 06:53 Altai-man joined 06:54 wamba joined 07:09 Doc_Holliwood joined 07:19 sno joined 07:25 ufobat joined 07:26 cgfbee left 07:30 Sgeo left, abraxxa joined 07:33 abraxxa left 07:35 abraxxa joined 07:36 abraxxa left 07:37 MasterDuke joined, abraxxa joined 07:39 abraxxa left 07:40 abraxxa joined 07:43 moony joined, abraxxa left 07:50 abraxxa joined 07:53 abraxxa left 07:55 abraxxa joined 08:00 abraxxa left 08:01 abraxxa joined, sno left 08:08 sena_kun joined 08:10 Altai-man left 08:12 rindolf joined 08:13 reach_satori_ joined 08:16 reach_satori left
Xliff \o 08:24
Is there a shortcut for .reverse.skip(1).reverse? 08:25
08:29 abraxxa left 08:38 domidumont joined
rindolf Xliff: .skip(*-1)? just guessing 08:43
08:53 pecastro joined 08:59 BenGoldberg joined
xinming m: my %h = :a(Nil); %h.raku.say; 09:08
camelia {:a(Any)}
xinming I just now found, that in this case, Nil will be converted to Any, Is it possible that we have a Nil value for the Hash value?
09:11 frost-lab joined 09:20 abraxxa joined 09:21 abraxxa left, abraxxa joined 09:33 BenGoldberg left
MasterDuke xinming: you need to set the default to Nil 09:37
m: my %h is default(Nil) = :a(Nil); %h.raku.say;
camelia {:a(Nil)}
09:52 sno joined
MasterDuke Xliff: you want `.head(*-1)` 10:00
Xliff MasterDuke++: Thanks. That's what I ended up with. :) 10:01
10:36 pecastro left 11:06 Black_Ribbon left
donaldh Hi, the macOS homebrew formula for rakudo-star is updated to 2020.10. Thanks to lizmat++ for fixing the ENV issue – patch applied in homebrew formula for this release. 11:12
11:15 Doc_Holliwould joined 11:19 Doc_Holliwood left
Xliff donaldh++ # Thanks! 11:19
11:44 k-man_ joined 11:45 k-man left 11:51 Doc_Holliwould left 11:56 Doc_Holliwould joined 12:02 dmc00 joined 12:07 Altai-man joined 12:09 k-man__ joined 12:10 sena_kun left, k-man_ left 12:21 pecastro joined 12:24 BenGoldberg joined
lizmat clickbaits rakudoweekly.blog/2020/10/26/2020-...-and-star/ 12:33
12:39 pecastro left 12:50 frost-lab left 12:55 eiro left 12:56 Doc_Holliwould left 12:58 BenGoldberg left
cpan-raku New module released to CPAN! Term::TablePrint (1.5.2) by 03KUERBIS 13:00
New module released to CPAN! Term::Choose (1.6.8) by 03KUERBIS
13:03 abraxxa left 13:08 abraxxa joined
[Coke] donaldh++ lizmat++ 13:09
anyone have a "autohotkey" equivalent for mac they use? just want some simple text substitutions to always be active. 13:16
13:17 Altai-man left
[Coke] huh. I see I have some old ones in settings/keyboard/text defined but they aren't working in iterm. 13:17
13:17 Altai-man joined 14:11 Chi1thangoo joined 14:44 parabolize joined 15:36 skids joined 15:37 abraxxa left 15:43 abraxxa joined 15:49 BenGoldberg joined 16:04 pecastro joined 16:05 Chi1thangoo left, wamba left 16:08 sena_kun joined 16:10 Altai-man left 16:12 Sgeo joined 16:19 abraxxa left 16:20 abraxxa joined 16:24 BenGoldberg left 16:28 pecastro left 16:34 abraxxa left 16:50 abraxxa joined
perlmaros hi, i noticed some unexpected DateTime behaviour for processes running during DST switches. Allthough this behaviour is documented under docs.raku.org/language/variables#$*TZ i was wondering how to avoid such errors? So how do i make sure that DateTime.now always returns the correct local timestamp? 16:50
cpan-raku New module released to CPAN! Term::Choose (1.6.9) by 03KUERBIS 17:04
17:09 vgrato_ joined 17:20 domidumont left 17:25 Skarsnik joined
Skarsnik Hello, I want to run 10 times the same block of code in parralel that return etheir true or false, but I want to break all of them if one return false. I tried starting a Promise for each but I am not sure how to check for one finishing before the other with a false result 17:31
17:32 jcallen_ is now known as jcallen
[Coke] You could use "anyof" to await for the first to come back, break everything if failed, loop calling anyof with the remaining... 17:33
Skarsnik Oh right
lizmat I was more thinking along a .then attached to each promise
17:33 pecastro joined
lizmat setting a lexically visible atomic int 17:33
[Coke] sure, have a common routine in the then that triggers whenever any of them return false. 17:34
s/return false/fail/
lizmat and make sure the other threads are checking that atomic int as well and have them stop when necessary
[Coke] s/fail/are broken/ :)
yah, need to have cooperation to stop the work. 17:35
Skarsnik also can I access the Promise in a start block to be able to break it? 17:36
or I just do die 'nooooo' 17:37
or something like that x)
timotimo you would die "nooooooo" 17:59
lizmat Skarsnik: see also stackoverflow.com/questions/642128...-a-promise
Skarsnik Thanks, I added an atomic variable that stop the loop inside the promise 18:01
I am stress testing a server and I did not want to have each client keep sending stuff when something is wrong, too much backlog 18:02
18:04 sjm_uk joined 18:21 Chi1thangoo joined 18:22 bocaneri left 18:38 Doc_Holliwould joined 18:40 donaldh left 18:44 abraxxa left, cgfbee joined, natrys joined, abraxxa joined
El_Che aptly selected name. promise 18:48
19:14 BenGoldberg joined
[Coke] folks looking to contribute to code/docs - github.com/Raku/nqp/issues/293 has undocumented nqp opcodes. you can find where the opcodes are declared in nqp's src/vm/... which point to a moarVM opcode in MoarVM's src/ directory, and often to an MVM_function which if you're lucky explains what it does. add to nqp's docs/ops.markdown (or throw it in a comment on that ticket, or in a gist) and we can get 19:22
through the remaining opcodes.
there are 211 opcodes left. 19:23
19:25 Doc_Holliwould left 19:27 aluaces left
Geth doc: mienaikage++ created pull request #3676:
Document absolute parameter for IO::Path symlink method
19:32
19:39 Doc_Holliwould joined 19:49 BenGoldberg left 19:55 wamba joined 20:07 Altai-man joined 20:10 sena_kun left 20:22 sjm_uk left, Black_Ribbon joined 20:30 Altai-man left
[Coke] nqp: ok(3,'test'); 20:32
camelia ok 1 - test
[Coke] raku: use Test; ok(3,'test'); 20:33
evalable6 ok 1 - test
20:40 Altai-man joined 20:43 lucasb joined 20:44 Geth left 20:47 cpan-raku left
[Coke] nqp: ok(False,'test'); 20:48
camelia not ok 1 - test
[Coke] raku: use Test; ok(False,'test');
evalable6 (exit code 1) not ok 1 - test
# Failed test 'test'
# at /tmp/FfDms6Najt line 1
[Coke] there.
20:48 Altai-man left
[Coke] is there a way to disable that extra diag output? 20:48
20:55 natrys left 20:58 Roamer` left, dog_star left, hoelzro left, Altreus left, timlegge left, hoelzro joined, Roamer` joined, dog_star joined, Altreus joined, timlegge joined 21:35 Xliff left 21:48 rindolf left 22:02 vgrato_ left 22:03 vgrato_ joined 22:09 ufobat left 22:21 wamba left 22:40 BenGoldberg joined 22:48 niceperl joined
timotimo m: $*ERR := Nil; use Test; ok(False, "oh no") 22:59
camelia Dynamic variable '$*ERR' not found
in block <unit> at <tmp> line 1
timotimo m: my $*ERR := Nil; use Test; ok(False, "oh no")
camelia not ok 1 - oh no
# Failed test 'oh no'
# at <tmp> line 1
timotimo m: use Test; ok(False, "oh no"); quietly done-testing 23:00
camelia not ok 1 - oh no
# Failed test 'oh no'
# at <tmp> line 1
1..1
# You failed 1 test of 1
timotimo [Coke]: which exact diag output, the line number in the comment? 23:01
Test does extra sure that output goes to the real stdout and stderr 23:04
23:06 tejr left, tejr joined 23:13 BenGoldberg left 23:17 nebuchadnezzar left 23:20 cpan-raku joined, cpan-raku left, cpan-raku joined 23:30 niceperl left 23:50 mid_home left