🦋 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:16
leont left
00:26
Altai-man_ joined
00:29
sena_kun left
00:35
chloekek left
00:38
Sgeo_ joined
00:41
Sgeo left
01:08
wildtrees left,
guifa2 left
01:19
hungrydonkey left
01:25
hungrydonkey joined
01:53
Kaiepi left
01:59
Kaiepi joined
02:01
guifa2 joined
02:02
brtastic joined
02:07
hungryd4 joined
02:09
hungrydonkey left
02:27
sena_kun joined
02:29
Altai-man_ left
|
|||
cpan-raku | New module released to CPAN! Vikna (0.0.1) by 03VRURG | 02:59 | |
03:07
skids joined
|
|||
vrurg | Finally the first preview goes public... | 03:08 | |
03:11
mowcat left
|
|||
vrurg | weekly: blogs.perl.org/users/vadim_belman/2...-raku.html | 03:25 | |
notable6 | vrurg, Noted! (weekly) | ||
03:46
holli__ left
04:09
poohman joined
04:15
average joined
|
|||
average | hi folks | 04:15 | |
04:26
Altai-man_ joined
04:29
sena_kun left
05:13
sauvin joined
05:29
aborazmeh joined,
aborazmeh left,
aborazmeh joined
05:35
stoned75 left
05:37
stoned75 joined
|
|||
Geth | doc: softmoth++ created pull request #3420: Fix -f routine lookup in Type/independent-routines |
05:38 | |
06:17
leont joined
06:24
Sgeo_ left
06:26
Sgeo joined
06:27
sjm_uk joined,
sena_kun joined
06:29
Altai-man_ left
06:34
marcusr left
06:35
rindolf joined
06:37
marcusr joined
07:02
aborazmeh left
07:29
hacktor left
07:37
hacktor joined,
hacktor left,
hacktor joined
07:38
hacktor left
07:41
hungrydonkey joined,
hungryd4 left
07:43
rindolf left
07:53
[Sno] left
07:55
sno joined,
rindolf joined
08:06
skids left
08:10
molaf joined
08:15
molaf left
08:20
molaf joined
08:26
Altai-man_ joined
08:29
sena_kun left
08:34
hacktor joined
08:47
sjm_uk left
08:52
sjm_uk joined
08:53
Sgeo left
08:58
NODE left,
Benett left
09:00
holli__ joined
09:01
Benett joined
09:02
Kaiepi left
09:04
Kaiepi joined
09:09
wbn left
09:17
NODE joined
09:26
brtastic left
09:27
poohman left
09:28
andrzejku joined
09:48
chloekek joined
09:52
andrzejku left
09:57
andrzejku joined
10:02
poohman joined
10:04
holli__ left
10:11
sjm_uk left
10:14
holli__ joined
|
|||
tbrowder | vrurg: very interesting, and nice! | 10:18 | |
average: mornin' | 10:19 | ||
10:28
sena_kun joined
10:29
Altai-man_ left,
andrzejku left
10:30
mowcat joined
10:35
brtastic joined
10:36
brtastic left,
brtastic joined
|
|||
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 |
|||
10:39
andrzejku joined
|
|||
lizmat | weekly: blogs.perl.org/users/vadim_belman/2...-raku.html | 11:12 | |
notable6 | lizmat, Noted! (weekly) | 11:13 | |
11:17
MasterDuke left
11:18
Black_Ribbon left
11:24
andrzejku left
11:29
ShimmerFairy left
11:30
ShimmerFairy joined
11:37
rindolf left
11:43
brtastic left
11:45
pecastro joined
11:46
rindolf joined
11:53
konvertex joined
12:04
vike1 left
12:06
holli__ left
12:13
vike1 joined
12:22
MasterDuke joined
12:26
brtastic joined,
Altai-man_ joined
12:29
sena_kun left
12:32
brtastic left,
brtastic joined
12:37
stoned75 left
12:45
chloekek left
12:56
patrickb joined
13:02
Voldenet left
13:05
daxim joined
13:08
Voldenet joined,
Voldenet left,
Voldenet joined
13:32
mowcat left
13:34
chloekek joined
|
|||
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 | |
13:44
RaycatWhoDat joined
|
|||
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 | |
14:04
hacktor left
14:05
hacktor joined
14:23
rypervenche left,
patrickb left
14:24
RaycatWhoDat left
14:25
konvertex left
14:26
ensamvarg left
14:27
sena_kun joined
14:29
Altai-man_ left
14:33
mowcat joined
14:36
Itaipu left
14:38
rypervenche joined
14:39
ensamvarg joined
14:48
sparcio joined
15:02
andreoss joined
15:25
molaf left
15:30
gugod left
15:31
__jrjsmrtn__ joined
15:32
_jrjsmrtn left
15:33
stoned75 joined
15:52
Kaiepi left
15:53
Kaiepi joined
15:56
Kaiepi left,
Kaiepi joined
15:57
domidumont joined
16:02
Kaiepi left
16:05
Kaiepi joined
16:26
Altai-man_ joined
16:29
sena_kun left
16:33
natrys joined
16:57
aborazmeh joined,
aborazmeh left,
aborazmeh joined
16:58
JJMerelo joined
|
|||
Geth | doc: Prince213++ created pull request #3421: Disable link to the broken 1-file HTML |
17:00 | |
17:16
lichtkind joined
17:18
konvertex joined
|
|||
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 | ||
17:22
aborazmeh left
17:24
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
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] | ||
17:25
cpan-raku left
|
|||
poohman | m:my @a=[0..10];my @b=@a.map(*+2);my @c=@a Z=> @b; say @c[0].WHAT; | 17:26 | |
evalable6 | (Pair) | ||
17:26
cpan-raku joined,
cpan-raku left,
cpan-raku joined
|
|||
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 | ||
17:29
guifa left
|
|||
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 | ||
17:35
holli__ joined
17:41
domidumont left
17:44
MilkmanDan left
17:45
MilkmanDan joined
|
|||
andreoss | it seems that the notification for draft PRs does not work | 17:56 | |
as soon as they get marked 'ready' | 17:57 | ||
18:03
hungrydonkey left
18:06
guifa2 left,
guifa2 joined
18:07
guifa2 left
18:08
aborazmeh left
18:15
mahafyi joined
|
|||
lichtkind | is there a way to declare a method to be not multi, like solo? | 18:19 | |
18:20
andrzejku joined
|
|||
MasterDuke | docs.raku.org/syntax/only | 18:20 | |
18:21
guifa2 joined
|
|||
lichtkind | thank you MasterDuke++ i was looking for it in the docs but didnt thought of it | 18:22 | |
18:23
andrzejku left
18:24
andreoss left
|
|||
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 | ||
? | |||
18:27
sena_kun joined
|
|||
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) | ||
18:29
Altai-man_ left
|
|||
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 | |
18:31
andrzejku joined
|
|||
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... | |||
18:33
manj-gnome_ joined
18:34
andrzejku left,
manj-gnome_ left
|
|||
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 | ||
18:38
JJMerelo left,
Sgeo joined
|
|||
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 | |
18:45
guifa2 left
|
|||
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 | |
19:20
lucasb joined
|
|||
Geth | doc: softmoth++ created pull request #3422: p6doc: Fix the INTERACT disambiguation mode |
19:33 | |
19:37
rindolf left
19:43
Black_Ribbon joined
|
|||
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" | ||
20:00
holli__ is now known as Dock_Holliwood
|
|||
Dock_Holliwood | thanks | 20:01 | |
20:01
albongo is now known as Xx4161n0xX,
Xx4161n0xX is now known as albongo
20:27
Altai-man_ joined
20:29
brtastic left,
sena_kun left
20:47
rypervenche left
20:51
melezhik joined
|
|||
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 | ||
20:52
chloekek left
|
|||
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 | ||
20:54
tyil joined
|
|||
tyil | melezhik: I'll take a look tomorrow | 20:54 | |
melezhik | yeah, sure | 20:55 | |
20:55
tyil left
|
|||
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 | ||
21:06
hyperak joined
21:12
aborazmeh joined,
aborazmeh left,
aborazmeh joined
21:19
rypervenche joined
22:01
natrys left
|
|||
cpan-raku | New module released to CPAN! Sparrowdo (0.1.7) by 03MELEZHIK | 22:25 | |
22:27
sena_kun joined
22:29
Altai-man_ left
|
|||
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 | ||
23:04
pecastro left
23:06
aborazmeh left
23:20
leont left
23:23
poohmaan joined
23:27
poohman left
23:34
Kaiepi left
23:35
Kaiepi joined
23:37
RaycatWhoDat joined
23:38
ensamvarg_ joined
23:39
xelxebar left,
xelxebar_ joined,
pierrot left,
pierrot joined,
[ptc] left,
[ptc] joined
23:40
ensamvarg left
|
|||
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* |