ยปรถยซ 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
atweiden-air joined
00:01
p6bannerbot sets mode: +v atweiden-air
|
|||
squashable6 | ๐๐๐ First contribution by ugexe++! โฅ | 00:07 | |
zachk | how can do I something like : say "my dog's name is $d.name" ? | 00:13 | |
atweiden-air | zachk: class Dog { has $.name is required }; my Dog $d .= new(:name<fido>); say "my dog's name is {$d.name}"; | 00:16 | |
zachk | thank you atweiden-air | 00:17 | |
jnthn | Can also do it with $d.name() | 00:19 | |
zachk | nice, now how come just $d.name doesn't work? is it because of parsing? | 00:20 | |
holyghost | because $d.name is undefined then and you don't parse it | 00:22 | |
jnthn | It was decided to require some kind of postcircumfix on the end of dereference-like things inside of interpolation | 00:23 | |
[email@hidden.address] and "data_$i.txt" being two obvious cases where it's more likely to be something to trip over instead of a help | |||
squashable6 | ๐ vrurg++ opened issue โ"inconsistent bind resulโฆโ: github.com/rakudo/rakudo/issues/2582 | 00:31 | |
๐๐๐ First contribution by vrurg++! โฅ | |||
vrurg | I've managed to narrow down the cause to re-exporting of a type via sub EXPORT. | 00:32 | |
00:41
w_richard_w joined
00:42
kurahaupo_ left,
p6bannerbot sets mode: +v w_richard_w,
kurahaupo joined
00:43
p6bannerbot sets mode: +v kurahaupo
00:47
leont joined
00:48
p6bannerbot sets mode: +v leont
00:55
w_richard_w left
|
|||
pony | I get this error trying to compile the latest rakudo star on OpenBSD pastebin.com/Q4vcG7zV | 01:31 | |
holyghost | If it doesn't work, 2018.04 compiles | 01:32 | |
pony | ahh | ||
holyghost | If that doesn't work, 2018.04 compiles, on 5.7 though | 01:35 | |
s/2018/2017 | |||
pony | 2017.10 is in packages | 01:36 | |
I just wanted 2018.10 :) | 01:37 | ||
01:50
zachk left
02:42
atweiden-air left
|
|||
SmokeMachine | m: infix:<||>(42, 42) {โokโ}; say (42 || 42) | 02:56 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unexpected block in infix position (missing statement control word before the expression?) at <tmp>:1 ------> 3infix:<||>(42, 42)7โ5 {โokโ}; say (42 || 42) expecting any of: โฆ |
||
SmokeMachine | m: multi infix:<||>(42, 42) {โokโ}; say (42 || 42) | 02:57 | |
camelia | 42 | ||
SmokeMachine | :( | 02:58 | |
03:00
daotoad1 joined
03:01
p6bannerbot sets mode: +v daotoad1
03:06
AlexDani` joined
03:07
p6bannerbot sets mode: +v AlexDani`
|
|||
daotoad1 | perl6: class Foo { has Int @.attr; }; my %foo = attr => [ 1, 2, 4 ]; my $foo = Foo.new(|%foo); | 03:08 | |
camelia | Type check failed in assignment to @!attr; expected Int but got Array ($[1, 2, 4]) in block <unit> at <tmp> line 1 |
||
Type check failed in assignment to @!attr; expected Int but got Array ($[1, 2, 4]) in block <unit> at <tmp> line 1 |
|||
daotoad1 | I keep running into issues like this with slips and collection type constraints. What am I doing wrong? And what part of the docs will set me straight? | 03:09 | |
timotimo | committable6: releases class Foo { has Int @.attr; }; my %foo = attr => [ 1, 2, 4 ]; my $foo = Foo.new(|%foo); | ||
committable6 | timotimo, gist.github.com/b66829a313b214c5d1...3f620033c1 | ||
03:10
AlexDaniel left
|
|||
timotimo | it's probably a difference between assignment and binding | 03:10 | |
m: my @bar = 1, 2, 3; my Int @foo = @bar | |||
camelia | ( no output ) | ||
timotimo | ^- this only works because the original @bar is iterated over and the individual items are put into @foo | 03:11 | |
but i guess when you have @.attr and create the object with the default new method it will try to bind it? | |||
m: class Foo { has Int @.attr }; @(Foo.new.attr) = 1, 2, 3, 4 | |||
camelia | ( no output ) | ||
03:14
cfa left
|
|||
daotoad1 | If I say: %foo.perl, I get {:attr($[1, 2, 4])} | 03:15 | |
timotimo | ooh | ||
it's containerized, so it'll actually do exactly what it says in the error message | |||
it tries to put the array into the first slot of the @.attr array | |||
daotoad1 | How do I prevent the containerization? | 03:16 | |
timotimo | and then it sees that what was supposed to be an Int was actually an Array | ||
m: my %attrs; %attrs<attr> := [1, 2, 3]; dd %attrs | |||
camelia | Hash %attrs = {:attr([1, 2, 3])} | ||
timotimo | that's one way i know of | ||
m: my %attrs = foo => [1, 2, 3]<>; dd %attrs | |||
camelia | Hash %attrs = {:foo($[1, 2, 3])} | ||
timotimo | this doesn't work, the hash constructor is apparently what creates the scalars | 03:17 | |
daotoad1 | perl6: class Foo { has Int @.attr; }; my $foo = attr => [ 1, 2, 4 ]; my $f = Foo.new(|$foo); | 03:21 | |
camelia | ( no output ) | ||
timotimo | interesting, it works with a pair, then? then you'd perhaps have to have one slip for every argument | 03:22 | |
daotoad1 | Making a List also seems to work. | 03:28 | |
But as soon as I make a hash, either with a hash constructor on the RHS, or a sigil on the LHS, failure. | 03:29 | ||
perl6: my %foo = attr => |[1,2,4]; say %foo.perl | 03:34 | ||
camelia | {:attr($(slip(1, 2, 4)))} | ||
daotoad1 | Which also works for initializing an object. | 03:35 | |
03:36
Aceeri left
|
|||
daotoad1 | Since there's an easy, non-verbose way of saying something that works, I am happy to see this as a case of "my expectations were broken". | 03:39 | |
But I am pretty sure that this is also not documented anywhere. I'm not sure what needs to change to help people expect this result. | 03:40 | ||
timotimo | finding the right place in the docs to put something is a bit of an art | 03:41 | |
daotoad1 | Perhaps in the Hash docs, it would be good to say that Hashes, by nature, force their values into containers. | ||
So to make a literal Key => Array, you need a slip in there to unpack the container? | 03:43 | ||
timotimo | i'm not entirely sure where exactly the slip gets unpacked | 03:44 | |
probably inside the constructor when taking something from the positional args and assigning it into the attribute | |||
daotoad1 | I ran into the issue trying to apply a Hash to object initialization, so maybe a note with a link to the Hash docs also? | 03:45 | |
timotimo | yeah | ||
daotoad1 | Not sure I am up to actually writing the change myself, but I can definitely open an issue in the docs repo. | 03:47 | |
timotimo | that's a good start :) | 03:48 | |
daotoad1 | Thanks for the help! | ||
I messed around with this for like an hour the other night, you really helped me find the solution. | 03:49 | ||
timotimo | no problem! | 03:50 | |
feel free to come to irc earlier next time something's not quite working, or post to stackoverflow, or reddit, or ... ): | |||
:) | |||
daotoad1 | I was supposedly going to go to bed in 5 minutes and didn't want to start a long chat. :P | 03:51 | |
Instead I kept trying one more thing. | |||
timotimo | ha, i know that feeling | ||
but irc is fine for quick chats, too | |||
the kind of quick chat that i don't like on irc is when people come in, ask a question, and leave two minutes later | 03:52 | ||
03:57
ryn1x joined
03:58
p6bannerbot sets mode: +v ryn1x
|
|||
daotoad1 | Understandable. | 03:59 | |
timotimo | to be fair, it happens more often in more "end user support" focused channels | 04:00 | |
for example, i hang out in #krita, which is a drawing/painting program | |||
04:01
leont left
|
|||
timotimo | anyway, better go to bed :D | 04:01 | |
me, too, actually | |||
daotoad1 | Thanks again, and good night | ||
04:02
Khisanth left
|
|||
timotimo | sleep well! | 04:02 | |
o/ | |||
04:04
moony left
04:17
Khisanth joined,
p6bannerbot sets mode: +v Khisanth
04:26
Herby_ joined
|
|||
Herby_ | o/ | 04:26 | |
\o | |||
04:45
mowcat left
04:46
Cabanossi joined
04:47
p6bannerbot sets mode: +v Cabanossi
04:48
Cabanoss- left
04:49
sauvin joined,
p6bannerbot sets mode: +v sauvin
05:01
Herby_ left
05:04
moony joined,
p6bannerbot sets mode: +v moony
05:07
ryn1x left
|
|||
squashable6 | ๐ titsuki++ opened issue โC++ const breaks P6 structโ: github.com/rakudo/rakudo/issues/2583 | 05:12 | |
๐๐๐ First contribution by titsuki++! โฅ | |||
Elronnd | is there a good way to say "if foo() != -1 { do something with the output of foo() }" ? | ||
usercontent.irccloud-cdn.com/file/.../image.png | |||
gah | |||
disregardr | |||
05:23
titi joined,
p6bannerbot sets mode: +v titi
05:26
titi left
|
|||
daotoad1 | disregardr.io is my new startup. | 05:39 | |
05:48
hankache joined
05:49
p6bannerbot sets mode: +v hankache,
lizmat left
|
|||
hankache | m: say "Hello #perl6"; | 05:52 | |
camelia | Hello #perl6 | ||
06:00
vrurg left
06:01
vrurg joined
06:02
p6bannerbot sets mode: +v vrurg,
vrurg left
06:04
molaf joined
06:05
p6bannerbot sets mode: +v molaf
|
|||
Geth | doc: 98a0e76886 | cfa++ | doc/Type/Any.pod6 Fix deepmap and duckmap links from Any. |
06:09 | |
synopsebot | Link: doc.perl6.org/type/Any | ||
squashable6 | ๐ bugfood++ opened issue โduplicate stat() system calls on file testsโ: github.com/rakudo/rakudo/issues/2584 | 06:12 | |
๐๐๐ First contribution by bugfood++! โฅ | |||
06:20
hankache left
06:28
MilkmanDan left
06:29
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
06:31
[particle] joined,
[particle]1 left
06:32
p6bannerbot sets mode: +v [particle]
06:41
quester joined,
p6bannerbot sets mode: +v quester
06:50
AlexDani` is now known as AlexDaniel
06:56
quester left
07:38
molaf left
08:02
irco joined
08:03
p6bannerbot sets mode: +v irco
08:10
rindolf joined
08:11
p6bannerbot sets mode: +v rindolf
|
|||
squashable6 | ๐ niner++ wrote a comment on โC++ const breaks P6 structโ: github.com/rakudo/rakudo/issues/25...-451637021 | 08:14 | |
๐๐๐ First contribution by niner++! โฅ | |||
AlexDaniel | squashable6: status | 08:54 | |
squashable6 | AlexDaniel, ๐๐ SQUASHathon is in progress! The end of the event in 1 day and โ3 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/a77620ae5a4874b6e8...f37fd35b85 | |||
09:05
kurahaupo left,
kurahaupo joined
09:06
p6bannerbot sets mode: +v kurahaupo
|
|||
squashable6 | ๐ robertlemmen++ wrote a comment on โ"Cannot invoke this objeโฆโ: github.com/rakudo/rakudo/issues/25...-451641923 | 09:47 | |
10:03
lizmat joined,
p6bannerbot sets mode: +v lizmat
10:05
mowcat joined
10:06
p6bannerbot sets mode: +v mowcat
|
|||
Geth | doc: b66a3c47f3 | (JJ Merelo)++ | doc/Language/operators.pod6 Fixes typo and reflows |
10:17 | |
synopsebot | Link: doc.perl6.org/language/operators | ||
10:24
w_richard_w joined,
w_richard_w left
10:28
molaf joined
10:29
p6bannerbot sets mode: +v molaf
10:56
irdr left,
hphs^ left
10:59
hphs^ joined
11:00
p6bannerbot sets mode: +v hphs^
11:01
irdr joined
11:02
p6bannerbot sets mode: +v irdr
11:06
AlexDaniel-old[m joined,
p6bannerbot sets mode: +v AlexDaniel-old[m
11:33
AlexDaniel` joined,
p6bannerbot sets mode: +v AlexDaniel`,
lance_w[m] joined,
wictory[m] joined,
Matthew[m] joined,
Demos[m] joined,
ilmari_ joined,
p6bannerbot sets mode: +v lance_w[m],
p6bannerbot sets mode: +v wictory[m],
p6bannerbot sets mode: +v ilmari_,
p6bannerbot sets mode: +v Matthew[m],
p6bannerbot sets mode: +v Demos[m],
tyil[m]1 joined,
p6bannerbot sets mode: +v tyil[m]1,
tyil[m] joined,
p6bannerbot sets mode: +v tyil[m],
Garland_g[m] joined,
p6bannerbot sets mode: +v Garland_g[m],
MitarashiDango[m joined,
p6bannerbot sets mode: +v MitarashiDango[m
11:41
ChoHag joined,
p6bannerbot sets mode: +v ChoHag
11:43
marmor joined,
p6bannerbot sets mode: +v marmor
12:01
marmor left
12:12
caa51h joined,
p6bannerbot sets mode: +v caa51h
12:16
caa51h left
|
|||
squashable6 | ๐ AlexDaniel++ wrote a comment on โ"Cannot invoke this objeโฆโ: github.com/rakudo/rakudo/issues/25...-451653011 | 12:51 | |
12:51
MasterDuke joined
12:52
p6bannerbot sets mode: +v MasterDuke
|
|||
MasterDuke | AlexDaniel: I find I usually have to do โdebug=3 to get good results | 12:52 | |
AlexDaniel | MasterDuke: hmm where's that? I mean, how is it different from --moar-option='--debug=3' ? | 12:53 | |
MasterDuke | Ah, it isnโt. I thought you just had โdebug | ||
12:54
|oLa| joined
12:55
p6bannerbot sets mode: +v |oLa|
13:00
MasterDuke left
13:10
lucasb joined,
p6bannerbot sets mode: +v lucasb
13:53
molaf left
|
|||
squashable6 | ๐ jnthn++ wrote a comment on โ"Cannot invoke this objeโฆโ: github.com/rakudo/rakudo/issues/25...-451657019 | 13:54 | |
14:07
khisanth_ joined
14:08
p6bannerbot sets mode: +v khisanth_
14:11
Khisanth left
14:27
sena_kun joined
14:28
p6bannerbot sets mode: +v sena_kun
15:04
abraxxa joined
15:05
p6bannerbot sets mode: +v abraxxa
15:12
leont joined,
Ven`` joined
15:13
p6bannerbot sets mode: +v leont,
p6bannerbot sets mode: +v Ven``,
molaf joined
15:14
p6bannerbot sets mode: +v molaf
|
|||
squashable6 | ๐ dogbert17++ wrote a comment on โ"Cannot invoke this objeโฆโ: github.com/rakudo/rakudo/issues/25...-451663843 | 15:15 | |
๐๐๐ First contribution by dogbert17++! โฅ | |||
15:16
lizmat left
|
|||
AlexDaniel | squashable6: status | 15:17 | |
squashable6 | AlexDaniel, ๐๐ SQUASHathon is in progress! The end of the event in โ20 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/b90784acfe4857baa7...d2903359af | |||
AlexDaniel | hmmm there are 43 tickets github.com/rakudo/rakudo/issues?q=...testneeded | ||
15:21
Gothmog is now known as Gothmog_
15:22
zakharyas joined
15:23
p6bannerbot sets mode: +v zakharyas
15:29
abraxxa left
|
|||
holyghost | Good luck with the squasaton all ! I might join in later this year :-) | 15:35 | |
15:36
cfa joined,
p6bannerbot sets mode: +v cfa
15:47
pmurias joined,
p6bannerbot sets mode: +v pmurias
15:49
lucasb left
15:53
ChoHag left
15:56
vrurg joined
15:57
vrurg left
|
|||
squashable6 | ๐ Gnouc++ wrote a comment on โduplicate stat() system calls on file testsโ: github.com/rakudo/rakudo/issues/25...-451666888 | 15:57 | |
๐๐๐ First contribution by Gnouc++! โฅ | |||
15:58
kensanata joined,
p6bannerbot sets mode: +v kensanata
|
|||
squashable6 | ๐ zoffixznet++ wrote a comment on โduplicate stat() system calls on file testsโ: github.com/rakudo/rakudo/issues/25...-451667814 | 16:10 | |
๐๐๐ First contribution by zoffixznet++! โฅ | 16:11 | ||
16:16
zakharyas left
|
|||
cfa | ๐ | 16:17 | |
16:19
zakharyas joined
16:20
p6bannerbot sets mode: +v zakharyas
16:25
domidumont joined
16:26
p6bannerbot sets mode: +v domidumont
|
|||
squashable6 | ๐ robertlemmen++ wrote a comment on โ"Cannot invoke this objeโฆโ: github.com/rakudo/rakudo/issues/25...-451669951 | 16:38 | |
16:50
Ven`` left
16:52
zakharyas left
16:59
Sgeo__ joined,
p6bannerbot sets mode: +v Sgeo__
17:02
Sgeo_ left
|
|||
squashable6 | ๐ robertlemmen++ wrote a comment on โ"Cannot invoke this objeโฆโ: github.com/rakudo/rakudo/issues/25...-451672463 | 17:07 | |
17:14
dwarring left
17:25
sena_kun left,
koto joined
17:26
p6bannerbot sets mode: +v koto
17:35
mowcat left,
marmor joined
17:36
p6bannerbot sets mode: +v marmor
17:43
kensanata left,
zachk joined
17:44
p6bannerbot sets mode: +v zachk,
zachk left,
zachk joined
17:45
zachk left,
zachk joined,
p6bannerbot sets mode: +v zachk
|
|||
zachk | how would I use a for loop to loop over an array nested in a hash? | 18:00 | |
my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]] | |||
for %h{'y'} {.say} | |||
that prints out the whole array not every element on a separate line | |||
koto | well, you have to either `@` it or convert to e.g. Seq, List or something like that. | 18:02 | |
m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for @(%h<y>); | |||
camelia | 1 2 3 |
||
koto | m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for %h<y>.Seq; | ||
camelia | 1 2 3 |
||
koto | m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for |%h<y>; | 18:03 | |
camelia | 1 2 3 |
||
koto | ^ is the shortest, I think. zachk ^^ | ||
zachk | whats | do? | ||
koto | well, very-very simplifying in "unpacks" a scalar that holds something that may be iterated and does number of things. For example, you can: | 18:04 | |
m: sub a(:$a, :$b) { say $a + $b }; my %h = a => 1, b => 3; a(|%h); | 18:05 | ||
camelia | 4 | ||
koto | see docs.perl6.org/type/Signature#inde...parameters | ||
18:06
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
koto | in fact, you can do various cool things with Capture being first-class citizen, but that's another question. :) | 18:08 | |
tobs | m: my %h = x => {a => 1 , b => 2} , y => [[1, 2 ,3]]; .say for %h<y><> | ||
camelia | 1 2 3 |
||
tobs | ^ or decontainerize it, zachk | 18:09 | |
(perl6advent.wordpress.com/2017/12/02/#decont) | 18:10 | ||
18:19
patrickb joined
18:20
p6bannerbot sets mode: +v patrickb
|
|||
zachk | and my $line = prompt ">>> " locks up perl6.bat under a command window on windows 10 :-/ | 18:27 | |
in the interpreter | 18:28 | ||
koto | zachk, does it just hang ignoring your input? | 18:47 | |
zachk | no responsive even to ctrl-c also not printing out any characters typed | 18:48 | |
koto | hmm, that's very odd. what is rakudo version used? | 18:49 | |
also, ctrl-z or ctrl-d should kill the process in windows, I think, but that's another matter. | 18:51 | ||
18:58
kensanata joined,
p6bannerbot sets mode: +v kensanata
19:23
jeek left
|
|||
Altreus | is this the right place to report that perl6maven is broken? | 19:25 | |
koto | not sure. maybe github.com/szabgab/perl6maven.com is more appropriate place. | 19:28 | |
19:32
zakharyas joined,
p6bannerbot sets mode: +v zakharyas
19:38
patrickb left
|
|||
AlexDaniel | squashable6: status | 19:45 | |
squashable6 | AlexDaniel, ๐๐ SQUASHathon is in progress! The end of the event in โ16 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/5056608bab2e639a6e...d7dc99b3c7 | |||
AlexDaniel | come on folks, don't miss the opportunity to win plush camelia :) | ||
1. Pick a ticket github.com/rakudo/rakudo/issues?q=...testneeded | 19:46 | ||
2. submit a PR with tests | |||
3. ??? | |||
you know :) | |||
19:48
jonathon joined,
p6bannerbot sets mode: +v jonathon
|
|||
jonathon | hi! random question which i can't find the right search phrase for... what determines what goes into the /usr/share/perl6/{site,vendor} directories? that is, what's the difference between site and vendor? | 19:49 | |
squashable6 | ๐ Altai-man++ wrote a comment on โMatch.^roles does not behaveโ: github.com/rakudo/rakudo/issues/24...-451685443 | 19:50 | |
๐๐๐ First contribution by Altai-man++! โฅ | |||
Kaiepi | how do i debug this? hastebin.com/jomuyiheda.sql | ||
ohh squashathon! | |||
haven't participated in a while | |||
what's the theme this time? | |||
koto | testneeded tickets of rakudo, I believe | 19:51 | |
koto tries to keep his head from exploding caused by a bunch of possibly recursive types possible representations | 19:52 | ||
jonathon | ah, i think it's covered here for perl5: www.debian.org/doc/packaging-manua...kages.html ; I think distro packages put stuff into vendor | 19:53 | |
AlexDaniel | Kaiepi: yeah! Testneeded | ||
19:56
vrurg joined
19:57
p6bannerbot sets mode: +v vrurg
20:05
jme` joined
20:06
p6bannerbot sets mode: +v jme`
|
|||
squashable6 | ๐ AlexDaniel++ closed issue โMiscompilation (optimization) of chain opsโ: github.com/rakudo/rakudo/issues/1886 | 20:10 | |
๐ Kaiepi++ opened pull request โAdd tests for R#2143โ: github.com/perl6/roast/pull/508 | 20:17 | ||
๐๐๐ First contribution by Kaiepi++! โฅ | |||
synopsebot | R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U | ||
20:19
lizmat left,
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
squashable6 | ๐ AlexDaniel++ closed issue โSEGV with QAST tree in core Actionsโ: github.com/rakudo/rakudo/issues/1374 | 20:21 | |
๐ jonathanstowe++ wrote a comment on โMatch.^roles does not behaveโ: github.com/rakudo/rakudo/issues/24...-451687535 | |||
๐๐๐ First contribution by jonathanstowe++! โฅ | |||
AlexDaniel | Kaiepi: hmm what's the difference between it and github.com/perl6/roast/pull/456 ? | 20:23 | |
Kaiepi: according to ugexe++: โTest against %?RESOURCES, not Distribution::Resources.โ | 20:25 | ||
squashable6 | ๐ ugexe++ wrote a comment on โAdd tests for R#2143โ: github.com/perl6/roast/pull/508#is...-451687733 | ||
synopsebot | R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U | ||
AlexDaniel | Kaiepi: note that it is actually good, as we'll be able to close both the ticket and that PR | 20:26 | |
just figure out what exactly should be done with it | |||
Kaiepi: maybe this test should be added to github.com/rakudo/rakudo/tree/master/t ? | |||
20:29
mowcat joined
|
|||
Kaiepi | sure | 20:30 | |
20:30
p6bannerbot sets mode: +v mowcat
|
|||
Kaiepi | where would i add the test in rakudo? | 20:31 | |
squashable6 | ๐ Kaiepi++ wrote a comment on โAdd tests for R#2143โ: github.com/perl6/roast/pull/508#is...-451688117 | ||
synopsebot | R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U | ||
20:31
marmor left
|
|||
squashable6 | ๐ Kaiepi++ closed pull request โAdd tests for R#2143โ: github.com/perl6/roast/pull/508 | 20:31 | |
AlexDaniel | Kaiepi: maybe t/02-rakudo/99-misc.t | 20:36 | |
squashable6 | ๐ Kaiepi++ opened pull request โAdd tests for R#2143โ: github.com/rakudo/rakudo/pull/2585 | 20:37 | |
synopsebot | R#2143 [open]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U | ||
Kaiepi | oh i'll move it there then | ||
AlexDaniel | that works too | ||
20:38
telex left
|
|||
AlexDaniel | Kaiepi: `use v6.d;` is probably not needed in the file | 20:38 | |
squashable6 | ๐ Kaiepi++ synchronize pull request โAdd tests for R#2143โ: github.com/rakudo/rakudo/pull/2585 | ||
AlexDaniel | Alright, good! | 20:39 | |
buggable: pizza Kaiepi | |||
buggable | Kaiepi, enjoy this slice of Hawaiian pizza, my friend! Yummy ๐ | ||
Kaiepi | thank | 20:40 | |
squashable6 | ๐ lizmat++ closed issue โCan't .gist/.Str/.perl Distribution::Resource:Uโ: github.com/rakudo/rakudo/issues/2143 | ||
๐ lizmat++ merged pull request โAdd tests for R#2143โ: github.com/rakudo/rakudo/pull/2585 | |||
synopsebot | R#2143 [closed]: github.com/rakudo/rakudo/issues/2143 [Hacktoberfest][easy to resolve][good first issue][testneeded] Can't .gist/.Str/.perl Distribution::Resource:U | ||
squashable6 | ๐ lizmat++ wrote a comment on โAdd tests for R#2143โ: github.com/rakudo/rakudo/pull/2585...-451688714 | ||
20:40
Cabanoss- joined
20:41
telex joined
|
|||
squashable6 | ๐ AlexDaniel++ wrote a comment on โAdd tests for #2143, Distribution::Resource.^mroโ: github.com/perl6/roast/pull/456#is...-451688759 | 20:41 | |
๐ AlexDaniel++ closed pull request โAdd tests for #2143, Distribution::Resource.^mroโ: github.com/perl6/roast/pull/456 | |||
20:41
p6bannerbot sets mode: +v Cabanoss-,
p6bannerbot sets mode: +v telex
|
|||
AlexDaniel | squashable6: status | 20:42 | |
squashable6 | AlexDaniel, ๐๐ SQUASHathon is in progress! The end of the event in โ15 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/b8f74e3ea386f0f65b...af4e0126a3 | |||
20:42
Cabanossi left
20:47
lichtkind joined
20:48
p6bannerbot sets mode: +v lichtkind
|
|||
rindolf | so many pizzaz | 21:00 | |
ah squashathon | 21:01 | ||
perhaps i'll try my build script now | |||
21:02
mowcat left
21:05
TreyHarris left
21:09
kensanata left
21:10
moony left
21:15
moony joined,
p6bannerbot sets mode: +v moony
|
|||
rindolf | AlexDaniel: the script reported success | 21:15 | |
21:16
pmurias left
|
|||
Kaiepi | anyone on linux wanna run something for me real quick? | 21:16 | |
AlexDaniel | rindolf: hmmm, which script is that? #outoftheloop | ||
Kaiepi: depends, what is it? | |||
Kaiepi | short c program | ||
hastebin.com/iqavefuwup.cpp | |||
i need to know if the values are different so my code can be portable | |||
AlexDaniel | SO_OOBINLINE = a | 21:17 | |
SOL_SOCKET = 1 | |||
Kaiepi | yep, they're different | ||
thanks | |||
rindolf | AlexDaniel: github.com/shlomif/rakudo-git-master-install | ||
AlexDaniel | rindolf: btw there's also this github.com/skaji/p6env/ | 21:18 | |
21:18
jonathon left
|
|||
Kaiepi | m: say $*VM.osname | 21:19 | |
camelia | linux | ||
rindolf | AlexDaniel: nice | 21:21 | |
21:26
tedkat joined,
p6bannerbot sets mode: +v tedkat
|
|||
Kaiepi | Missing or wrong version of dependency 'gen/moar/CORE.d.setting' (from '/home/morfent/Documents/p6-Net-Telnet/lib/Net/Telnet/Chunk.pm6 (Net::Telnet::Chunk)') | 21:26 | |
? | |||
timotimo | rakudo not completely installed perhaps | ||
Kaiepi | ah | ||
i'll try reinstalling | |||
timotimo | otherwise you can always nuke all precomps you can find ;) | 21:27 | |
21:29
tedkat left
21:31
moony left
|
|||
Kaiepi | reinstalling didn't work, neither did nuking precomp files | 21:32 | |
21:32
scovit joined
21:33
p6bannerbot sets mode: +v scovit
|
|||
scovit | Hello, it is possible to export symbols from a module that are imported from another module (and still be able to "use" both modules in the importing script)? | 21:34 | |
Trying to workaround this: Cannot import symbol Pointer from Robba::Buona, because it already exists in this lexical scope | 21:35 | ||
Kaiepi | oh i missed some precomp files | ||
it works now | |||
scovit | so that the user does not need to 'use NativeCall' just to get Pointer | ||
and I do not have to define tens of opaque types | 21:36 | ||
21:36
moony joined,
p6bannerbot sets mode: +v moony
|
|||
scovit | I guess that the answer is not.. what would be the idiomatic way to do that? | 21:37 | |
21:38
domidumont left
|
|||
scovit | class NativeAny is repr("CPointer") | 21:39 | |
and then s/Pointer/NativeAny/g ? | 21:40 | ||
koto | I may be wrong, but likely not. Transitive import doesn't work in turn to be able to use different versions of the same module at the same time. But you can write a `sub EXPORT`(you can look it up on docs site) where you can manually re-export needed symbols. | ||
scovit | I am doing it with sub EXPORT | ||
koto | oh | ||
zachk | does s///g not work in perl6? | ||
scovit | koto: the problem is that the used module would neet to check if the symbol is already thre | 21:41 | |
before exporting, to make it work | |||
(and trust that it is the right symbol) | |||
koto | cannot help with this one, sorry. :( | 21:42 | |
scovit | thanks for replying :) | 21:43 | |
it seems to me that it is like this by design and for some reason | |||
timotimo | zachk: it's supposed to :) | 21:45 | |
what issue are you facing? | 21:46 | ||
zachk | S/l/r/g given "hello" | 21:47 | |
Unsupported use of /g; in Perl 6 please use :g | |||
AlexDaniel | m: say S:g/l/r/ given "hello" | ||
camelia | herro | ||
Altreus | I've had to reinstall my OS and recovered my home dir, so I have the same $PATH and all my perl6 files, but I suspect I'm missing something at the system level because this happens gist.github.com/Altreus/c7fb5ab155...9604c85a96 | 21:50 | |
perl6 itself seems to work | 21:51 | ||
it seems to happen regardless of what I try to install | 21:59 | ||
lizmat | Altreus: perhaps some port blocking ? | 22:01 | |
Altreus | I can access the URLs from the browser | ||
lizmat | weird | ||
Altreus | the warning on the first line seems weird | ||
since @names doesn't appear on that line | 22:02 | ||
or in that file | |||
lizmat | well, then you may have an older zef installed somewhere still ? | ||
Altreus | rerunning make install in my rakudo build dir | 22:04 | |
/home/altreus/perl6 -> /home/altreus/rakudo/rakudo-star-2018.04/install | 22:05 | ||
so both perl6 and zef are pointing to the same perl6 dir | |||
Is it entirely self-contained or is it expecting something to exist? | |||
hmmm | |||
scovit | Is there a way to compose different pieces in a module? The way you do on Classes with Roles? | 22:11 | |
lizmat is not sure | |||
scovit: not sure what you mean | |||
scovit | module B { our sub ciao { } }; module A is B { }, and then you can do A::ciao | 22:12 | |
Altreus | This has a test failure in LWP::Simple:ver<1.0.1> because IO::Socket::SSL is not installed | ||
scovit | is it possible? | 22:13 | |
Altreus | it's the same 2018.04 I've had since ages ago so I'm guessing it fetched it from cpan | ||
scovit | since right now I find myself using class methods (not instance methods) because I dont know how to achieve that | 22:14 | |
lizmat | scovit: no, because "is" is about object inheritance | ||
not about subs that happen to exist in a class | |||
scovit | this seems like a more complex task than what I am trying to achieve | 22:15 | |
what I mean is that I know how to do something complex (inheritance) but not something simple (putting toghether functions) | |||
22:16
vrurg left
|
|||
lizmat | m: class A { our sub a() { 42 } }; class B { our constant &a = &A::a }; say B::a # closest thing | 22:16 | |
camelia | 42 | ||
scovit | m: module A { our sub a() { 42 } }; module B { our constant &a = &A::a }; say B::a | 22:17 | |
camelia | 42 | ||
scovit | Ok; not bad | ||
:) | |||
just a bit redundant but more explicit, might be better | |||
Altreus | hum reinstalling worked | 22:19 | |
wonder what changed | |||
oh well :) | |||
masak | m: say 9999999999999999.0 - 9999999999999998.0 # geocar.sdf1.org/numbers.html | 22:20 | |
camelia | 1 | ||
22:33
lichtkind left
|
|||
Kaiepi | how do i look up an our sub in a package using a variable? | 22:35 | |
i tried Pkg::Name::{$foo} but that doesn't work | |||
never mind, Pkg::Name::($foo) works | 22:37 | ||
koto | m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; Pkg::Name::{$a}; | 22:38 | |
camelia | ( no output ) | ||
koto | m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; Pkg::Name::{$a}(); | 22:39 | |
camelia | Cannot find method 'Any' on object of type List in block <unit> at <tmp> line 1 |
||
22:39
zakharyas left
|
|||
koto gives up | 22:39 | ||
timotimo | m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; Pkg::Name::($a)() | 22:40 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Combination of indirect name lookup and call not supported at <tmp>:1 ------> 3} }; my $a = 'ehehe'; Pkg::Name::($a)()7โ5<EOL> |
||
timotimo | m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; (&Pkg::Name::($a))() | ||
camelia | 1 | ||
timotimo | m: package Pkg::Name { our sub ehehe { 1.say } }; my $a = 'ehehe'; (Pkg::Name::($a))() | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Combination of indirect name lookup and call not supported at <tmp>:1 ------> 3 } }; my $a = 'ehehe'; (Pkg::Name::($a)7โ5)() expecting any of: argument list |
||
timotimo | needs the & it seems like | ||
koto | Kaiepi, ^ | ||
timotimo++ | |||
Kaiepi | yeah it does need the & | 22:47 | |
i left that out | |||
SmokeMachine | Is anyone planning to write a wrapper for this? gcc.gnu.org/onlinedocs/jit/index.html | 23:03 | |
lizmat | looks interesting | 23:07 | |
SmokeMachine | Yes... it does... | 23:11 | |
Altreus | what's the right module for making paths absolute? | 23:12 | |
SmokeMachine | Iโm thinking of using it to compile binaries with this: github.com/FCO/bernalang | 23:14 | |
(Just studying, nothing serious) | |||
Altreus | File::Path::Resolve maybe | 23:16 | |
squashable6 | ๐ bbkr++ opened issue โHash.pick is very slow on big hashes.โ: github.com/rakudo/rakudo/issues/2586 | 23:19 | |
๐๐๐ First contribution by bbkr++! โฅ | |||
koto | m: my $a = Metamodel::EnumHOW.new_type(name => 'Foo', base_type => Int); $a.^add_enum_value((One => 1)); $a.^add_role(Enumeration); $a.^add_role(NumericEnumeration); $a.^compose; say $a::One; | 23:32 | |
camelia | (Any) | 23:33 | |
koto | it is based on stackoverflow.com/questions/470334...-in-perl-6 | ||
but the answer doesn't explain a way to use an enum value... | |||
m: my $a = Metamodel::EnumHOW.new_type(name => 'Foo', base_type => Int); $a.^add_enum_value((One => 1)); $a.^add_role(Enumeration); $a.^add_role(NumericEnumeration); $a.^compose; $a.^enum_values.say; | 23:35 | ||
camelia | {One => 1} | ||
buggable | New CPAN upload: Net-BGP-0.0.3.tar.gz by JMASLAK modules.perl6.org/dist/Net::BGP:cpan:JMASLAK | ||
scovit | Cannot invoke this object (REPR: Null; VMNull) | 23:37 | |
what to do? | |||
I'm probably doing something silly.. | 23:38 | ||
23:39
evalable6 left
|
|||
koto | scovit, the best thing will be probably to try to golf your code into a small reproducible chunk and open an issue at github.com/rakudo/rakudo/issues | 23:40 | |
23:41
evalable6 joined,
p6bannerbot sets mode: +v evalable6
|
|||
scovit | sure koto | 23:42 | |
koto | at least I see a bunch of tickets with this error message in various states. :) | ||
scovit, thanks for reporting! | |||
23:44
Matthew[m] is now known as matthew[m]
23:47
koto is now known as sena_kun
|
|||
lucs | Altreus: Maybe IO::Path::absolute can do what you need? | 23:50 | |
Altreus | ah yes! | 23:59 | |
But I've gone with File::Path::Resolve because it'll canonicalise the path roo | |||
too |