🦋 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.
cpan-raku New module released to CPAN! Vikna (0.0.1) by 03VRURG 02:59
vrurg Finally the first preview goes public... 03:08
vrurg weekly: blogs.perl.org/users/vadim_belman/2...-raku.html 03:25
notable6 vrurg, Noted! (weekly)
average hi folks 04:15
Geth doc: softmoth++ created pull request #3420:
Fix -f routine lookup in Type/independent-routines
05:38
tbrowder vrurg: very interesting, and nice! 10:18
average: mornin' 10:19
Geth doc: e9d2556b57 | (Tim Smith)++ | bin/p6doc
Fix -f routine lookup in Type/independent-routines

Because the pseudo-Type name 'independent-routines' contains the string
  'routine', it was being filtered out of the results list when looking up
a routine in it, such as `p6doc -f sprintf`.
10:37
doc: 97caeb6511 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | bin/p6doc
Merge pull request #3420 from softmoth/routine-in-typename

Fix -f routine lookup in Type/independent-routines
lizmat weekly: blogs.perl.org/users/vadim_belman/2...-raku.html 11:12
notable6 lizmat, Noted! (weekly) 11:13
Geth ¦ problem-solving: lizmat assigned to jnthn Issue Should IO::Path.child default to :secure semantics github.com/Raku/problem-solving/issues/198 13:36
RaycatWhoDat Hello. I have a question about the `polymod` routine. 13:44
So, the way I understand it is: you can provide units like 60 seconds, 60 minutes, and so on 13:45
and it will return the appropriate result in a list
p6: 14282.polymod(10, 100, 1000, 10000).say; 13:46
camelia (2 28 14 0 0)
RaycatWhoDat Why doesn't it return 1 for the 10k place here?
timotimo they are "cumulative"
tellable6 2020-05-23T12:56:52Z #raku-dev <lizmat> timotimo if you want to see an exploding --profile, try running "IO::Spec::Unix.tmpdir for ^10000"
timotimo m: say 111112222333445.polymod(10, 100, 1000, 10000)
camelia (5 44 333 2222 11111)
RaycatWhoDat I think you lost me. 13:47
Like, I see what it's doing now but I can't explain why that is 13:48
timotimo m: say 14282.polymod(10, 10, 10, 10, 10)
camelia (2 8 2 4 1 0)
timotimo you don't multiply them yourself
RaycatWhoDat OH
I get it
Thanks for helping me through it
timotimo NP 13:49
Geth doc: Prince213++ created pull request #3421:
Disable link to the broken 1-file HTML
17:00
poohman \ 17:20
hello all,
m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b;my %d.new(@c);say %d.elems; 17:22
evalable6 0
poohman m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b; 17:24
evalable6
poohman m:my @a=[0..10];my @b=@a.map(*+2);say @a Z=> @b; 17:25
evalable6 (0 => 2 1 => 3 2 => 4 3 => 5 4 => 6 5 => 7 6 => 8 7 => 9 8 => 10 9 => 11 10 => 12)
poohman m:my @a=[0..10];my @b=@a.map(*+2);say (@a Z=> @b).elems;
evalable6 11
poohman m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b; say @c;
evalable6 [0 => 2 1 => 3 2 => 4 3 => 5 4 => 6 5 => 7 6 => 8 7 => 9 8 => 10 9 => 11 10 => 12]
poohman m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b; say @c[0].WHAT; 17:26
evalable6 (Pair)
poohman m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b; say @c[0]; 17:26
evalable6 0 => 2
poohman m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b; say @c[0];my %d.new(@c); say %d; 17:27
evalable6 0 => 2
{}
poohman ah ok
Altreus Have I misunderstood stuff? This note is never noted. github.com/shuppet/p6-api-discord/...on.pm6#L94 17:29
I'm definitely receiving messages from discord
This emit is definitely run github.com/shuppet/p6-api-discord/...et.pm6#L45
Geth doc: 6296983cb5 | (Sizhe Zhao)++ | doc/HomePage.pod6
Disable link to the broken 1-file HTML until we have Raku/doc#1981 fixed.
17:30
doc: 43df2ab780 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/HomePage.pod6
Merge pull request #3421 from Prince213/disable-link-to-one-file-html

Disable link to the broken 1-file HTML
linkable6 DOC#1981 [open]: github.com/Raku/doc/issues/1981 [external][wishlist] Convert 1-file docs to epub with TOC
andreoss it seems that the notification for draft PRs does not work 17:56
as soon as they get marked 'ready' 17:57
lichtkind is there a way to declare a method to be not multi, like solo? 18:19
MasterDuke docs.raku.org/syntax/only 18:20
lichtkind thank you MasterDuke++ i was looking for it in the docs but didnt thought of it 18:22
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];@c = @a Z=>@b; my Z $d.new(@c); 18:25
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '@c' is not declared
at <tmp>:1
------> 3a;has $.b}; my @a=["a","b"];my @b=[1,2];7⏏5@c = @a Z=>@b; my Z $d.new(@c);
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my @c = @a Z=>@b; my Z $d.new(@c);
camelia Default constructor for 'Z' only takes named arguments
in block <unit> at <tmp> line 1
poohman can someone help me here 18:26
please
is this not working because of the itemisation of the array @c OR is it they way @c is made 18:27
?
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my @c = @a Z=>@b;say @c; my Z $d.new(@c); 18:28
camelia [a => 1 b => 2]
Default constructor for 'Z' only takes named arguments
in block <unit> at <tmp> line 1
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my @c = @a Z=>@b;say @c;
camelia [a => 1 b => 2]
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my @c = @a Z=>@b;say @c[0];
camelia a => 1
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my @c = @a Z=>@b;say @c[0].WHAT; 18:29
camelia (Pair)
Dwarf OK I kinda want something like regexr.com but for raku. That's not already a thing is it? 18:30
lizmat the Comma IDE has a live grammar executor, I'm told :-) 18:31
Dwarf I was kinda hoping to avoid IDEs for the time being while I get the hang of this language 18:31
The things I do for regex...
lizmat knows the feeling :-) 18:34
Dwarf Hm. Of course it's looking for an SDK. I've got rakudo star in $HOME/rakudo, but it won't accept that. Are there any other places I should be looking? 18:35
oh. The bin folder. Of course. 18:36
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my %c = @a Z=>@b;say @c; my Z $d.new(|%c); 18:41
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '@c' is not declared. Did you mean '%c'?
at <tmp>:1
------> 3","b"];my @b=[1,2];my %c = @a Z=>@b;say 7⏏5@c; my Z $d.new(|%c);
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my %c = @a Z=>@b; my Z $d.new(|%c);
camelia ( no output )
poohman ok
Dwarf Hm. Did not get the built in regex editor to pop up with context actions sadly. Oh well. 18:45
Dwarf My regex is a thing of arguable beauty and it's functional so I can't complain 18:45
Matching something such as 's/foo/bar/g' with rx/ 's/' [(<-[/]>+) '/'] ** 2 (g)?/ should do the trick, but suggestions are welcome 18:46
timotimo you'll want to handle backslashed slashes, quoted slashes, and different starter characters as well :) 18:47
lizmat weekly: raku-musings.com/ipv4-product.html 18:48
notable6 lizmat, Noted! (weekly)
timotimo oh this is not raku regex, right?
since the g doesn't go at the end for raku
Dwarf It should match "good old" basic sed syntax to a degree 18:49
timotimo sed does support different starter characters 18:51
like s,foo,bar,
Dwarf It's just for an IRC bot so it shouldn't need to be so advanced I hope 18:52
mahafyi suggestion to core team: You could add a bounty program and consultant listing in raku site. you'd have at least one user, lol. 19:08
Geth doc: softmoth++ created pull request #3422:
p6doc: Fix the INTERACT disambiguation mode
19:33
poohman m: class Z {has $.a;has $.b}; my @a=["a","b"];my @b=[1,2];my %c = @a Z=>@b; my Z $d.new(|%c);say $d.a; 19:45
camelia Cannot look up attributes in a Z type object
in method a at <tmp> line 1
in block <unit> at <tmp> line 1
poohman m: class Z {has $.a;has $.b; method show(){say $.a;}}; my @a=["a","b"];my @b=[1,2];my %c = @a Z=>@b; my Z $d.new(|%c);$d.show(); 19:47
camelia Cannot look up attributes in a Z type object
in method a at <tmp> line 1
in method show at <tmp> line 1
in block <unit> at <tmp> line 1
poohman m: class Z {has $.a;has $.b; method show(){say $.a;}}; my Z $d.new(a => 1, b => 2);$d.show(); 19:48
camelia Cannot look up attributes in a Z type object
in method a at <tmp> line 1
in method show at <tmp> line 1
in block <unit> at <tmp> line 1
poohman m: class Z {has $.a;has $.b; method show(){say $.a;}}; my Z $d = Z.new(a => 1, b => 2);$d.show(); 19:49
camelia 1
poohman ah
doof
m: class Z {has $.a;has $.b; method show(){say $.a;}}; my @a=["a","b"];my @b=[1,2];my %c = @a Z=>@b; my Z $d=Z.new(|%c);$d.show(); 19:50
camelia 1
holli__ m: say ([\,] 1, 2, 3,4) 19:58
camelia ((1) (1 2) (1 2 3) (1 2 3 4))
holli__ what black magic is this? i can't find that in the docs
m: say 1 \, 2 19:59
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say 17⏏5 \, 2
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
stat…
lizmat docs.raku.org/language/operators#i...operators) # holli__ 20:00
holli__ ah triangular reduce"
Dock_Holliwood thanks 20:01
melezhik .tell tyil[m] Log::JSON install fails for me - gist.github.com/melezhik/fd661d686...b855f0dfce 20:52
tellable6 melezhik, I'll pass your message to tyil
melezhik .tell tyil[m] - the issue with Log::Colored - gist.github.com/melezhik/71e7b365d...633edd19a3 20:54
tellable6 melezhik, I'll pass your message to tyil
tyil melezhik: I'll take a look tomorrow 20:54
melezhik yeah, sure 20:55
melezhik tyil and the same issue with Log::Simple - gist.github.com/melezhik/4e421cfed...45191137f9 20:55
.tell tyil[m] and for Log::Simple - pretty much the same. HTH - gist.github.com/melezhik/4e421cfed...45191137f9
tellable6 melezhik, I'll pass your message to tyil
cpan-raku New module released to CPAN! Sparrowdo (0.1.7) by 03MELEZHIK 22:25
melezhik .tell vrurg RakuDist test for Vikna fails - gist.github.com/melezhik/627cac88f...c4e66587a9 . HTH 22:44
tellable6 melezhik, I'll pass your message to vrurg
RaycatWhoDat Got another question 23:41
"Use of Nil in string context"
Both variables are defined either before or on the loop declaration 23:42
Additionally, it still outputs what I want, so I'm a bit confused.
lucs tries to guess what the code is... No luck :) 23:43
RaycatWhoDat Sorry, I was in the midst of uploading it, haha 23:44
gist.github.com/RayMPerry/cf0d91b0...9f193a2db4
Error fires on Line 9 23:45
lucs Ah. What you want is ^4 (0, 1, 2, 3) 23:46
Well, looking at line 9 anyway, that's what it looks like. 23:47
RaycatWhoDat oh, yeah, that did it
huh
Somehow, I expected a out-of-bounds error to look different 23:48
Thanks!
timotimo with non-shaped arrays you can actually assign to what you get out of the array to resize is 23:49
lucs You're welcome.
cameeeelia?
timotimo c: my @foo = 1, 2, 3; @foo[9] = 1000; dd @foo
committable6 timotimo, ¦my: «Cannot find this revision (did you mean “nom”?)»
timotimo c: HEAD my @foo = 1, 2, 3; @foo[9] = 1000; dd @foo 23:50
committable6 timotimo, ¦HEAD(4a728f2): «Array @foo = [1, 2, 3, Any, Any, Any, Any, Any, Any, 1000]␤»
timotimo m: my @foo[9]; @foo[$_].say for ^20
camelia (Any)
Index 9 for dimension 1 out of range (must be 0..8)
in block <unit> at <tmp> line 1

(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
(Any)
lucs accidentally did "/msg camelia: ..." (with a trailing colon), whence the confusion. 23:52
RaycatWhoDat Ah, I see. 23:53
So, my array was non-shaped and that's why it didn't throw that error?
my List*