🦋 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
lizmat elcaro: confirmed, could you please make an issue ? 00:35
afk&
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!
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
Xliff \o 08:24
Is there a shortcut for .reverse.skip(1).reverse? 08:25
rindolf Xliff: .skip(*-1)? just guessing 08:43
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?
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)}
MasterDuke Xliff: you want `.head(*-1)` 10:00
Xliff MasterDuke++: Thanks. That's what I ended up with. :) 10:01
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
Xliff donaldh++ # Thanks! 11:19
lizmat clickbaits rakudoweekly.blog/2020/10/26/2020-...-and-star/ 12:33
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
[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
[Coke] huh. I see I have some old ones in settings/keyboard/text defined but they aren't working in iterm. 13:17
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
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
[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
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
El_Che aptly selected name. promise 18:48
[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
Geth doc: mienaikage++ created pull request #3676:
Document absolute parameter for IO::Path symlink method
19:32
[Coke] nqp: ok(3,'test'); 20:32
camelia ok 1 - test
[Coke] raku: use Test; ok(3,'test'); 20:33
evalable6 ok 1 - test
[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.
[Coke] is there a way to disable that extra diag output? 20:48
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