»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:00
mowcat joined
00:15
cpan-p6 left,
cpan-p6 joined
00:36
woolfy joined,
zacts joined
00:38
netrino left
00:39
cpan-p6 left,
cpan-p6 joined
00:48
rindolf left
00:54
cpan-p6 left,
cpan-p6 joined
|
|||
Kaiepi | kawaii: correct | 00:56 | |
00:57
w_richard_w joined
01:04
zacts left
01:05
kurahaupo left,
kurahaupo_ joined,
kurahaupo_ left,
kurahaupo joined
01:16
cpan-p6 left
01:17
cpan-p6 joined
01:19
MidCheck joined
|
|||
Xliff | kawaii: Just a minor nitpick, your use of || here -> github.com/shuppet/p6-net-rcon/blo...ON.pm6#L15 | 01:22 | |
Is better to use //, since you are establishing defaults. | 01:23 | ||
01:29
zachk left
01:38
Averna joined
01:39
cpan-p6 left
01:40
cpan-p6 joined
01:54
lgtaube left,
cpan-p6 left
01:55
lgtaube joined,
cpan-p6 joined
02:10
cpan-p6 left,
cpan-p6 joined
02:15
drclaw left
02:16
zacts joined
02:20
zacts left,
zacts joined
02:21
woolfy1 joined
02:24
woolfy left
02:25
cpan-p6 left,
cpan-p6 joined
02:33
drclaw joined
02:40
cpan-p6 left,
cpan-p6 joined
02:42
sacomo left
02:47
w_richard_w left
02:50
mowcat left
02:59
bwisti joined
03:01
sacomo joined
03:04
cpan-p6 left
03:05
cpan-p6 joined
03:23
aindilis left
03:24
aindilis joined
03:33
cpan-p6 left,
cpan-p6 joined
03:37
ayerhart left
03:38
MidCheck left
03:39
ayerhart joined
03:45
Actualeyes joined
03:51
Actualeyes left
03:55
Actualeyes joined
04:01
aborazmeh joined,
aborazmeh left,
aborazmeh joined
04:07
ferreira left
04:10
ferreira joined
04:20
cpan-p6 left
04:21
cpan-p6 joined
04:31
zacts left
04:32
zacts joined
04:34
aborazmeh left
04:43
zacts left,
cpan-p6 left
04:44
cpan-p6 joined
04:51
zacts joined
04:54
dhyan_nataraj joined
04:59
zacts left
05:04
w_richard_w joined
05:08
cpan-p6 left,
cpan-p6 joined
05:11
drclaw left
05:17
zacts joined
05:30
zacts left,
cpan-p6 left,
cpan-p6 joined
05:49
zacts joined,
cpan-p6 left,
cpan-p6 joined
05:58
curan joined
06:03
cpan-p6 left,
cpan-p6 joined
06:16
wi15ht joined
|
|||
Geth | doc/master: 4 commits pushed by Antonio++, (Juan Julián Merelo Guervós)++ | 06:17 | |
06:19
w17t left,
kst left
06:21
jmerelo joined
|
|||
jmerelo | releasable6: status | 06:21 | |
yoleaux | 7 Mar 2019 22:22Z <AlexDaniel> jmerelo: sure | ||
releasable6 | jmerelo, Release manager is not specified yet. | ||
jmerelo, Next release in ≈43 days and ≈12 hours. 4 blockers. 0 out of 22 commits logged | |||
jmerelo, Details: gist.github.com/f17fe02c2ab1414743...a8983b4478 | |||
06:27
cpan-p6 left,
cpan-p6 joined
|
|||
jmerelo | .tell AlexDaniel Done: twitter.com/jjmerelo/status/1103908514664132610 | 06:42 | |
yoleaux | jmerelo: I'll pass your message to AlexDaniel. | ||
06:45
random_yanek left
06:49
xiao_cang joined
06:55
sena_kun joined
06:57
random_yanek joined
07:03
domidumont joined
07:07
lizmat joined
07:12
cpan-p6 left,
cpan-p6 joined
07:22
woolfy1 left
07:23
MidCheck joined,
jdv79 left
07:28
wi15ht left
07:34
abraxxa joined
07:37
cpan-p6 left,
cpan-p6 joined,
lizmat left
07:38
jmerelo left
07:39
sortiz joined
07:40
jdv79 joined
07:41
sno left
07:47
aborazmeh joined,
aborazmeh left,
aborazmeh joined
07:52
cpan-p6 left
07:53
cpan-p6 joined
07:56
wi15ht joined
08:02
sauvin joined
08:04
[ptc] left
08:10
[ptc] joined,
[ptc] left,
[ptc] joined
08:13
xiao_cang left
08:14
sno joined
08:17
cpan-p6 left,
cpan-p6 joined
|
|||
SmokeMachine | m: my $a = "42"; $a ~= "blablabla"; say $a | 08:21 | |
camelia | 42blablabla | ||
SmokeMachine | m: my $a = "42"; $a R~= "blablabla"; say $a # is that a bug? | ||
camelia | Cannot modify an immutable Str (blablabla) in block <unit> at <tmp> line 1 |
||
SmokeMachine | hum! I got it!!! | 08:22 | |
sorry! | |||
m: my $a = "42"; $a [R~]= "blablabla"; say $a | 08:23 | ||
camelia | blablabla42 | ||
08:24
drclaw joined
08:26
aborazmeh left,
w_richard_w left
08:28
zacts left
08:31
cpan-p6 left,
cpan-p6 joined
08:37
sno left
|
|||
AlexDaniel | .tell jmerelo cool. But keep in mind that we've been testing the ecosystem since the 2017.04 disaster, after which Zoffix created Toaster | 08:38 | |
yoleaux | 06:42Z <jmerelo> AlexDaniel: Done: twitter.com/jjmerelo/status/1103908514664132610 | ||
AlexDaniel: I'll pass your message to jmerelo. | |||
SmokeMachine | kawaii: I would do something like this: gist.github.com/FCO/da5f95e4a4be7b...57f3778b3e | 08:44 | |
AlexDaniel | .tell jmerelo Blin is simply a bit more efficient, and it automatically bisects affected modules (so that the release manager doesn't have to do it manually) | 08:49 | |
yoleaux | AlexDaniel: I'll pass your message to jmerelo. | ||
08:54
cpan-p6 left,
cpan-p6 joined
08:58
drclaw left
09:19
cpan-p6 left,
cpan-p6 joined
09:22
zacts joined
|
|||
Xliff | m: my $a; my $b; say "Hi!" with $a && $b; | 09:22 | |
camelia | ( no output ) | ||
Xliff | m: my $a=''; my $b; say "Hi!" with $a && $b; | 09:23 | |
camelia | Hi! | ||
Xliff | ?!?! | ||
m: my $a=''; my $b; say "Hi!" with $a and $b; | |||
camelia | Hi! | ||
Xliff | Felgercarb! | ||
Is there a way to do a definedness test with more than one variable? | 09:24 | ||
m: my $a=''; my $b; say "Hi!" with ($a, $b).all; | |||
camelia | ( no output ) | ||
Xliff | m: my $a=''; my $b=''; say "Hi!" with ($a, $b).all; | ||
camelia | Hi! | 09:25 | |
Xliff | m: my $a; my $b=''; say "Hi!" with ($a, $b).all; | ||
camelia | ( no output ) | ||
Xliff | m: my $a; my $b; say "Hi!" with ($a, $b).all; | ||
camelia | ( no output ) | ||
Xliff | OK. That works. | ||
09:29
zakharyas joined
09:30
satori__ left
09:31
rindolf joined
09:41
zakharyas left,
drclaw joined
09:43
cpan-p6 left
09:44
cpan-p6 joined
10:01
pecastro joined
10:04
pmurias joined,
cpan-p6 left
10:05
cpan-p6 joined,
sno joined
10:12
kurahaupo_ joined
10:14
kurahaupo left,
kurahaupo_ left,
kurahaupo joined
|
|||
SmokeMachine | as // (defined or) is a definition version of ||, should it exist a definition version of && (a defined and)? | 10:18 | |
10:18
kurahaupo_ joined
|
|||
SmokeMachine | m: my $a; my $b; say "Hi!" with $a // $b | 10:18 | |
camelia | ( no output ) | ||
10:18
cpan-p6 left
|
|||
SmokeMachine | m: my $a = 1; my $b; say "Hi!" with $a // $b | 10:18 | |
camelia | Hi! | ||
SmokeMachine | m: my $a; my $b = 1; say "Hi!" with $a // $b | ||
camelia | Hi! | ||
SmokeMachine | m: my $a=1; my $b = 1; say "Hi!" with $a // $b | ||
camelia | Hi! | ||
10:18
cpan-p6 joined
|
|||
SmokeMachine | Xliff: what do you think? | 10:19 | |
10:20
kurahaupo left
10:21
bwisti left
10:25
sno left
10:34
bwisti joined
|
|||
Xliff | That's actually better than a junction! | 10:41 | |
SmokeMachine: Thanks! | 10:42 | ||
10:42
cpan-p6 left,
cpan-p6 joined
10:45
lizmat joined
|
|||
sortiz | Xliff: Also check the andthen operator docs.perl6.org/language/operators#infix_andthen | 10:48 | |
m: my $a=''; my $b; say "Hi!" with $a andthen $b; | 10:51 | ||
camelia | ( no output ) | ||
10:51
domidumont left
10:52
lizmat left
10:53
MidCheck left
10:56
cpan-p6 left,
cpan-p6 joined
10:57
Black_Ribbon left
11:07
lizmat joined
11:20
cpan-p6 left,
cpan-p6 joined
11:26
drclaw left
11:27
drclaw joined
|
|||
Xliff | m: DateTime.now.posix.say | 11:28 | |
camelia | 1552044531 | ||
11:31
drclaw left
11:33
scimon joined
11:39
Altai-man_ joined
|
|||
Xliff | sortiz++! | 11:40 | |
OK. Next bit. I have a list of ids in an array. I want to pass them through a sub (as the only argument) in batches of 5 using hyper. | 11:41 | ||
What's the best way to go about that? | |||
11:41
sena_kun left
|
|||
Xliff | @list.hyper(:5degree).map( dothis(*) ) # ??? | 11:41 | |
@list».map( dothis(*) ) # ??? | 11:43 | ||
11:43
cpan-p6 left
|
|||
Altai-man_ | I'd go with the first one. | 11:43 | |
11:43
cpan-p6 joined
|
|||
Xliff | Thanks! | 11:43 | |
Altai-man_ | afaik, `>>` is _meant_ to automagically introduce concurrency execution, but I am not sure how well it goes in reality right now. but with explicit hyper with a degree set it is a sure bet. | 11:44 | |
Xliff | Ah! Thankee! | 11:45 | |
11:47
AlexDaniel left
|
|||
cpan-p6 | New module released to CPAN! Test-HTTP-Server (0.4.0) by 03SCIMON | 11:50 | |
scimon | @list.rotor(5)>>.map( dothis(*) ) ? | 11:53 | |
Xliff | does DBIish support making a query from two different database connections? | ||
11:54
lizmat left
|
|||
sortiz | You can open as many DB connections as you need, but you must made the query in every connection. (A query is a execution of a StatementHandle bound to a particular Connection) | 11:58 | |
Xliff | So I can't make a query using tables from two different connections? | 12:01 | |
Or not... maybe this suggestion will work... ;q | 12:03 | ||
stackoverflow.com/questions/941001...e-database | |||
12:04
chenyf joined
|
|||
SmokeMachine | Xliff: `@list.batch(5).hyper(:1batch).map: &dothis` ? | 12:05 | |
sortiz | Nop. In SQL a query is to be executed by one DB trough one connection. | 12:06 | |
12:06
scimon left
|
|||
Xliff | SmokeMachine: Thanks! I think I have that down. Writing the "dothis()" now. | 12:06 | |
12:06
cpan-p6 left
12:07
cpan-p6 joined
|
|||
SmokeMachine | m: my @list = ^100; sub dothis(@a) { sleep rand; say @a }; @list.batch(5).hyper(:1batch).map: &dothis | 12:07 | |
camelia | (0 1 2 3 4) (5 6 7 8 9) (10 11 12 13 14) (15 16 17 18 19) (20 21 22 23 24) (25 26 27 28 29) (30 31 32 33 34) (35 36 37 38 39) (55 56 57 58 59) (50 51 52 53 54) (40 41 42 43 44) (45 46 47 48 49) (65 66 67 68 69) (80 81 82 83 8… |
||
SmokeMachine | m: my @list = ^100; sub dothis(@a) { sleep rand; say @a }; @list.batch(5).hyper(:1batch).map: &dothis | ||
camelia | (5 6 7 8 9) (15 16 17 18 19) (10 11 12 13 14) (20 21 22 23 24) (0 1 2 3 4) (25 26 27 28 29) (30 31 32 33 34) (45 46 47 48 49) (40 41 42 43 44) (50 51 52 53 54) (35 36 37 38 39) (70 71 72 73 74) (55 56 57 58 59) (60 61 62 63 6… |
||
12:18
chenyf left
12:19
lizmat joined,
mowcat joined
12:27
mowcat left
12:31
cpan-p6 left
12:32
cpan-p6 joined
|
|||
discord6 | <kawaii> SmokeMachine: thank you for your feedback on my module! I wanted to use an enum originally too but sadly two of those values both share '2', so I stuck with a constant. | 12:36 | |
12:36
lizmat left
12:37
lizmat joined,
lizmat left
12:39
lizmat joined
12:41
pmurias left
12:45
cpan-p6 left
12:46
cpan-p6 joined
12:48
domidumont joined
12:57
lizmat left,
andrzejku left
12:59
abraxxa left
13:00
sno joined
13:02
AlexDaniel joined
13:06
lizmat joined,
pmurias joined
13:11
cpan-p6 left,
cpan-p6 joined
13:13
lizmat left
|
|||
SmokeMachine | m: enum bla (a => 2, b => 2, c => 3); say "{ $_ } => { +$_ }" for a, b, c # kawaii | 13:27 | |
camelia | a => 2 b => 2 c => 3 |
||
13:30
lizmat joined
13:31
lizmat left
13:35
cpan-p6 left
13:36
cpan-p6 joined
13:41
scimon joined
13:45
sno left,
sno joined
13:48
lizmat joined
13:49
lizmat left
|
|||
El_Che | AlexDaniel: what happened? A new release? | 13:50 | |
13:52
sno left,
lizmat joined,
lizmat left
13:56
lucasb joined,
lizmat joined
13:57
lizmat left,
cpan-p6 left
13:58
cpan-p6 joined
13:59
lizmat joined
|
|||
lucasb | AlexDaniel++ thanks for all the releases you did so far! Have a good rest :) | 14:01 | |
14:03
lizmat left
14:07
pmurias left,
lizmat joined,
molaf joined
14:08
sno joined,
pmurias joined
14:09
lizmat left
14:10
domidumont1 joined
14:11
lizmat joined,
lizmat left
14:13
sno left,
domidumont left
14:14
robertle joined
14:21
cpan-p6 left
14:22
lizmat joined,
cpan-p6 joined,
lizmat left
14:23
lizmat joined,
lizmat left
14:30
lizmat joined,
lizmat left
14:32
lizmat joined
14:33
lizmat left
14:34
wi15ht left
|
|||
sortiz | o/ #perl | 14:34 | |
14:34
sortiz left
|
|||
discord6 | <kawaii> when can we expect to see rakudo-star then? afaik star is just rakudo+zef? | 14:35 | |
Altai-man_ | there is no release manager for star distribution, as I remember? | 14:36 | |
14:37
lizmat joined,
lizmat left
14:44
cpan-p6 left
|
|||
discord6 | <kawaii> lack of volunteers? | 14:45 | |
14:45
cpan-p6 joined
|
|||
Altai-man_ | not sure I know all the recent news to be sure | 14:49 | |
14:49
lizmat joined
|
|||
Altai-man_ | but regardless, volunteering is welcome as always, I think. :) | 14:49 | |
discord6 | <kawaii> if there is a documented workflow, CI spec and someone willing to teach me the ropes then I'm happy to volunteer | 14:50 | |
<kawaii> AlexDaniel: ? ^ | |||
Altai-man_ | github.com/rakudo/star <- see "Release Guide" | ||
and if you mean Rakudo releases too, it has its own document. | |||
discord6 | <kawaii> I'm happy to take a look at, and manage Star, if I can get this built later without any issues and no one objects :] | 14:51 | |
Altai-man_ | I think no one will. You also need to get access to the repo, and then go for it. AFAIK it requires Windows and macOS machines, which I don't have. :| | 14:52 | |
AlexDaniel | See github.com/rakudo/star/issues/124 | ||
there are at least 2 volunteer for star | 14:53 | ||
and 0 for rakudo :) | |||
volunteers* | |||
discord6 | <kawaii> ah, hm, no access to a macOS box sadly, Windows can always be done in a VM though | ||
Altai-man_ | oh, so I was right that my info is outdated. | ||
14:53
lizmat left
|
|||
Altai-man_ | AlexDaniel++ for the release. | 14:53 | |
tyil | kawaii: I'd love to see a new Rakudo Star release :D | ||
AlexDaniel | yes, we should wait for hankache and clarkema to respond | 14:54 | |
discord6 | <kawaii> if no one else is able to, I'm happy to learn the process | ||
tyil | iirc the manager needed to be able to release for windows, which I don't use (and don't want to use either), so it'd be hard for me to do myself :< | ||
discord6 | <kawaii> I think finding someone with access to a mac is going to be the most difficult part | 14:55 | |
<kawaii> we're mostly native linux users here it seems | |||
AlexDaniel | kawaii: what about rakudo? | ||
tyil | I know plenty of people who use a mac, but none of them with an interest in Perl 6 | ||
discord6 | <kawaii> I am probably not nearly knowledgeable enough to handle Rakudo itself AlexDaniel | ||
AlexDaniel | kawaii: but are you willing to learn? I'll be around next month to help | 14:56 | |
discord6 | <kawaii> sure, of course, as you might have noticed - I use the Raku Discord bridge to chat here, but I check this channel often so it's fairly easy to get hold of me | 14:57 | |
<kawaii> I'm simply '@kawaii' on github too, if you need to tag me in anything | |||
<kawaii> ugh, Discord tried to do things there and probably sent weird things to the IRC | |||
<kawaii> i'm simply 'kawaii' over there, regardless :] | 14:58 | ||
AlexDaniel | kawaii: ok, you were not in perl6 org, right? I have sent you an invitation | 14:59 | |
El_Che | linux packages are being built as we speak ( now doing a test run to make sure 2019.03 isn't broken) | ||
discord6 | <kawaii> but yes, happy to learn when you have time, I had some experience in similar pursuits packaging postgresql and xen for Debian for a previous employer so, I'm sure I can pick it up | ||
El_Che | AlexDaniel++ | ||
discord6 | <kawaii> AlexDaniel: accepted the invite, thanks! | 15:00 | |
AlexDaniel | kawaii: go through this doc to see what needs to be done github.com/rakudo/rakudo/blob/mast..._guide.pod | ||
kawaii: you will also need to sign a CLA | |||
“ www.perlfoundation.org/contributor...-agreement print it out, sign it, scan it in (resize your scan to 250KB or less). Email to trademark -at- perlfoundation.org (please scan and email if you can, it's so much more efficient) ” | 15:01 | ||
discord6 | <kawaii> AlexDaniel: I | ||
<kawaii> will do so today | |||
AlexDaniel | kawaii: the doc mentions a script that is currently not on github, I'll fix that ASAP, but basically it just does all the steps that described in the doc | 15:02 | |
are described* | |||
you need to know how to do it manually anyway | 15:03 | ||
discord6 | <kawaii> AlexDaniel: rather large document, and quite complex, so I'll set aside some time this weekend to get to grips with the process :] | 15:05 | |
<kawaii> regardless, I'll send that email with document attached within the next few hours | |||
15:09
cpan-p6 left
15:10
cpan-p6 joined
|
|||
AlexDaniel | kawaii: yeah, CLA is needed to be able to push to the rakudo repo | 15:10 | |
kawaii: somehow it has a different policy than other perl6 repos… but that's ok :) | |||
it takes some time for someone to confirm that it was received, so yes, it's better to do it now to make sure you get the required access when the time comes :) | 15:12 | ||
15:24
pmurias left
15:29
cpan-p6 left
|
|||
discord6 | <kawaii> AlexDaniel: is the entire document needed? or just the last bit with my signature and date? To send the entire scan of the document goes well over a megabyte :] | 15:39 | |
15:39
mowcat joined
|
|||
Altai-man_ | kawaii, you can try to resize it with `ps2pdf` | 15:40 | |
it is part of ghostscripts and usually makes pdf scans smaller quite a bit, while the quality is about the same. | 15:41 | ||
just `ps2pdf big-file.pdf small.pdf` will do. | 15:42 | ||
15:42
curan left
15:44
sno joined
|
|||
Geth | doc: 8dfacd6b07 | cfa++ | doc/Type/Complex.pod6 Trailing whitespace. |
15:59 | |
doc: e644cee2c8 | cfa++ | xt/code.pws Spelling. |
|||
synopsebot | Link: doc.perl6.org/type/Complex | ||
16:03
telex left
16:05
telex joined
16:08
MilkmanDan left,
MilkmanDan joined
16:12
ravenousmoose_ left
|
|||
AlexDaniel | kawaii: yeah, try to resize it | 16:19 | |
16:24
AlexDaniel left
|
|||
discord6 | <kawaii> AlexDaniel: sent! | 16:26 | |
<kawaii> Altai-man_: thanks, that worked fine! | |||
El_Che | notable6: weekly New linux pkgs github.com/nxadm/rakudo-pkg/releas...g/v2019.03 ; github.com/nxadm/rakudo-pkg#os-repositories | 16:28 | |
notable6 | El_Che, Noted! | ||
16:50
domidumont joined
16:52
domidumont1 left
17:03
domidumont left
17:04
abraxxa joined
17:15
clarkema joined
17:16
scimon left
|
|||
Geth | doc: 3812880bbc | Coke++ | doc/Type/Complex.pod6 Make example compile |
17:20 | |
synopsebot | Link: doc.perl6.org/type/Complex | ||
17:21
andrzejku joined
17:33
Khisanth joined
17:53
zacts left
|
|||
Geth | doc: 8bb51f8aaf | Altai-man++ (committed using GitHub Web editor) | doc/Type/Range.pod6 Note that AT-POS on Range objects returns Nil |
17:55 | |
synopsebot | Link: doc.perl6.org/type/Range | ||
17:55
molaf left
|
|||
Altai-man_ | m: say (a => 5)<b>; | 17:58 | |
camelia | Nil | ||
Altai-man_ | m: say (a => 5)<a>; | ||
camelia | 5 | ||
18:03
dhyan_nataraj left
18:05
lucasb left
18:10
zachk joined
18:11
AlexDaniel joined
|
|||
AlexDaniel | .tell lucasb thank you! :) | 18:11 | |
yoleaux | AlexDaniel: I'll pass your message to lucasb. | ||
AlexDaniel | Altai-man_: thank you too! | 18:12 | |
Altai-man_ | :) | 18:13 | |
18:15
zacts joined
|
|||
Altai-man_ | I also have to say that things like installing a bunch of modules with zef is visibilly faster for me now compared to a half of a year ago state. And it is pretty great. | 18:15 | |
I wonder why do Pair ~~ Associative, though. | 18:17 | ||
Intuitively it is, of course, but it is hard to imagine a situation where `$pair<explicit-key-name>` can beat `$pair.value` | 18:18 | ||
Geth | doc: eac6eda2e7 | Altai-man++ (committed using GitHub Web editor) | doc/Type/Pair.pod6 Show Associative-like access of Pair And fix some output comment formatting. |
18:27 | |
synopsebot | Link: doc.perl6.org/type/Pair | ||
Kaiepi | i've been writing perl 6 for a year and a half and i still keep trying to access hash keys like %hash.key instead of %hash<key> | 18:29 | |
i blame node for this | |||
18:29
kurahaupo joined
18:32
kurahaupo_ left
|
|||
Altai-man_ | I remember wondering why `<$foo>` doesn't work, but when I get it, things were fine in this regard. | 18:32 | |
18:34
zachk left,
zachk joined
|
|||
Geth | doc: 64c55d4d36 | Altai-man++ (committed using GitHub Web editor) | doc/Type/Pair.pod6 Extend Pair description |
18:38 | |
synopsebot | Link: doc.perl6.org/type/Pair | ||
18:52
cfa joined
18:56
yqt joined
19:02
zacts left
|
|||
discord6 | <kawaii> hello! I've made some changes based on the feedback I got yesterday regarding my module, but now running into errors that are a little above my understanding gist.github.com/kawaii/c6e1cbbc78a...071dbd6fd2 | 19:06 | |
<kawaii> github.com/shuppet/p6-net-rcon/blo...t/RCON.pm6 | |||
<kawaii> {host => localhost, port => 25567} is what gets passed to the IO::Socket::INET.new, is this wrong? | 19:07 | ||
Altai-man_ | hmm, that |%arguments should be working. :| | 19:09 | |
kawaii, is your module self-contained? | 19:10 | ||
I likely need to write a little mock server to test it out... | 19:11 | ||
discord6 | <kawaii> Altai-man_: yes, and I've updated the gist with a docker command you can use if you need a real RCON server to play with 😉 | ||
<kawaii> I've no idea if the rest of my module works, such as authentication, since I can't yet get past connecting 😄 | 19:12 | ||
Altai-man_ | well, I cannot promise I can help, but I can try. :) | 19:13 | |
19:13
zachk left
|
|||
discord6 | <kawaii> much appreciated regardless 😃 | 19:13 | |
19:15
dhyan_nataraj joined
|
|||
Altai-man_ | can be reproduced with just `my $args = {:host("localhost"), :port("25567")}; my $a = IO::Socket::INET.new(|$args);` when dummy server listens. :| | 19:17 | |
19:18
dhyan_nataraj left,
dhyan_nataraj joined
|
|||
Altai-man_ | oh, I get it | 19:19 | |
kawaii, you need to pass port as an Int, not as a Str. | |||
so `:port('25567')` becomes just `:port(25567)`. | |||
discord6 | <kawaii> ohhh right! | ||
Altai-man_ | and the error message "Invalid arguments to .new?" is, well, technically correct. :) | 19:20 | |
discord6 | <kawaii> so my new error is 'Could not accept socket connection: Invalid argument' | 19:21 | |
19:21
sauvin left
|
|||
discord6 | <kawaii> is that because I'm passing in a password at the same time? | 19:21 | |
Altai-man_ | I wouldn't say that. | 19:22 | |
let me see... | |||
isn't it because you are trying to write a client, but `accept` is for server-side? | 19:23 | ||
as far as I understand it. | |||
discord6 | <kawaii> huh, oh, let me re-read the docs | ||
Altai-man_ | >In listen/server mode, waits for a new incoming connection. Once a new connection is established, an IO::Socket::INET instance (or a subclass instance) for consuming the connection is returned. | ||
I don't think it is needed. | 19:24 | ||
discord6 | <kawaii> so I should just pass $socket directly into authenticate? 😃 | 19:25 | |
Altai-man_ | I hope you'll be fine doing it. :) | ||
discord6 | <kawaii> yes, thanks for your help! | 19:26 | |
Altai-man_ | you are welcome! | ||
19:39
ravenousmoose joined
19:44
mowcat left
|
|||
Kaiepi | kawaii: alternatively you can pass numbers to named arguments like this: :25567port | 19:44 | |
Geth | doc: 8059fdc9fb | (Trey Harris)++ | doc/Type/Pair.pod6 Pair.pod6: fix link |
||
synopsebot | Link: doc.perl6.org/type/Pair | ||
andrzejku | Hey | ||
do you know if Nodes.nqp and Ops.nqp thats a runtime dependency for rakudo? | 19:45 | ||
or just build deps for nqp? | |||
I am trying to clean package | |||
guifa is off to Spain | |||
See y’all in a week or two :-) | 19:46 | ||
Altai-man_ | o/ | ||
19:49
zachk joined,
zachk left,
zachk joined
19:51
molaf joined
|
|||
discord6 | <kawaii> so I have this line my $payload = pack("VV", 1, $packet-type) ~ $message ~ pack("xx"); and pack returns a Buf but the ~ stringifys it, causing an error, how else can I concatenate all this? 😃 | 19:52 | |
Altai-man_ | .append method? | ||
19:53
guifa left
|
|||
Altai-man_ | though I am not sure how ~ doesn't work with Buf... | 19:53 | |
19:53
random_yanek left
|
|||
Altai-man_ | m: my $a = Buf.new(1,2,3); my $b = Buf.new(4,5,6); say $a ~ $b; say ($a ~ $b).^name; | 19:54 | |
camelia | Buf:0x<01 02 03 04 05 06> Buf |
||
discord6 | <kawaii> the original module does this my $data = pack( "VV", 1, $type ) . $message . pack("xx"); | ||
Altai-man_ | 1)is your $message a Buf? | ||
discord6 | <kawaii> in this case, $message is the password, so it's a string | 19:55 | |
Altai-man_ | you need to convert it to Buf too. | ||
what encoding do you want, utf-8? | |||
discord6 | <kawaii> can I coerce it? | ||
<kawaii> yes 😃 | |||
Altai-man_ | what encoding should one use during coercion? :) | ||
"$message.encode" | 19:56 | ||
will do, I think. | |||
m: my $a = Buf.new(1,2,3); my $b = Buf.new(4,5,6); say $a ~ 'foo'.encode ~ $b; | |||
camelia | Buf:0x<01 02 03 66 6F 6F 04 05 06> | ||
discord6 | <kawaii> I'll try that! | ||
Altai-man_ | utf8 is default for `encode` method. | ||
discord6 | <kawaii> hey! that... worked, I didn't get any error and it just returned to my shell | 19:57 | |
<kawaii> so I assume I need to add the rest of the logic to see if my auth worked | 19:58 | ||
<kawaii> thanks again! | |||
Altai-man_ | well, you can read some response from the socket, I think, and print it. | ||
20:05
drclaw joined
20:06
random_yanek joined
|
|||
Geth | doc: cffbb74d71 | (Trey Harris)++ | doc/Type/Pair.pod6 Fix link (Fixup of 8059fdc9) There were two errors with that link and I only fixed one, oops! |
20:09 | |
synopsebot | Link: doc.perl6.org/type/Pair | ||
20:20
zacts joined
20:24
cpan-p6 joined
20:25
yqt left
20:28
dhyan_nataraj left
20:35
go|dfish left
20:39
molaf left,
cpan-p6 left
20:40
cpan-p6 joined
20:42
zacts left
20:48
go|dfish joined
20:52
zacts joined
20:54
Altai-man_ left
20:59
clarkema left
21:05
molaf joined
21:08
andrzejku left,
andrzejku joined
|
|||
cpan-p6 | New module released to CPAN! gtk-v3 (0.8.2) by 03MARTIMM | 21:16 | |
New module released to CPAN! gtk-glade (0.8.0) by 03MARTIMM | |||
21:24
cpan-p6 left
21:25
cpan-p6 joined
21:34
abraxxa left
21:46
zacts left
21:47
|oLa| left,
zacts joined
21:48
|oLa| joined
21:49
andrzejku left,
cpan-p6 left
21:50
andrzejku joined,
cpan-p6 joined
22:03
cpan-p6 left
22:04
cpan-p6 joined
|
|||
Kaiepi | m: subset Foo of Mu is export where Int | Junction | 22:09 | |
camelia | ( no output ) | ||
22:10
ravenousmoose left
|
|||
Kaiepi | m: subset Foo is export of Mu where Int | Junction | 22:10 | |
camelia | ( no output ) | ||
22:10
andrzejku left,
andrzejku joined
|
|||
Kaiepi | what order is it supposed to be in? i always get confused | 22:10 | |
ok just tested and it looks like both work | 22:21 | ||
22:21
oftl left
|
|||
Kaiepi | it's just where that's picky about the order | 22:21 | |
22:24
ayerhart left
22:27
ayerhart joined,
cpan-p6 left,
cpan-p6 joined
22:31
andrzejku left,
epony left,
andrzejku joined
22:33
netrino joined
22:34
andrzejku left
22:37
drclaw left
22:40
Black_Ribbon joined
22:51
cpan-p6 left
22:52
cpan-p6 joined
22:55
squashable6 left
22:57
squashable6 joined
23:03
zacts left
23:08
drclaw joined
23:16
zacts joined
23:18
cpan-p6 left,
zacts left,
zacts joined,
cpan-p6 joined
23:19
cfa left
23:26
telex left
23:29
telex joined
23:39
hcshcshcshcshcs joined
23:41
drclaw left
23:48
lizmat joined
23:50
kst joined
23:55
SergiusUA joined
23:58
lizmat left
|