»ö« 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
Herby_ left
00:01
Summertime left,
Summertime joined,
p6bannerbot sets mode: +v Summertime
00:03
mcmillhj left
00:09
rindolf left
00:15
avar left,
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
00:16
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
p6bannerbot sets mode: +v aborazmeh,
p6bannerbot sets mode: +v avar,
p6bannerbot sets mode: +v aborazmeh
00:20
lizmat left
00:21
mahafyi left
00:24
MasterDuke left
00:29
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
00:33
mcmillhj left
00:34
regreg left
00:35
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke,
regreg joined
00:36
p6bannerbot sets mode: +v regreg
00:39
Summertime left
01:32
ilogger2 joined,
ChanServ sets mode: +v ilogger2
01:33
p6bannerbot sets mode: +v ilogger2
01:36
molaf joined
01:37
p6bannerbot sets mode: +v molaf,
chenyf_ joined
01:38
p6bannerbot sets mode: +v chenyf_
01:48
Guest33092 joined,
p6bannerbot sets mode: +v Guest33092
01:52
mcmillhj joined,
graphene joined,
p6bannerbot sets mode: +v mcmillhj
01:53
p6bannerbot sets mode: +v graphene
01:56
mcmillhj left
02:11
mcmillhj joined
02:12
p6bannerbot sets mode: +v mcmillhj
02:15
ufobat_ joined,
p6bannerbot sets mode: +v ufobat_,
mcmillhj left
02:16
imcsk8 joined
02:17
p6bannerbot sets mode: +v imcsk8
02:40
mcmillhj joined
02:41
p6bannerbot sets mode: +v mcmillhj
02:44
Stummi1 joined
02:45
mcmillhj left
02:49
Stummi1 left,
avar joined,
p6bannerbot sets mode: +v avar
02:54
mcmillhj joined
02:55
p6bannerbot sets mode: +v mcmillhj
02:59
mcmillhj left
03:05
khisanth_ joined,
epony joined,
p6bannerbot sets mode: +v epony
03:06
p6bannerbot sets mode: +v khisanth_
03:24
mcmillhj joined
03:25
p6bannerbot sets mode: +v mcmillhj
03:28
bobstone20 joined
03:29
mcmillhj left
03:32
ggoebel joined,
p6bannerbot sets mode: +v ggoebel
03:33
bobstone20 left
03:39
mcmillhj joined
03:40
p6bannerbot sets mode: +v mcmillhj
03:43
mcmillhj left
04:02
graphene left
04:04
graphene joined,
p6bannerbot sets mode: +v graphene
04:10
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
04:14
graphene left
04:15
mcmillhj left
04:16
graphene joined
04:17
p6bannerbot sets mode: +v graphene
04:26
mcmillhj joined
04:27
p6bannerbot sets mode: +v mcmillhj
04:31
mcmillhj left
04:34
huf joined
04:35
p6bannerbot sets mode: +v huf
04:42
vrurg joined
04:43
p6bannerbot sets mode: +v vrurg
04:44
huf left
04:46
huf joined,
p6bannerbot sets mode: +v huf
04:50
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
04:55
mcmillhj left
04:59
graphene left
05:01
graphene joined,
p6bannerbot sets mode: +v graphene
05:03
mcmillhj joined
05:04
p6bannerbot sets mode: +v mcmillhj
05:06
vrurg left
05:08
mcmillhj left
05:11
{^_^}21 joined
05:14
{^_^}21 left
|
|||
perlawhirl | join /vega | 05:21 | |
oops :D | |||
05:30
koirishima25 joined
05:31
lin joined
05:32
p6bannerbot sets mode: +v lin
05:33
mcmillhj joined
05:34
p6bannerbot sets mode: +v mcmillhj
05:38
koirishima25 left
05:39
mcmillhj left
05:47
mcmillhj joined,
p6bannerbot sets mode: +v mcmillhj
05:50
lin left
05:51
mcmillhj left
05:57
sauvin joined,
p6bannerbot sets mode: +v sauvin
06:02
kaare_ joined
06:03
p6bannerbot sets mode: +v kaare_
06:04
lin joined,
p6bannerbot sets mode: +v lin
06:08
psychoslave joined
06:09
p6bannerbot sets mode: +v psychoslave
06:16
mcmillhj joined
06:17
p6bannerbot sets mode: +v mcmillhj
06:18
lin left
06:22
mcmillhj left
06:27
lin joined
06:28
p6bannerbot sets mode: +v lin
06:30
mcmillhj joined
06:31
p6bannerbot sets mode: +v mcmillhj
06:33
rindolf joined
06:34
p6bannerbot sets mode: +v rindolf,
mcmillhj left
06:35
lin left
06:46
eightyeight18 joined
06:47
ToddAndMargo joined,
p6bannerbot sets mode: +v ToddAndMargo
|
|||
ToddAndMargo | Hi, I need hash help! p6 'my Str %x=("Jan"=>"01", "Feb"=>"02"); my Str $z="Jan"; my $y =%x<"$z">; say "$y";' Use of uninitialized value $y of type Str in string context. Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. in block <unit> at -e line 1 | 06:47 | |
06:48
eightyeight18 left
|
|||
ToddAndMargo | figured it out. `my $y =%x<<$z>>` did the trick. What did I just do? | 06:49 | |
06:50
jmerelo joined
06:51
p6bannerbot sets mode: +v jmerelo,
lin joined
06:52
p6bannerbot sets mode: +v lin,
rindolf left
06:55
sarna joined
06:56
p6bannerbot sets mode: +v sarna
|
|||
sarna | o/ | 06:56 | |
ToddAndMargo | I will ask over on the mailing list | ||
06:56
ToddAndMargo left
07:05
mcmillhj joined
07:06
p6bannerbot sets mode: +v mcmillhj,
rindolf joined
07:07
p6bannerbot sets mode: +v rindolf
07:10
mcmillhj left
07:13
daxim joined
07:14
p6bannerbot sets mode: +v daxim
07:24
mcmillhj joined
07:25
psychoslave left,
p6bannerbot sets mode: +v mcmillhj
07:29
mcmillhj left
|
|||
tadzik | a bit offtopic, but how do I unsubscribe from perl6-users@? I tried both the address in the email header (List-Unsubscribe: <mailto:perl6-users-unsubscribe@perl.org> | 07:37 | |
) and sending "unsubscribe" the old fashioned way, neither worked :/ | |||
07:39
sena_kun joined
07:40
p6bannerbot sets mode: +v sena_kun
07:54
lizmat joined
|
|||
jmerelo | tadzik: may I ask why? | 07:54 | |
tadzik: also, you might try the web, I guess. | 07:55 | ||
07:55
p6bannerbot sets mode: +v lizmat
|
|||
tadzik | jmerelo: I'm not reading it anymore :) | 08:05 | |
and the traffic is way, way denser than when I was signing up | |||
jmerelo | tadzik: yep, that's true | ||
tadzik | lists.perl.org/list/perl6-users.html it just says to send an appropriate email. Hrm | 08:06 | |
buggable | New CPAN upload: Tuple-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/Tuple:cpan:ELIZABETH | 08:24 | |
New CPAN upload: P5tie-0.0.11.tar.gz by ELIZABETH modules.perl6.org/dist/P5tie:cpan:ELIZABETH | |||
08:31
avar left
08:32
CodeStulle8 joined
08:33
CodeStulle8 left
08:39
othe joined
08:41
othe left
08:45
Putonlalla6 joined
08:48
Putonlalla6 left,
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
08:49
p6bannerbot sets mode: +v avar
|
|||
Xliff | m: enum A ( a => 1, b, c, d ); | 09:09 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routines: b used at line 1 c used at line 1 d used at line 1 |
||
Xliff | Is there a form of enum where I can just set the starting value? | 09:10 | |
m: enum A <a(1) b c> | 09:14 | ||
camelia | ( no output ) | ||
Xliff | m: enum A <a(1) b c>; A.enums.say | ||
camelia | Map.new((a(1) => 0, b => 1, c => 2)) | ||
Xliff | m: enum A <a<<1>> b c>; A.enums.say | ||
camelia | Map.new((a<<1>> => 0, b => 1, c => 2)) | ||
Xliff | m: enum A <a b c>; A.enums.say | ||
camelia | Map.new((a => 0, b => 1, c => 2)) | ||
Xliff | m: enum A (a b c); A.enums.say | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routines: a used at line 1 b used at line 1 c used at line 1 |
||
Xliff | m: enum A (a, b, c); A.enums.say | 09:15 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routines: a used at line 1 b used at line 1 c used at line 1 |
||
Xliff | m: enum A (a, 'b', 'c'); A.enums.say | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: a used at line 1 |
||
Xliff | m: enum A (a => 1, 'b', 'c'); A.enums.say | ||
camelia | Map.new((a => 1, b => 2, c => 3)) | ||
Xliff | Whelp! There's that. | 09:16 | |
09:17
molaf left
|
|||
Geth | doc: 8a071774ed | (JJ Merelo)++ | doc/Type/Signature.pod6 Eliminates reference to future plans And changed it to an advice to use the pointy arrow instead. If it eventually is eliminated, we'll have to change the docs accordingly. Refs rakudo/rakudo#2274 |
09:39 | |
synopsebot | Link: doc.perl6.org/type/Signature | ||
synopsebot | RAKUDO#2274 [closed]: github.com/rakudo/rakudo/issues/2274 Future removal of returns? | ||
09:42
ryzokuken__ joined,
hamhu3 joined,
p6bannerbot sets mode: +v hamhu3
|
|||
Geth | doc: 92a6c1fa79 | (Elizabeth Mattijsen)++ | 3 files Document the Positional/Associative .STORE method |
09:44 | |
09:46
ryzokuken__ left
09:50
hamhu3 left
09:51
hamhu3 joined
09:52
p6bannerbot sets mode: +v hamhu3
09:53
hamhu3 left
09:54
hamhu3 joined
09:55
p6bannerbot sets mode: +v hamhu3
09:56
hamhu3 left
09:57
hamhu3 joined
09:58
p6bannerbot sets mode: +v hamhu3
10:01
hamhu3 left,
hamhu3 joined
10:02
p6bannerbot sets mode: +v hamhu3
10:06
sotona joined,
p6bannerbot sets mode: +v sotona
10:07
hamhu3 left
10:10
NAABJBE joined
10:13
hamhu3 joined,
p6bannerbot sets mode: +v hamhu3
10:15
patrickz joined,
p6bannerbot sets mode: +v patrickz
10:16
hamhu3 left,
hamhu3 joined
10:17
p6bannerbot sets mode: +v hamhu3
10:27
lizmat_ joined,
psychoslave joined,
p6bannerbot sets mode: +v lizmat_
10:28
p6bannerbot sets mode: +v psychoslave
|
|||
Geth | doc: a184c610b7 | (JJ Merelo)++ | doc/Language/operators.pod6 Adds a section on the identity operator Which refs #2129. Missing is a link from where this is used. |
10:28 | |
synopsebot | Link: doc.perl6.org/language/operators | ||
Geth | doc: f4f3422820 | (JJ Merelo)++ | doc/Type/Associative.pod6 Trailing whitespace |
||
synopsebot | Link: doc.perl6.org/type/Associative | ||
doc: 603a7fbfcc | (JJ Merelo)++ | 2 files Adds links, rewrites, fixes errors, closes #2129 |
|||
10:29
lizmat left
|
|||
Geth | doc: 2c8dd2b0da | (Elizabeth Mattijsen)++ | doc/Language/variables.pod6 Replace mention of "container type" by "type of variable" If you sav "my %h is Bag", your changing the type of the "%h" variable, which is *not* a container (aka, not a Scalar, Proxy or xxLexRef). |
10:43 | |
synopsebot | Link: doc.perl6.org/language/variables | ||
10:43
lizmat_ is now known as lizmat
10:51
sarna left
11:00
chenyf_ left
11:19
sotona left
11:44
jmerelo left
11:50
zakharyas joined
11:51
p6bannerbot sets mode: +v zakharyas
12:03
zakharyas left
12:04
zakharyas joined
12:05
p6bannerbot sets mode: +v zakharyas
12:06
zakharyas left
12:09
zakharyas joined
12:10
p6bannerbot sets mode: +v zakharyas
12:11
lin left
12:18
sotona joined
12:19
p6bannerbot sets mode: +v sotona
12:20
kaare_ left
12:22
sotona left
12:27
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
p6bannerbot sets mode: +v aborazmeh
12:28
p6bannerbot sets mode: +v aborazmeh
12:32
psychoslave left
12:35
Technaton left,
Technaton joined
12:36
p6bannerbot sets mode: +v Technaton
12:40
psychoslave joined
12:41
p6bannerbot sets mode: +v psychoslave
12:43
psychoslave left
12:50
zakharyas left
13:08
kerframil joined,
p6bannerbot sets mode: +v kerframil
13:11
leont joined,
p6bannerbot sets mode: +v leont
|
|||
leont | I'm observing that MAIN_HELPER has gained a mandatory position argument. | 13:14 | |
13:17
ZzZombo_ joined,
p6bannerbot sets mode: +v ZzZombo_,
chenyf_ joined
13:18
p6bannerbot sets mode: +v chenyf_
|
|||
leont | Ah, I think I found the cause. | 13:18 | |
84d45f07fb4a6b08f0acb8ac15e0e4da80b7f3f3 | 13:19 | ||
But adding a mandatory argument *at the front* does make it hard to write code that works before and after this change | |||
13:19
ZzZombo_ is now known as ZzZombo
13:22
grondilu joined,
p6bannerbot sets mode: +v grondilu
|
|||
leont | This rather breaks every serious Getopt implementation out there | 13:23 | |
13:28
vike1 joined,
Zoffix joined,
p6bannerbot sets mode: +v Zoffix
|
|||
Zoffix | leont: well, as far as users are concerned, there's no MAIN_HELPER. It should really be called RAKUDO_INTERNALS_MAIN_HELPER | 13:28 | |
13:28
p6bannerbot sets mode: +v vike1
|
|||
Zoffix | I don't know why we're being lazy with respect to all these private subs | 13:29 | |
leont | Sure, but given that there isn't any non-internal way to do this, I would still like it to keep working. | 13:30 | |
Now working around it with a multi, but it's a bit unfortunate. | |||
Zoffix | leont: "do this" is do what? | ||
leont | Install a different argument parser | ||
Zoffix | leont: and basically replace the MAIN_HELPER with a new sub? | 13:31 | |
leont | Yeah. I'm not even the first to do that. | 13:32 | |
Zoffix | Filed R#2279 if you have some example of what people are doing linked on that issue, to have a better idea of what the feature meant to allow that'd be great. | 13:36 | |
synopsebot | R#2279 [open]: github.com/rakudo/rakudo/issues/2279 [RFC] Make it easier to set up custom argument parsers | ||
Zoffix | c: 2017.12,HEAD $*PERL.compiler.version before v2018.06.271.g.84.d.45.f.07.f ?? ::('&MAIN_HELPER')() !! ::('&MAIN_HELPER')(0) | 13:38 | |
committable6 | Zoffix, ¦2017.12,HEAD(ed9b48d): «» | ||
Zoffix | That's probably a viable workaround to call MAIN_HELPER in the meantime before and after that commit that modified it sig | ||
There's no way to find caller's language version tho, so if the user is using 6.d that (0) would normally be (1), but you'd still be setting it to 0 | 13:39 | ||
13:41
Zoffix left
13:42
hamhu3 left
13:55
patrickz left
|
|||
Geth | doc: bfe8f2d292 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO/Special.pod6 Change IO::Special.what to be docced as `method` Otherwise it's missing from search results |
13:58 | |
synopsebot | Link: doc.perl6.org/type/IO::Special | ||
14:01
hamhu3 joined,
p6bannerbot sets mode: +v hamhu3
14:03
hamhu3_ joined,
p6bannerbot sets mode: +v hamhu3_
14:04
regreg joined
14:05
p6bannerbot sets mode: +v regreg,
avar left,
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar,
hamhu3 left,
vike1 left
14:06
p6bannerbot sets mode: +v avar
|
|||
Geth | ¦ whateverable: AlexDaniel unassigned from MasterDuke17 Issue Failing bitrotted tests github.com/perl6/whateverable/issues/340 | 14:16 | |
El_Che | releasable6: status | 14:17 | |
releasable6 | El_Che, Next release in ≈4 hours. 1 blocker. 1 out of 105 commits logged (⚠ 47 warnings) | ||
El_Che, Details: gist.github.com/ba2ae789cca7a10afd...fbb78f2df1 | |||
AlexDaniel | that one is resolved, most likley | ||
14:18
aborazmeh left,
graphene left
|
|||
AlexDaniel | releasable6: status | 14:18 | |
releasable6 | AlexDaniel, Next release in ≈4 hours. 0 blockers. 1 out of 105 commits logged (⚠ 47 warnings) | ||
AlexDaniel | :) | ||
releasable6 | AlexDaniel, Details: gist.github.com/4ed1e760fa873aca99...f6e1936fdd | ||
14:20
graphene joined,
vike1 joined
14:21
p6bannerbot sets mode: +v graphene,
p6bannerbot sets mode: +v vike1
14:25
ZzZombo left
14:26
ZzZombo joined,
p6bannerbot sets mode: +v ZzZombo
14:29
Sgeo__ joined
14:30
p6bannerbot sets mode: +v Sgeo__
|
|||
El_Che | AlexDaniel: :) | 14:30 | |
14:30
thundergnat joined
14:31
p6bannerbot sets mode: +v thundergnat
|
|||
thundergnat | m: say (11**5, */-2 … 0)[30] | 14:32 | |
camelia | 0.00014999043 | ||
thundergnat | m: say (11**5, */-2 … 0)[31] | ||
camelia | (signal FPE) | ||
thundergnat | core dump? | 14:33 | |
El_Che | floating-point exception? | ||
14:34
Sgeo__ left
|
|||
thundergnat | Yep, but why? Not THAT small a number. | 14:34 | |
Seems to be related to dividing by a negative number | 14:35 | ||
m: say (11**5, */2 … 0)[31] | |||
camelia | 0.00007499522 | ||
AlexDaniel | wtf :D | ||
thundergnat | m: say (11**5, */2 … 0)[64] | 14:36 | |
camelia | 8.730592204048149e-15 | ||
thundergnat | Not really a problem for me, I just stumbled across this while doing other things. | ||
AlexDaniel | bisect: say (11**5, */-2 … 0)[31] | ||
bisectable6 | AlexDaniel, Bisecting by exit signal (old=2015.12 new=ed9b48d). Old exit signal: 0 (None) | ||
AlexDaniel, bisect log: gist.github.com/d4c7bd72849f2da7f9...85e5cbe2c5 | |||
AlexDaniel, (2017-09-10) github.com/rakudo/rakudo/commit/9b...88e2eb331f | |||
lizmat stumbled on this yesterday, in Perl 5: my @a = 0 .. 2**61 - 1 (segfault) | 14:37 | ||
actually, lose the -1 :-) | |||
\ | |||
AlexDaniel | panic: memory wrap at -e line 1. | ||
or | 14:38 | ||
Out of memory! | |||
panic: gen_constant_list JMPENV_PUSH returned 2 at -e line 1. | |||
c: 9b42484a5d0ca^ say (11**5, */-2 … 0)[31] | |||
committable6 | AlexDaniel, ¦9b42484a5d0ca^: «-0.00007499522» | ||
AlexDaniel | c: 9b42484a5d0ca^ say (11**5, */-2 … 0)[50] | ||
committable6 | AlexDaniel, ¦9b42484a5d0ca^: «0.00000000014304202» | ||
AlexDaniel | c: 9b42484a5d0ca^ say (11**5, */-2 … 0)[51] | ||
committable6 | AlexDaniel, ¦9b42484a5d0ca^: «-0.00000000007152101» | ||
AlexDaniel | c: 9b42484a5d0ca^ say (11**5, */-2 … 0)[99] | 14:39 | |
committable6 | AlexDaniel, ¦9b42484a5d0ca^: «-2.54093675293498e-25» | ||
AlexDaniel | thundergnat: can you file a ticket? | ||
thundergnat | AlexDaniel: Sure | ||
AlexDaniel | is it this commit? github.com/MoarVM/MoarVM/commit/2b7ecb92 | 14:40 | |
unlikely | 14:41 | ||
which one then… I'm blind | |||
thundergnat | Issue submitted R#2280 | 14:53 | |
synopsebot | R#2280 [open]: github.com/rakudo/rakudo/issues/2280 Core dump in sequence when iterator is dividing by a negative number | ||
AlexDaniel | j: say (11**5, */-2 … 0)[31] | 14:55 | |
camelia | -0.00007499522 | ||
15:01
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
15:04
hamhu3_ left,
hamhu3 joined
15:05
p6bannerbot sets mode: +v hamhu3
15:08
sena_kun left
15:09
sena_kun joined,
p6bannerbot sets mode: +v sena_kun
15:10
grondilu left
15:11
Dollah joined
15:12
p6bannerbot sets mode: +v Dollah
|
|||
Dollah | hi | 15:14 | |
can i ask | |||
what channel can req shell | |||
moritz | can you please rephrase that question? | 15:15 | |
Dollah | i want use znc on irc | ||
where can get | |||
pls help | |||
timotimo | you need a computer that runs znc for you | 15:16 | |
El_Che | wiki.znc.in/ZNC | ||
timotimo | like a server on some vserver host, or there's probably hosters offering znc accounts, or a computer in your cupboard or something like that | ||
15:18
mimododa joined,
p6bannerbot sets mode: +v mimododa
|
|||
mimododa | Hello, Perl | 15:18 | |
15:18
Dollah left
|
|||
mimododa | Is this the place I can ask some basic perl6 questions? | 15:19 | |
15:19
sena_kun left
|
|||
tobs | mimododa: absolutely | 15:20 | |
mst | there are many places where you *can* ask, but this is the place where you *should* :D | 15:21 | |
mimododa | I installed Rokudo latest version using brew install. and I was running the example from docs.perl6.org/language/101-basics in my MacBook; | 15:22 | |
I got some errors: Cannot resolve caller split(Any, Str); Routine does not have any candidates. Is only the proto defined? in block <unit> at wlist.pl line 12 | |||
It seemed my perl6 complained the syntax... | 15:23 | ||
timotimo | actually, it looks like a broken error message for the fact that $result doesn't have the expected contents? | 15:24 | |
m: say Any.split(":") | |||
camelia | Cannot resolve caller split(Any, Str); Routine does not have any candidates. Is only the proto defined? in block <unit> at <tmp> line 1 |
||
timotimo | m: say "Hello:World".split(":") | ||
camelia | (Hello World) | ||
timotimo | m: say Str.split(":") | ||
camelia | Cannot resolve caller split(Str: Str); none of these signatures match: (Str:D: Regex:D $pat, $limit is copy = Inf;; :$v is copy, :$k, :$kv, :$p, :$skip-empty, *%_) (Str:D: Cool $match;; :$v is copy, :$k, :$kv, :$p, :$skip-empty, *%_) … |
||
timotimo | so your input file perhaps doesn't have a | in one of the lines, or maybe it's reading na empty line at the end of the file | 15:25 | |
either way, something like "next without $result" to skip the rest of the code if $result is undefined should help | |||
mimododa | ohhh, let me double check | ||
timotimo | c: 2018.01 say Any.split(":") | 15:26 | |
committable6 | timotimo, ¦2018.01: «Cannot resolve caller split(Any, Str); Routine does not have any candidates. Is only the proto defined? in block <unit> at /tmp/WUf6I_Mf_x line 1 «exit code = 1»» | ||
timotimo | didn't that error change recently? | ||
6c: say Any.split(":") | |||
committable6 | timotimo, gist.github.com/2f111a442d5494d12d...d2a5798fd4 | ||
mimododa | say Any.split(":") Badly placed ()'s. | ||
timotimo | i don't think it's good to have the "is only the proto defined?" error for a sub from the core setting | 15:27 | |
15:29
graphene left
|
|||
mimododa | I just copied and pasted the codes from the tutorial... still my perl6 cannot get correct result | 15:29 | |
15:31
graphene joined,
MilkmanDan left,
p6bannerbot sets mode: +v graphene
|
|||
timotimo | could you put a dd $line, $pairing, $result; after the $p1, $p2 line? | 15:31 | |
then we can see what's going wrong | |||
mimododa | ok, let me try | 15:32 | |
it gets below message: Str $line = "Ana Dave | 3:0" Str $pairing = "Ana Dave" Str $result = "3:0" Str $line = "Charlie Beth | 3:1" Str $pairing = "Charlie Beth" Str $result = "3:1" Str $line = "Ana Beth | 2:3" Str $pairing = "Ana Beth" Str $result = "2:3" Str $line = "Dave Charlie | 3:0" Str $pairing = "Dave Charlie" Str $result = "3:0" Str $line = "Ana Charlie | 3:1" Str $pairing = "Ana Charlie" Str $result = "3:1" Str $line = "Beth | 15:33 | ||
15:33
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
|
|||
mimododa | Str $result = "0:3" Str $line = "" Str $pairing = "" Any $result = Any Cannot resolve caller split(Any, Str); Routine does not have any candidates. Is only the proto defined? in block <unit> at wlist.pl line 15 | 15:33 | |
timotimo | aha, there is indeed an empty line there | 15:34 | |
and that's where it explodes | |||
15:34
Summertime joined,
p6bannerbot sets mode: +v Summertime
|
|||
mimododa | oops, then I should remove the empty line? | 15:34 | |
timotimo | either that, or you can add some condition to reject lines that aren't proper | ||
for example, right after -> $line { you can put "next unless $line.contains('|') && $line.contains(':')" | 15:35 | ||
or "next unless $line.chars > 0" (which can be shortened to just "next unless $line") | |||
which rejects only completely empty lines | |||
and by reject i mean skip processing | 15:36 | ||
mimododa | great!!!! it works! | ||
timotimo | \o/ | ||
mimododa | thanks for the help. | ||
timotimo | maybe something about this should also be added to the tutorial | ||
if you want, you can open a ticket on github; i'll be afk for like half an hour, and if you prefer i can open one then | 15:37 | ||
mimododa | @timotimo great analysis and suggestion. my copy-paste adds an extra blank line | ||
timotimo | it's likely that other users will also experience the same issue you saw | 15:38 | |
mimododa | I am a complete newbie to GitHub... if you are willing to wait for a couple of hours, i can learn to open a ticket ... | ||
15:38
lizmat left
|
|||
timotimo | i have no problem waiting :) | 15:38 | |
see you later! | |||
oh, and there's a link to the right github repository at the very bottom of every page on doc.perl6.org | 15:39 | ||
o/ | |||
mimododa | got it | ||
15:42
mimododa left
|
|||
Geth | doc: ca0e9b7178 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/101-basics.pod6 Harden example script to not crash on blank lines in input colabti.org/irclogger/irclogger_log...09-15#l465 |
15:47 | |
synopsebot | Link: doc.perl6.org/language/101-basics | ||
moritz | PSA: I just did an "apt upgrade" on hack and its HV; if anything is fishy, that might be related | ||
doing the same on WWW too | 15:48 | ||
15:49
jmerelo joined
15:50
p6bannerbot sets mode: +v jmerelo
|
|||
Geth | doc: f9ba0ae8d7 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/101-basics.pod6 Use simpler language for blank line skippage |
15:51 | |
synopsebot | Link: doc.perl6.org/language/101-basics | ||
Xliff | \o | 16:06 | |
Why am I getting this error? | |||
alling callsame(Mu) will never work with declared signature () | |||
at /home/cbwood/Projects/p6-GtkPlus/lib/GTK/Widget.pm6 (GTK::Widget):75 | |||
------> @rb.map({ ⏏callsame($_) }); | |||
16:10
ferret23 joined
16:13
ferret23 left
16:16
grondilu joined,
p6bannerbot sets mode: +v grondilu
|
|||
moritz | Xliff: callsame takes no arguments, afaict | 16:21 | |
it calls the next candidate with the *same* argument list as the current candidate got | |||
hence the "same" in the name | |||
Xliff | Oops! Silly me. | 16:22 | |
Will callwith() start a new dispatch chain through the multis? | 16:23 | ||
moritz | no | 16:24 | |
it continues within the current dispatch chain | |||
docs.perl6.org/routine/callwith | |||
Xliff | OK. I got callwith confused with samewith. All fixed. Thanks. | 16:31 | |
Geth | whateverable: 232fe26a27 | (Aleks-Daniel Jakimenko-Aleksejev)++ | 33 files 💥 Split Whateverable.pm6 into separate files To make some things usable outside of whateverable repo. It made sense to keep everything together when there were just two bots, but now there are 17 and I'd like to reuse some parts for other things without subclassing Whateverable. |
16:43 | |
16:49
sena_kun joined
16:50
p6bannerbot sets mode: +v sena_kun
16:51
MilkmanDan left
16:52
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
16:53
pecastro joined
16:54
p6bannerbot sets mode: +v pecastro
|
|||
thundergnat | .tell grondilu Any chance you could apply the outstanding pull requests to your Modular module? There are Rosetta code tasks that are broken because it won't install. | 17:06 | |
yoleaux | thundergnat: I'll pass your message to grondilu. | ||
Geth | whateverable: d4c92b7f8e | (Aleks-Daniel Jakimenko-Aleksejev)++ | 67 files Make it usable as a module Moves executables to xbin and tests to xt, also adds a “provides” section to META6.json. |
17:11 | |
17:17
Zerant28 joined
17:18
MilkmanDan left,
Zerant28 left
17:19
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
|
|||
Geth | ecosystem: 59d7fdbaa9 | (Aleks-Daniel Jakimenko-Aleksejev)++ | META.list Add Whateverable Also group my modules together. |
17:25 | |
AlexDaniel | eh, oops… | 17:36 | |
Geth | whateverable: 9dd0fcec02 | (Aleks-Daniel Jakimenko-Aleksejev)++ | META6.json Fix paths (Oops!) |
17:40 | |
17:43
graphene left,
zakharyas joined
17:44
grondilu left,
p6bannerbot sets mode: +v zakharyas,
graphene joined
17:45
p6bannerbot sets mode: +v graphene,
domidumont joined
17:46
p6bannerbot sets mode: +v domidumont,
kaare_ joined
17:47
p6bannerbot sets mode: +v kaare_
17:52
chenyf_ left
17:54
kaare__ joined,
p6bannerbot sets mode: +v kaare__
17:57
kaare_ left
18:01
HeTo20 joined,
p6bannerbot sets mode: +v HeTo20,
HeTo20 left
18:07
zakharyas left
18:08
zakharyas joined
18:09
p6bannerbot sets mode: +v zakharyas
18:17
Sgeo joined
18:18
p6bannerbot sets mode: +v Sgeo
18:28
chenyf_ joined
18:29
p6bannerbot sets mode: +v chenyf_
18:30
p6noob joined,
p6bannerbot sets mode: +v p6noob
18:34
graphene left
18:36
graphene joined
18:37
p6bannerbot sets mode: +v graphene
18:40
jmerelo left
18:42
kurahaupo joined
18:43
p6bannerbot sets mode: +v kurahaupo
18:47
lizmat joined
18:48
p6bannerbot sets mode: +v lizmat
18:49
kaare__ left
18:52
bwisti joined,
p6bannerbot sets mode: +v bwisti
19:05
zakharyas left
19:06
zakharyas joined
19:07
p6bannerbot sets mode: +v zakharyas,
idnar4 joined
19:09
xinming_ joined
19:10
idnar4 left,
p6bannerbot sets mode: +v xinming_
19:13
domidumont left
19:21
kerframil left
|
|||
Xliff | \o | 19:33 | |
Are their docs that show the order of object instantiation? Particularly the order of submethods? | |||
Thanks. | |||
TimToady | parents are always called before children for liskovian reasons; destruction happens in the opposite order | 19:36 | |
Xliff | Yes, but are there other methods like BUILD and TWEAK involved? | 19:37 | |
s/methods/submethods/ | |||
19:37
avar left
|
|||
TimToady | BUILD, TWEAK, and DESTROY are the only standard submethods at the moment | 19:37 | |
and we don't properly compose them in from roles yet either | 19:38 | ||
19:39
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
19:40
p6bannerbot sets mode: +v avar
19:42
semarie12 joined,
semarie12 left
|
|||
leont | Yeah, I've been bitten by them not being composed from roles, though I can see why | 19:54 | |
19:56
ccc joined,
p6bannerbot sets mode: +v ccc
|
|||
ccc | Is perl6-debug-m known to be broken? | 19:58 | |
I'm trying to debug a module. When I use perl6-debug-m on a script that uses my module, it doesn't step into method calls when using enter | 20:00 | ||
timotimo | ah, yes, it relies on compiling the code with a different compiler that puts in extra hooks to the code | ||
if you prevent it from using a precompiled blob, it'll let you step into module code as well | |||
the easiest way to get that is probably to change a line (add a comment or so) to the module's source code | 20:01 | ||
ccc | How do I prevent it from using a precompiled blob | ||
timotimo | or to put "no precompilation;" at/near the beginning of that module | ||
ccc | Thanks, I'll give it a try | 20:02 | |
20:03
hamhu3_ joined
20:04
p6bannerbot sets mode: +v hamhu3_
|
|||
ccc | Nope then I get the following right after I load it: Cannot find method 'from' on object of type NQPMu | 20:04 | |
in any widen_expr_from at /home/ccc/rakudo/install/share/perl6/runtime/perl6-debug.moarvm line 1 | |||
in any statement_control:sym<loop> at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | |||
in any statement_control at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | |||
in any routine_declarator:sym<sub> at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | |||
in any routine_declarator at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | |||
in any term:sym<routine_declarator> at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | |||
in any term at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | 20:05 | ||
in any statement_control at /home/ccc/rakudo/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 | |||
20:05
zakharyas left
|
|||
timotimo | we'd prefer getting long pieces of output via a pastebin-like service | 20:05 | |
IRC is quite bad at handling many lines at once | |||
ccc | sorry, but I don't remember how to do that (I've not used IRC in a long time) | 20:06 | |
20:06
hamhu3 left,
kerframil joined,
p6bannerbot sets mode: +v kerframil,
zakharyas joined
|
|||
timotimo | you'd go to a pasting website, put your stuff in, and the site would give you an URL that you can paste into IRC | 20:06 | |
then people visit that site | 20:07 | ||
20:07
p6bannerbot sets mode: +v zakharyas
|
|||
ccc | This message is what I got earlier when I replaced the "use Mymod;" with the source from Mymod.pm6 | 20:08 | |
geekosaur | or if you use somethng like irccloud or I think matrix.org, you paste it all into a singlemessage and the gateway makes a paste for you and sends that here | ||
timotimo | i wonder if something in the perl6 grammar has significantly changed and the debugger needs to change its derived grammar to match? | ||
ccc | I checked github for the module it's based on and there have been no issues for over a year | 20:09 | |
20:09
leont left
|
|||
timotimo | i don't think it gets used very frequently | 20:10 | |
ccc | my rakudo star was installed on Sep 4 | ||
People aren't eating their own dogfood? | |||
timotimo | i myself am working on a debugger based on a completely different approach. it's not as far along as the existing one, but it lets you even step around in precompiled stuff | ||
the perl6-debug-m one also doesn't support multithreading properly | 20:11 | ||
since people tend to build apps with asynchrony and multithreading nowadays, the usefulness is limited | |||
ccc | timotimo: Ok Godspeed on your debugger replacement | ||
timotimo | thanks. there's a little bit of reading about it online if you're interested | 20:12 | |
ccc | I am | ||
timotimo | 6guts.wordpress.com/2018/03/13/rem...or-moarvm/ | ||
6guts.wordpress.com/2012/08/28/a-r...-debugger/ - this post announced the other debugger; the one you're using at the moment | 20:13 | ||
20:13
leont joined
20:14
p6bannerbot sets mode: +v leont
|
|||
ccc | Should I bother submitting an issue? | 20:14 | |
timotimo | perhaps; i'd say the issue would go in the rakudo repository, since that's where the grammar is implemented | 20:15 | |
20:21
OrangeBacon joined,
p6bannerbot sets mode: +v OrangeBacon
20:24
ccc left
20:33
sena_kun left
20:34
graphene left
20:36
graphene joined,
p6bannerbot sets mode: +v graphene
|
|||
Xliff | What's the best way to get a piece of code to run automatically after self.bless()? | 20:38 | |
This is WITHOUT using BUILD or TWEAK | |||
timotimo | override the bless method | 20:39 | |
alternatively, manipulate the BUILDALLPLAN | |||
Xliff | m: class A { method new { my $a = self.bless(); dothat; $a; }; method dothat { &?ROUTINE.name.say; }; }; my $a = A.new; $a.^name.say; | 20:41 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: dothat used at line 1 |
||
Xliff | m: class A { method new { my $a = self.bless(); self.dothat; $a; }; method dothat { &?ROUTINE.name.say; }; }; my $a = A.new; $a.^name.say; | ||
camelia | dothat A |
||
Xliff | ^^ Or that? | 20:42 | |
20:42
MilkmanDan left
|
|||
timotimo | do be aware that the "self.dothat" is actually run on the type object, not the object you just created | 20:42 | |
Xliff | So I'd still need to override bless? | ||
timotimo | no | ||
you can $a.dothat | |||
Xliff | Ahh! | ||
20:42
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
|
|||
Xliff | m: class A { method new { my $a = self.bless(); $a.dothat; $a; }; method dothat { &?ROUTINE.name.say; }; }; my $a = A.new; $a.^name.say; | 20:43 | |
camelia | dothat A |
||
20:43
OrangeBacon left
|
|||
timotimo | if other classes inherit from A, they will not get the same behaviour if they have their own method "new" | 20:43 | |
Xliff | m: class A { method new { my $a = self.bless(); $a.dothat; $a; }; method dothat { ::?CLASS ~ "." ~ &?ROUTINE.name.say; }; }; my $a = A.new; $a.^name.say; | ||
camelia | Use of uninitialized value of type A in string context. Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. dothat A in method dothat at <tmp> line 1 |
||
Xliff | m: class A { method new { my $a = self.bless(); $a.dothat; $a; }; method dothat { ::?CLASS.name ~ "." ~ &?ROUTINE.name.say; }; }; my $a = A.new; $a.^name.say; | ||
camelia | No such method 'name' for invocant of type 'A'. Did you mean any of these? none note take in method dothat at <tmp> line 1 in method new at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
Xliff | m: class A { method new { my $a = self.bless(); $a.dothat; $a; }; method dothat { ::?CLASS.^name ~ "." ~ &?ROUTINE.name.say; }; }; my $a = A.new; $a.^name.say; | 20:44 | |
camelia | dothat A |
||
timotimo | the .say is only on the routine | ||
Xliff | m: class A { method new { my $a = self.bless(); $a.dothat; $a; }; method dothat { (::?CLASS.^name ~ "." ~ &?ROUTINE.name).say; }; }; my $a = A.new; $a.^name.say; | ||
camelia | A.dothat A |
||
20:45
kerframil left,
limarfrek joined,
p6bannerbot sets mode: +v limarfrek
20:46
limarfrek is now known as kerframil
20:49
kerframil left
20:50
kerframil joined,
p6bannerbot sets mode: +v kerframil
|
|||
Xliff | timotimo: What does tha basic implementation of bless() look like? | 20:53 | |
Are ther docs on that, or is there just code? | |||
moritz | I'm pretty the documentation on object construction methods that bless calls CREATE and BUILDALL | 20:54 | |
timotimo | i think CREATE doesn't exist, it's just nqp::create | ||
lizmat | m: dd Str.CREATE | 20:55 | |
camelia | "" | ||
lizmat | it does exist | ||
:-) | |||
Xliff | :) | ||
timotimo | method bless(*%attrinit) { | ||
nqp::create(self).BUILDALL(Empty, %attrinit); | |||
} | |||
OK | |||
but method bless uses nqp::create rather than self.CREATE | |||
Xliff | What file was that in? I was looking for it. | ||
20:55
rindolf left
|
|||
timotimo | Mu.pm6 | 20:55 | |
lizmat | timotimo: the reason it says nqp::create there, is to avoid another method call | 20:56 | |
20:56
leont left
|
|||
timotimo | OK | 20:56 | |
Xliff | Thanks, everyone. | 20:57 | |
timotimo | sure | ||
jnthn | I suspect with inlining that matters rather less than it used to. That said, .CREATE should probably be macro-like and just compile into nqp::create. | ||
21:00
ufobat_ left
21:04
rindolf joined,
p6bannerbot sets mode: +v rindolf
21:05
zakharyas left
21:11
ccc joined
21:12
p6bannerbot sets mode: +v ccc
21:21
kerframil left
|
|||
Altreus | there was a new book, linked to in here. Anyone know it offhand? | 21:27 | |
I think it was in pre-order | |||
lizmat | www.amazon.com/Learning-Perl-Keepi...149197768X | 21:30 | |
21:50
Sft12Grth joined
21:51
p6bannerbot sets mode: +v Sft12Grth,
rindolf left
|
|||
Sft12Grth | Hope the spam stops soon. Hi | 21:51 | |
21:52
Sft12Grth left
22:03
hamhu3 joined
22:04
p6bannerbot sets mode: +v hamhu3
22:06
hamhu3_ left
|
|||
buggable | New CPAN upload: Array-Agnostic-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz | 22:14 | |
Geth | doc: dmc00++ created pull request #2311: Fix broken link |
22:19 | |
22:20
vrurg joined
22:21
p6bannerbot sets mode: +v vrurg
22:33
graphene left
22:35
graphene joined,
p6bannerbot sets mode: +v graphene
|
|||
lizmat | and that concludes my hacking for today& | 22:46 | |
buggable | New CPAN upload: Array-Sparse-0.0.1.tar.gz by ELIZABETH modules.perl6.org/dist/Array::Spars...:ELIZABETH | 22:54 | |
23:13
graphene left
23:14
graphene joined
23:15
p6bannerbot sets mode: +v graphene
23:18
graphene left
23:20
graphene joined
23:21
p6bannerbot sets mode: +v graphene,
sotona joined
23:22
p6bannerbot sets mode: +v sotona
23:26
sotona left,
graphene left
23:28
graphene joined,
p6bannerbot sets mode: +v graphene
23:51
bwisti left,
graphene left
23:53
graphene joined,
p6bannerbot sets mode: +v graphene
23:56
ccc left
|
|||
Geth | doc: cdc59b5c20 | (David M. Cawthon)++ | doc/Language/operators.pod6 Fix broken link |
23:58 | |
doc: b3ee034ec7 | (David M. Cawthon)++ (committed using GitHub Web editor) | doc/Language/operators.pod6 Merge pull request #2311 from dmc00/master Fix broken link |
|||
synopsebot | Link: doc.perl6.org/language/operators | ||
23:58
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke
23:59
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|