»ö« 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.
timotimo oh, right 00:00
that happens when it doesn't return
i mean when the "if" condition doesn't trigger
you could have an else { %( ) } for example
needs the space in between, for reasons
Herby_ gotcha, that fixed the error 00:02
00:27 epony joined, p6bannerbot sets mode: +v epony 00:30 mcmillhj left 00:32 dalek joined, ChanServ sets mode: +v dalek 00:33 p6bannerbot sets mode: +v dalek 00:35 Sgeo_ joined 00:36 mcmillhj joined, p6bannerbot sets mode: +v Sgeo_, p6bannerbot sets mode: +v mcmillhj 00:37 Sgeo left 00:39 Sgeo__ joined, cognominal-p6 joined, p6bannerbot sets mode: +v Sgeo__ 00:40 p6bannerbot sets mode: +v cognominal-p6, mcmillhj left 00:41 cog left 00:42 Sgeo_ left 00:44 cog joined 00:45 p6bannerbot sets mode: +v cog 00:46 cognominal-p6 left 00:48 leont left 00:49 cognominal-p6 joined 00:50 p6bannerbot sets mode: +v cognominal-p6 00:51 mcmillhj joined, aindilis left, cog left, p6bannerbot sets mode: +v mcmillhj 00:52 cog joined, p6bannerbot sets mode: +v cog 00:54 cognominal-p6 left 00:56 mcmillhj left, cognominal-p6 joined 00:57 p6bannerbot sets mode: +v cognominal-p6 00:58 cog left 01:04 cog joined
Herby_ first time seeing this site, pretty neat: tio.run/#perl6 01:04
01:04 p6bannerbot sets mode: +v cog 01:05 mcmillhj joined 01:06 cognominal-p6 left, p6bannerbot sets mode: +v mcmillhj, wbn joined
timotimo yup, it's cool 01:07
01:07 p6bannerbot sets mode: +v wbn 01:09 renormalist joined, TeamBlast joined 01:10 p6bannerbot sets mode: +v renormalist, p6bannerbot sets mode: +v TeamBlast, mcmillhj left, aborazmeh joined, aborazmeh left, aborazmeh joined, p6bannerbot sets mode: +v aborazmeh 01:11 p6bannerbot sets mode: +v aborazmeh 01:12 cognominal-p6 joined 01:13 p6bannerbot sets mode: +v cognominal-p6 01:14 cog left 01:20 ilmari joined, ilmari left, ilmari joined, p6bannerbot sets mode: +v ilmari 01:21 p6bannerbot sets mode: +v ilmari 01:22 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj 01:26 mcmillhj left
vrurg Hm... How could I find out what causes rakudo to freeze at parse stage?? 01:32
01:35 chenyf joined, p6bannerbot sets mode: +v chenyf 01:36 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj
[Coke] the tio site just dies here when I enter code and hit play. 01:39
Could not open . Failed to stat file: no such file or directory
01:40 mcmillhj left 01:50 spycrab0 left, aborazmeh left 01:51 Herby__ joined 01:52 p6bannerbot sets mode: +v Herby__ 01:56 mcmillhj joined 01:57 p6bannerbot sets mode: +v mcmillhj
Herby__ releasable6: status 01:58
releasable6 Herby__, Next release in ≈9 days and ≈17 hours. 1 blocker. 0 out of 38 commits logged
Herby__, Details: gist.github.com/5107cab8dc2b45f044...c14858ca54
02:01 mcmillhj left 02:14 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj 02:17 fake_space_whale left 02:19 mcmillhj left 02:23 Herby__ left 02:24 cog joined, p6bannerbot sets mode: +v cog 02:26 cognominal-p6 left 02:27 mcmillhj joined, cognominal-p6 joined 02:28 p6bannerbot sets mode: +v mcmillhj, p6bannerbot sets mode: +v cognominal-p6 02:29 spycrab0 joined, p6bannerbot sets mode: +v spycrab0, cog left 02:31 mcmillhj left 02:33 DoverMo joined 02:34 p6bannerbot sets mode: +v DoverMo 02:35 cog joined 02:36 p6bannerbot sets mode: +v cog 02:37 cognominal-p6 left 02:46 dominix left
MasterDuke vrurg: the moarvm debugserver perhaps 02:46
02:48 cognominal-p6 joined
MasterDuke [Coke]: works for me 02:49
02:49 p6bannerbot sets mode: +v cognominal-p6 02:51 cog left 02:52 mcmillhj joined 02:53 cog joined, p6bannerbot sets mode: +v mcmillhj, p6bannerbot sets mode: +v cog 02:55 cognominal-p6 left 02:57 mcmillhj left 03:02 stephane_ joined 03:03 p6bannerbot sets mode: +v stephane_ 03:05 cog left 03:06 cognominal-p6 joined 03:07 p6bannerbot sets mode: +v cognominal-p6 03:08 stephane_ left 03:10 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj 03:11 cog joined 03:12 p6bannerbot sets mode: +v cog 03:13 cognominal-p6 left 03:14 mcmillhj left 03:19 cognominal-p6 joined 03:20 p6bannerbot sets mode: +v cognominal-p6 03:22 cog left 03:23 yoleaux left 03:24 cog joined, cognominal-p6 left, p6bannerbot sets mode: +v cog, klapperl joined 03:25 mcmillhj joined, p6bannerbot sets mode: +v klapperl, p6bannerbot sets mode: +v mcmillhj 03:29 mcmillhj left 03:30 dpk joined, xiaomiao joined, p6bannerbot sets mode: +v xiaomiao, p6bannerbot sets mode: +v dpk 03:31 Grauwolf joined, p6bannerbot sets mode: +v Grauwolf, stephane_ joined 03:32 p6bannerbot sets mode: +v stephane_ 03:34 cog left 03:37 Khisanth joined 03:38 p6bannerbot sets mode: +v Khisanth 03:39 stephane_ left 03:52 mcmillhj joined 03:53 p6bannerbot sets mode: +v mcmillhj 03:56 mcmillhj left 03:57 jast joined 03:58 p6bannerbot sets mode: +v jast 04:00 rindolf joined 04:01 p6bannerbot sets mode: +v rindolf 04:04 Herby_ left 04:35 mcmillhj joined 04:36 p6bannerbot sets mode: +v mcmillhj 04:40 rindolf left, mcmillhj left 04:43 mephinet joined, p6bannerbot sets mode: +v mephinet 04:44 reu joined, p6bannerbot sets mode: +v reu 04:47 rindolf joined, mcmillhj joined 04:48 p6bannerbot sets mode: +v rindolf, p6bannerbot sets mode: +v mcmillhj 04:51 mcmillhj left 04:52 curan joined, p6bannerbot sets mode: +v curan 04:53 [particle]1 joined 04:54 p6bannerbot sets mode: +v [particle]1, [particle] left 04:56 lookatme_q joined 04:57 p6bannerbot sets mode: +v lookatme_q, molaf joined 04:58 p6bannerbot sets mode: +v molaf 04:59 [particle] joined, p6bannerbot sets mode: +v [particle], [particle]1 left 05:07 DoverMo left 05:10 molaf left, [particle]1 joined, [particle] left, sauvin joined, p6bannerbot sets mode: +v sauvin, p6bannerbot sets mode: +v [particle]1 05:12 mcmillhj joined 05:13 p6bannerbot sets mode: +v mcmillhj 05:17 mcmillhj left 05:18 molaf joined 05:19 p6bannerbot sets mode: +v molaf 05:20 yoleaux joined, ChanServ sets mode: +v yoleaux 05:21 p6bannerbot sets mode: +v yoleaux 05:24 [particle] joined 05:25 [particle]1 left, p6bannerbot sets mode: +v [particle] 05:27 molaf left 05:28 mcmillhj joined 05:29 p6bannerbot sets mode: +v mcmillhj 05:32 mcmillhj left 05:38 graphene joined 05:39 p6bannerbot sets mode: +v graphene 06:01 mcmillhj joined 06:02 p6bannerbot sets mode: +v mcmillhj 06:04 vike joined 06:05 p6bannerbot sets mode: +v vike 06:06 mcmillhj left 06:12 andrzejku_ joined 06:13 p6bannerbot sets mode: +v andrzejku_ 06:20 spycrab0 left 06:33 mcmillhj joined
moritz good morning 06:33
06:34 oftl joined, p6bannerbot sets mode: +v mcmillhj, p6bannerbot sets mode: +v oftl 06:38 jmerelo joined, mcmillhj left, p6bannerbot sets mode: +v jmerelo, zxcvz left 06:39 zxcvz joined 06:40 p6bannerbot sets mode: +v zxcvz 06:44 robertle joined 06:45 p6bannerbot sets mode: +v robertle
Geth doc: d3a3cc06c4 | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Fixes error, closes #2297
06:47
synopsebot Link: doc.perl6.org/type/IO::Handle
06:49 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj 06:53 mcmillhj left 07:02 graphene left 07:03 graphene joined 07:04 p6bannerbot sets mode: +v graphene
El_Che hi moritz 07:06
07:11 andrzejku_ left 07:17 andrzejku_ joined, p6bannerbot sets mode: +v andrzejku_ 07:23 mcmillhj joined 07:24 domidumont joined, p6bannerbot sets mode: +v mcmillhj 07:25 p6bannerbot sets mode: +v domidumont 07:27 DarthGandalf left, scimon joined 07:28 p6bannerbot sets mode: +v scimon, mcmillhj left 07:33 jmerelo left, grumble joined, p6bannerbot sets mode: +v grumble 07:34 DarthGandalf joined, p6bannerbot sets mode: +v DarthGandalf 07:38 dakkar joined 07:39 p6bannerbot sets mode: +v dakkar 07:44 mcmillhj joined 07:45 p6bannerbot sets mode: +v mcmillhj 07:48 mcmillhj left 07:57 andrzejku_ left 08:07 mcmillhj joined 08:08 p6bannerbot sets mode: +v mcmillhj, kerframil left 08:12 mcmillhj left 08:15 Ven` joined 08:16 p6bannerbot sets mode: +v Ven` 08:21 jmerelo_ joined, p6bannerbot sets mode: +v jmerelo_ 08:22 lizmat left 08:28 zakharyas joined 08:29 p6bannerbot sets mode: +v zakharyas 08:53 mcmillhj joined 08:54 p6bannerbot sets mode: +v mcmillhj 08:58 mcmillhj left 09:08 lookatme_q left, mcmillhj joined 09:09 p6bannerbot sets mode: +v mcmillhj 09:12 mcmillhj left 09:24 leont joined, p6bannerbot sets mode: +v leont 09:33 mcmillhj joined 09:34 p6bannerbot sets mode: +v mcmillhj 09:38 mcmillhj left, gregf_ joined, p6bannerbot sets mode: +v gregf_ 09:45 andrzejku_ joined, p6bannerbot sets mode: +v andrzejku_ 09:51 mcmillhj joined 09:52 p6bannerbot sets mode: +v mcmillhj 09:55 mcmillhj left 10:07 domidumont left 10:14 spycrab0 joined, p6bannerbot sets mode: +v spycrab0, imcsk8 joined 10:15 p6bannerbot sets mode: +v imcsk8 10:26 mcmillhj joined, graphene left, p6bannerbot sets mode: +v mcmillhj 10:28 graphene joined 10:29 p6bannerbot sets mode: +v graphene 10:30 mcmillhj left 10:32 chenyf left 10:33 zakharyas1 joined 10:34 p6bannerbot sets mode: +v zakharyas1, Ven` left 10:36 zakharyas left 10:37 mcmillhj joined 10:38 p6bannerbot sets mode: +v mcmillhj 10:41 mcmillhj left 10:47 Ven` joined 10:48 p6bannerbot sets mode: +v Ven` 10:57 chenyf joined 10:58 p6bannerbot sets mode: +v chenyf, Ven` left
Geth doc: bollwarm++ created pull request #2298:
doc translation for Chinese
10:59
11:02 chenyf left
Voldenet m: for 97 -> $n is copy { say $n ~ elems gather { take $n = $n % 2 == 0 ?? $n/2 !! 3 * $n + 1 while $n > 1 } } 11:05
camelia 1118
Voldenet m: for 97 -> $n is copy { say $n ~ "" ~ elems gather { take $n = $n % 2 == 0 ?? $n/2 !! 3 * $n + 1 while $n > 1 } }
camelia 97118
Voldenet I wish I knew why.
11:05 chenyf joined 11:06 p6bannerbot sets mode: +v chenyf
Voldenet order of evaluation isn't specified, right? 11:06
11:07 mcmillhj joined 11:08 p6bannerbot sets mode: +v mcmillhj 11:09 zakharyas1 left 11:12 mcmillhj left 11:21 Ven` joined 11:22 p6bannerbot sets mode: +v Ven` 11:25 mcmillhj joined 11:26 p6bannerbot sets mode: +v mcmillhj 11:30 mcmillhj left
moritz m: for 97 -> $n is copy { say $n ~ "" ~ elems gather { take 0+($n = $n % 2 == 0 ?? $n/2 !! 3 * $n + 1) while $n > 1 } 11:50
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3 0 ?? $n/2 !! 3 * $n + 1) while $n > 1 }7⏏5<EOL>
expecting any of:
postfix
statement end
moritz m: for 97 -> $n is copy { say $n ~ "" ~ elems gather { take 0+($n = $n % 2 == 0 ?? $n/2 !! 3 * $n + 1) while $n > 1 } }
camelia 97118
moritz m: say 97, { $_ %% 2 ?? $_ / 2 !! 3 $_ + } ... 0 11:58
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3say 97, { $_ %% 2 ?? $_ / 2 !! 37⏏5 $_ + } ... 0
expecting any of:
infix
infix stopper
statement end
state…
moritz m: say 97, { $_ %% 2 ?? $_ / 2 !! 3*$_ + } ... 0
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing required term after infix
at <tmp>:1
------> 3say 97, { $_ %% 2 ?? $_ / 2 !! 3*$_ + 7⏏5} ... 0
expecting any of:
prefix
term
moritz m: say 97, { $_ %% 2 ?? $_ / 2 !! 3*$_ + 1} ... 0
camelia (97 292 146 73 220 110 55 166 83 250 125 376 188 94 47 142 71 214 107 322 161 484 242 121 364 182 91 274 137 412 206 103 310 155 466 233 700 350 175 526 263 790 395 1186 593 1780 890 445 1336 668 334 167 502 251 754 377 1132 566 283 850 425 1276 638 3…
moritz m: say join '', 97, { $_ %% 2 ?? $_ / 2 !! 3*$_ + 1} ... 0
camelia
moritz m: say join '', flat 97, { $_ %% 2 ?? $_ / 2 !! 3*$_ + 1} ... 0 11:59
camelia (timeout)
moritz m: say elems 97, { $_ %% 2 ?? $_ / 2 !! 3*$_ + 1} ... 0
11:59 mcmillhj joined
camelia (signal XCPU) 11:59
12:00 p6bannerbot sets mode: +v mcmillhj 12:01 jmerelo_ left 12:04 mcmillhj left 12:05 domidumont joined 12:06 p6bannerbot sets mode: +v domidumont
lichtkind is the a way to ask if an optional parameter was used or not? 12:08
12:09 stmuk joined, domidumont left 12:10 p6bannerbot sets mode: +v stmuk 12:11 domidumont joined, mcmillhj joined, stmuk_ left, p6bannerbot sets mode: +v domidumont, p6bannerbot sets mode: +v mcmillhj 12:15 mcmillhj left, Guest18 joined 12:16 p6bannerbot sets mode: +v Guest18
Voldenet m: sub x(:$optional) { say "optional value was used" if $optional.defined; say "call"; }; x(); x(:optional); x(:optional(42)) 12:16
camelia call
optional value was used
call
optional value was used
call
12:22 mcmillhj joined 12:23 p6bannerbot sets mode: +v mcmillhj 12:27 mcmillhj left
moritz if you care whether an Any was passed in, you can also use a senteniel value 12:27
m: my $GUARD := Any.new; sub x($o = $GUARD) { say $o === $GUARD ?? 'not passed' !! 'passed' }; say x(); x(Any); x(42); 12:28
camelia not passed
True
passed
passed
12:31 andrzejku_ left 12:33 domidumont left 12:35 domidumont joined, Guest18 left, p6bannerbot sets mode: +v domidumont 12:41 Hor|zon joined 12:42 p6bannerbot sets mode: +v Hor|zon 12:45 mcmillhj joined 12:46 p6bannerbot sets mode: +v mcmillhj 12:56 zakharyas joined 12:57 p6bannerbot sets mode: +v zakharyas 12:59 ggoebel left 13:07 domidumont left 13:09 domidumont joined 13:10 p6bannerbot sets mode: +v domidumont, stmuk_ joined 13:11 p6bannerbot sets mode: +v stmuk_ 13:12 stmuk left 13:15 ggoebel joined 13:16 p6bannerbot sets mode: +v ggoebel 13:19 colomon joined 13:20 chenyf left 13:27 chenyf joined 13:28 p6bannerbot sets mode: +v chenyf, molaf joined 13:29 p6bannerbot sets mode: +v molaf 13:39 uzl joined 13:40 p6bannerbot sets mode: +v uzl
uzl good morning! 13:44
m: my %nums = %(flat 'a'..'b' Z 1..2); for %nums.values -> $v is rw { $v += 10 }; say %nums;
camelia {a => 11, b => 12}
uzl m: my %nums = %(flat 'a'..'b' Z 1..2); for %nums.values <-> $v { $v += 10 }; say %nums;
camelia {a => 11, b => 12}
uzl '-> $v is rw' and '<-> $v' achieves the same thing in this example. Are they truly equivalent? Can they be used interchangeably? 13:47
timotimo m: say (-> $a is rw { }).perl; say (<-> $a { }).perl 13:50
camelia -> $a is rw { #`(Block|55888984) ... }
-> $a is rw { #`(Block|56150400) ... }
uzl So both of them are just Blocks? 13:51
timotimo well, yeah, but the important bit is the signature i thought?
uzl I was curious because '<->' wasn't mentioned in docs.perl6.org/language/hashmap#In..._of_values and they seem to achieve the same thing. 13:53
lichtkind why does $m.gist() does fall back to $m.perl even there is a gist method (with 2 optional parameter?) 13:54
13:57 Summertime joined, p6bannerbot sets mode: +v Summertime
moritz lichtkind: sounds like there's an error in there somewhere; can you provide a minimal example to reproduce that? 14:01
m: class A { method perl { 'perl' }; method gist($a?, $b?) { 'gist' }}; A.new.gist()
camelia ( no output )
moritz m: class A { method perl { 'perl' }; method gist($a?, $b?) { 'gist' }}; say A.new.gist()
camelia gist
moritz seems to work
14:02 stmuk joined, p6bannerbot sets mode: +v stmuk 14:04 stmuk_ left
lichtkind moritz, yes i had a typo in it, however looks I also found a bug, because when i opt type contrains it work: multi method gist(Math::Matrix:D: Int:D :$max-chars?, Int:D :$max-rows? --> Str) { 14:16
moritz, i meant when i leave out the Int:D 14:17
timotimo that's because :D constraints and optional parameters don't mix well 14:18
when you don't give it a max-rows, for example, it'll be the default value, which is Int, which doesn't pass the type check against Int:D
14:26 curan left
lichtkind timotimo, good point thanks but when i give them defaul values then i cant know if I got any params 14:28
timotimo there's a way, but you might not like it 14:29
moritz lichtkind: you could give default values that don't make much sense otherwise, like -42 14:30
lichtkind timotimo, i afraid so and yes moritz true but I still dont like it 14:31
i think i rather drop the :D 14:32
timotimo what you can do is this:
m: class Foo { role SentinelRole { }; constant $sentinel = 42 but SentinelRole; method gimme-an-arg-maybe(Int:D :$foo = $sentinel) { if $foo =:= $sentinel { say "no arg given" } else { say "arg given" } }; Foo.new.gimme-an-arg-maybe(); 14:33
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3iven" } }; Foo.new.gimme-an-arg-maybe();7⏏5<EOL>
timotimo m: class Foo { role SentinelRole { }; constant $sentinel = 42 but SentinelRole; method gimme-an-arg-maybe(Int:D :$foo = $sentinel) { if $foo =:= $sentinel { say "no arg given" } else { say "arg given" } } }; Foo.new.gimme-an-arg-maybe();
camelia no arg given
timotimo m: class Foo { role SentinelRole { }; constant $sentinel = 42 but SentinelRole; method gimme-an-arg-maybe(Int:D :$foo = $sentinel) { if $foo =:= $sentinel { say "no arg given" } else { say "arg given" } } }; Foo.new.gimme-an-arg-maybe(42);
camelia Too many positionals passed; expected 1 argument but got 2
in method gimme-an-arg-maybe at <tmp> line 1
in block <unit> at <tmp> line 1
timotimo m: class Foo { role SentinelRole { }; constant $sentinel = 42 but SentinelRole; method gimme-an-arg-maybe(Int:D :$foo = $sentinel) { if $foo =:= $sentinel { say "no arg given" } else { say "arg given" } } }; Foo.new.gimme-an-arg-maybe(foo => 42); 14:34
camelia arg given
timotimo that's "a default value that doesn't make much sense", and also not easily reachable for your users
14:42 uzl left 14:44 graphene left
lichtkind timotimo, i appreciate your effort greatly but to me its cleaner just ignore the case where people just give me niesensical type object, but my current solution is not clean either because definedness is irrelevant but rather if calue is in certain range since there are also nonesensical ints i have to reject that would make the output of gist idiotic 14:44
14:46 graphene joined, leont left
timotimo sounds like a "where" clause with a Range 14:46
14:46 p6bannerbot sets mode: +v graphene
timotimo there's a helper module for type constraints + where clauses btw 14:46
oh, did i remember wrong? 14:47
perhaps 14:50
lichtkind timotimo, never seen such module 14:54
15:02 scimon left 15:06 Herby_ joined 15:07 p6bannerbot sets mode: +v Herby_
Herby_ o/ 15:07
15:20 chenyf left
lichtkind hai Herby_ 15:23
15:24 chenyf joined
lichtkind timotimo, you think its worth file an issue for that problem? 15:24
15:24 jmerelo joined, p6bannerbot sets mode: +v chenyf 15:25 fake_space_whale joined 15:26 p6bannerbot sets mode: +v fake_space_whale 15:29 itaipu joined, robertle left, p6bannerbot sets mode: +v itaipu 15:30 graphene left 15:32 graphene joined 15:33 p6bannerbot sets mode: +v graphene 15:52 [particle]1 joined, [particle] left, p6bannerbot sets mode: +v [particle]1 15:53 domidumont left 15:54 rouking joined 15:55 p6bannerbot sets mode: +v rouking 16:02 chenyf left
TimToady lichtkind: there's already an issue for it: R#2073 16:05
synopsebot R#2073 [open]: github.com/rakudo/rakudo/issues/2073 [6.d review][@LARRY] Bad propspec: Enum's :D accepts Enum's :U
lichtkind TimToady, thank you Larry 16:06
TimToady the title of which is slightly undergeneralized
16:11 fake_space_whale left, Ven` left 16:14 donaldh joined, p6bannerbot sets mode: +v donaldh
donaldh I wrote a short followup to brrt's excellent 'Curious Benchmark' blog - gist.github.com/donaldh/87441392c2...-twist-org 16:18
16:19 zakharyas left
donaldh Rat and FatRat are _really_ slow 16:19
16:19 mcmillhj left 16:20 mcmillhj joined 16:21 p6bannerbot sets mode: +v mcmillhj
El_Che weekly: gist.github.com/donaldh/87441392c2...-twist-org 16:25
notable6 El_Che, Noted!
16:29 chenyf joined 16:30 p6bannerbot sets mode: +v chenyf 16:32 zakharyas joined 16:33 p6bannerbot sets mode: +v zakharyas
Herby_ donaldh: nice write-up! 16:34
vrurg Is camelia starting new perl6 for every request? I'd like to do a test which would most definitely freeze the compiler.
lichtkind oh btw where I should report tht im new maintainer of module and my fork should be official? 16:36
donaldh Is it possible to include nqp::* calls in perl6 --profile output? 16:38
16:42 dakkar left 16:43 donaldh left 16:46 robertle joined 16:47 p6bannerbot sets mode: +v robertle 16:51 MasterDuke left
buggable New CPAN upload: Native-Exec-0.1.tar.gz by CTILMES modules.perl6.org/dist/Native::Exec:cpan:CTILMES 16:53
16:56 rfold joined 16:57 p6bannerbot sets mode: +v rfold 17:07 domidumont joined 17:08 p6bannerbot sets mode: +v domidumont 17:09 thundergnat left 17:15 [particle]1 left 17:16 [particle] joined
Geth doc: 7f85492f92 | (Curt Tilmes)++ | doc/Language/5to6-perlfunc.pod6
Add a reference to Native::Exec in the 5to6 section on exec
17:16
synopsebot Link: doc.perl6.org/language/5to6-perlfunc
17:16 p6bannerbot sets mode: +v [particle] 17:24 andrzejku_ joined, p6bannerbot sets mode: +v andrzejku_ 17:26 TreyHarris joined, p6bannerbot sets mode: +v TreyHarris 17:31 colomon_ joined 17:32 colomon left, colomon_ is now known as colomon, p6bannerbot sets mode: +v colomon 17:46 domidumont left 17:55 pmurias joined, zakharyas left 17:56 p6bannerbot sets mode: +v pmurias 18:23 stmuk_ joined, stmuk left 18:24 p6bannerbot sets mode: +v stmuk_ 18:27 sauvin left
buggable New CPAN upload: AttrX-Mooish-v0.4.7.tar.gz by VRURG modules.perl6.org/dist/AttrX::Mooish:cpan:VRURG 18:33
18:43 Kaiepi left 18:44 Kaiepi joined 18:45 p6bannerbot sets mode: +v Kaiepi 18:48 zxcvz left, itaipu left, itaipu joined 18:49 p6bannerbot sets mode: +v itaipu 18:54 andrzejku_ left
lichtkind is softmoth around here sometimes? 18:54
18:54 mcmillhj left 18:56 andrzejku_ joined 18:57 graphene left, p6bannerbot sets mode: +v andrzejku_ 18:59 graphene joined, stmuk joined, stmuk_ left 19:00 p6bannerbot sets mode: +v graphene, p6bannerbot sets mode: +v stmuk 19:01 mcmillhj joined 19:02 p6bannerbot sets mode: +v mcmillhj 19:06 stmuk left
moritz sometimes 19:06
19:11 jmerelo left
lichtkind thanks 19:12
19:16 stmuk joined, itaipu left, itaipu joined, p6bannerbot sets mode: +v stmuk 19:17 p6bannerbot sets mode: +v itaipu 19:23 MasterDuke joined, p6bannerbot sets mode: +v MasterDuke 19:24 MasterDuke left, MasterDuke joined, herbert.freenode.net sets mode: +v MasterDuke, p6bannerbot sets mode: +v MasterDuke
Geth doc: 3249f65bf3 | Lichtkind++ | doc/Language/pod.pod6
tiny expansion on linking within POD
19:24
synopsebot Link: doc.perl6.org/language/pod
19:29 zakharyas joined, p6bannerbot sets mode: +v zakharyas 19:33 aindilis joined 19:34 p6bannerbot sets mode: +v aindilis 19:38 leont joined 19:39 p6bannerbot sets mode: +v leont 19:47 rfold left 19:52 stmuk_ joined 19:53 p6bannerbot sets mode: +v stmuk_ 19:55 stmuk left 20:02 stmuk joined, stmuk_ left 20:03 p6bannerbot sets mode: +v stmuk, patrickz joined 20:04 p6bannerbot sets mode: +v patrickz, rindolf left 20:06 robertle left 20:08 andrzejku_ left 20:25 stmuk left, stmuk joined 20:26 p6bannerbot sets mode: +v stmuk 20:28 epony left 20:31 stmuk_ joined 20:32 p6bannerbot sets mode: +v stmuk_, stmuk left 20:35 stmuk joined, p6bannerbot sets mode: +v stmuk 20:37 stmuk_ left 20:38 [particle]1 joined, Herby_ left, [particle] left 20:39 p6bannerbot sets mode: +v [particle]1 20:40 epony joined, p6bannerbot sets mode: +v epony 20:43 stmuk left 20:44 stmuk joined 20:45 p6bannerbot sets mode: +v stmuk 20:47 pecastro joined 20:48 p6bannerbot sets mode: +v pecastro 20:50 zakharyas left
lichtkind can you make in POD6 the heading itself a link? 20:51
21:01 stux|RC-- joined 21:02 p6bannerbot sets mode: +v stux|RC-- 21:16 molaf left
lichtkind i know how to overwrite % $var but how to overwrite %$var ? 21:16
21:18 [particle]1 left, itaipu left 21:19 itaipu joined, [particle] joined, p6bannerbot sets mode: +v itaipu, p6bannerbot sets mode: +v [particle] 21:25 stmuk_ joined 21:26 p6bannerbot sets mode: +v stmuk_ 21:27 stmuk left 21:32 lucasb joined 21:33 p6bannerbot sets mode: +v lucasb
lucasb o/ 21:35
21:37 [particle]1 joined, [particle] left 21:38 p6bannerbot sets mode: +v [particle]1
rouking Is the experimental cached trait not thread-safe? 21:39
I'm doing problem 14 from Project Euler and caching the result of my collatz-length sub 21:40
but I'm trying to speed it up by using .race before calling .map
21:40 stmuk joined
rouking I get the error "double free or corruption (!prev)" 21:41
21:41 p6bannerbot sets mode: +v stmuk
timotimo yeah, it's probably not threadsafe 21:42
21:42 stmuk_ left
rouking That's unfortunate 21:43
timotimo it's easy to build your own i'm sure :)
rouking It would be nice to get the extra speed from not re-computing any of the lengths *and* using multiple cores
I suppose I could, but that seems like a bit much for this 21:44
timotimo perhaps, but it could be a cool module for the ecosystem :)
AlexDaniel don't we have it already?
timotimo oh? 21:45
AlexDaniel github.com/azawawi/perl6-memoize
timotimo i know we have an LRU cache, don't know if it's threadsafe
AlexDaniel eh memoize is not threadsafe as far as I can see…
yeah 21:46
21:48 Alchemy joined, Alchemy left, Alchemy joined, p6bannerbot sets mode: +v Alchemy 21:49 p6bannerbot sets mode: +v Alchemy 21:50 daemon joined, daemon left, daemon joined, p6bannerbot sets mode: +v daemon 21:51 Alchemy left, p6bannerbot sets mode: +v daemon 21:56 patrickz left 21:57 mcmillhj left 22:00 HaraldJoerg joined 22:01 p6bannerbot sets mode: +v HaraldJoerg 22:04 mcmillhj joined 22:05 p6bannerbot sets mode: +v mcmillhj 22:08 lucasb left 22:09 mcmillhj left 22:15 mcmillhj joined 22:16 p6bannerbot sets mode: +v mcmillhj 22:20 mcmillhj left 22:22 stmuk left 22:23 daemon left 22:25 daemon joined, stmuk_ joined, daemon left, daemon joined, p6bannerbot sets mode: +v daemon 22:26 p6bannerbot sets mode: +v daemon, p6bannerbot sets mode: +v stmuk_ 22:32 pyrimidine left, stmuk_ left, mcmillhj joined 22:33 p6bannerbot sets mode: +v mcmillhj 22:35 stmuk joined 22:36 p6bannerbot sets mode: +v stmuk 22:37 mcmillhj left 22:41 stmuk_ joined 22:42 p6bannerbot sets mode: +v stmuk_, itaipu left 22:44 stmuk left 22:46 stmuk joined, stmuk_ left, p6bannerbot sets mode: +v stmuk
leont How can I introspect the return type of a sub? 22:48
yoleaux 4 Sep 2018 22:52Z <TimToady> leont: no, not a bug, because &foo actually represents the implicit proto, not the multi; try $sub.candidates[0].multi instead
leont I can easily get the arguments using signature, but the return type doesn't appear to be available 22:49
timotimo m: sub foo(Int $a --> Str) { }; say &foo.^methods
camelia (Capture returns of package multi candidates <anon> wrap <anon> soft <anon> <anon> <anon> <anon> <anon> <anon> <anon> <anon> unwrap yada leave perl <anon> <anon> <anon> cando gist <anon> <anon> onlystar <anon> BUILDALL fire_phasers fire_if_phasers <an…
timotimo m: sub foo(Int $a --> Str) { }; say &foo.^methods>>.name
camelia (Capture of returns onlystar <anon> leave <anon> cando candidates <anon> yada <anon> <anon> <anon> <anon> multi unwrap <anon> <anon> <anon> <anon> <anon> perl package wrap <anon> gist <anon> <anon> soft <anon> BUILDALL phasers add_phaser set_why has-p…
timotimo m: sub foo(Int $a --> Str) { }; say &foo.returns 22:50
camelia (Str)
22:50 mcmillhj joined
leont timotimo++ 22:50
22:50 p6bannerbot sets mode: +v mcmillhj
leont (this does not appear to be in the documentation of Sub) 22:51
timotimo m: sub foo(Int $a --> Str) { }; say &foo.signature.returns 22:52
camelia (Str)
22:54 mcmillhj left
leont I see. Apparently my mental model of Signature isn't correct 22:54
timotimo not sure if the "returns" "trait" will also set it on the signature 22:55
22:56 pmurias left 23:00 Herby_ joined 23:01 p6bannerbot sets mode: +v Herby_ 23:04 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj 23:05 noganex_ left 23:08 mcmillhj left 23:13 agentzh joined, agentzh left, agentzh joined, p6bannerbot sets mode: +v agentzh 23:14 p6bannerbot sets mode: +v agentzh 23:16 noganex joined, p6bannerbot sets mode: +v noganex 23:17 mcmillhj joined 23:18 p6bannerbot sets mode: +v mcmillhj 23:22 mcmillhj left 23:28 lichtkind left, HaraldJoerg1 joined
SmokeMachine m:sub bla() returns Str {}; say &bla.signature.returns 23:28
evalable6 (Str)
23:29 p6bannerbot sets mode: +v HaraldJoerg1, HaraldJoerg left 23:30 mcmillhj joined, p6bannerbot sets mode: +v mcmillhj 23:34 mcmillhj left 23:35 lizmat joined 23:36 p6bannerbot sets mode: +v lizmat 23:46 HaraldJoerg1 left
tyil m: sprintf("%.6f", 0.5) 23:47
camelia ( no output )
tyil m: sprintf("%.6f", 0.5).say
camelia 0.500000
tyil m: (0.5).sprintf("%.6f").say 23:48
camelia Your printf-style directives specify 0 arguments, but 1 argument was supplied
in block <unit> at <tmp> line 1
23:48 pecastro left
tyil how come sprintf doesn't like this? 23:48
timotimo m: (0.5).fmt("%.6f").say
camelia 0.500000
tyil oh
thanks timotimo
timotimo m: ("%.6f").fmt(0.6).say
camelia Your printf-style directives specify 0 arguments, but 1 argument was supplied
in block <unit> at <tmp> line 1
tyil oh
timotimo oh, not like that either?
hah 23:49
tyil interesting
timotimo m: ("%.6f").sprintf(0.6).say
camelia 0.600000
timotimo sorry i forgot to switch sprintf in for that second one
i think this is a job for ... putting my body onto something rectangular and soft, and not move much for multiple hours 23:51
23:53 lizmat left 23:58 mcmillhj joined 23:59 p6bannerbot sets mode: +v mcmillhj