Perl 6 language and compiler development | Logs at colabti.org/irclogger/irclogger_log/perl6-dev | For toolchain/installation stuff see #perl6-toolchain | For MoarVM see #moarvm
Set by Zoffix on 27 July 2018.
00:03 cognominal joined 00:04 p6bannerbot sets mode: +v cognominal, cognominal left 00:05 cognominal joined 00:06 leont left, p6bannerbot sets mode: +v cognominal 00:07 cognomin_ joined 00:08 p6bannerbot sets mode: +v cognomin_ 00:10 cognominal left 00:11 cognomin_ left
timotimo lucasb: i'd assume the implementation does that because in the first one, setup of the second lines iterator happens after the first one has been exhausted, but in the second one it sets up two iterators before asking for any elements; something in that vicinity must be doing weird stuff. 00:15
00:43 cognominal joined 00:44 p6bannerbot sets mode: +v cognominal 01:13 cognomin_ joined, cognomi__ joined 01:14 p6bannerbot sets mode: +v cognomin_, p6bannerbot sets mode: +v cognomi__ 01:16 lizmat left, cognominal left 01:17 cognomin_ left 01:23 cognomi__ left 01:24 cognominal joined 01:25 p6bannerbot sets mode: +v cognominal 01:26 cognomin_ joined 01:27 p6bannerbot sets mode: +v cognomin_ 01:28 cognominal left 01:31 cognomin_ left 01:54 cognominal joined 01:55 p6bannerbot sets mode: +v cognominal
Geth rakudo: mornfall++ created pull request #2511:
Ignore library versions on OpenBSD.
02:34
02:36 cognominal left, cognominal joined 02:37 p6bannerbot sets mode: +v cognominal 02:40 cognomin_ joined 02:41 p6bannerbot sets mode: +v cognomin_ 02:42 cognominal left 02:44 cognomin_ left 03:17 cognominal joined 03:18 p6bannerbot sets mode: +v cognominal 03:46 cognomin_ joined 03:47 p6bannerbot sets mode: +v cognomin_ 03:49 cognominal left 03:50 cognomin_ left 05:49 cognominal joined, p6bannerbot sets mode: +v cognominal 06:21 cognominal left 08:19 cognominal joined 08:20 p6bannerbot sets mode: +v cognominal 08:50 cognomin_ joined 08:51 p6bannerbot sets mode: +v cognomin_ 08:53 cognominal left 08:55 cognomin_ left 10:53 cognominal joined, p6bannerbot sets mode: +v cognominal 10:55 lizmat joined, p6bannerbot sets mode: +v lizmat 11:25 cognominal left 11:40 robertle joined, p6bannerbot sets mode: +v robertle 11:45 ExtraCrispy left
lucasb m: say 1, 2 Z~ 3, 4 11:49
camelia (13 24)
lucasb m: say 1, 2 Z, 3, 4
camelia ((1 3) (2 4))
lucasb ^^ cool, I can "parameterize" the Z metaop with "~", ",", etc... to get the behavior I want, right? 11:50
m: say ('foo' x 3, 'foo' xx 3)
camelia (foofoofoo (foo foo foo))
lucasb would you agree if I said that the "x" and "xx" operators looks like a imaginary REPEAT metaop, specialized with string concatenation "~" and list creation "," ? 11:51
except that "x" and "xx" are not similar, since "xx" is thunky and "x" isn't 11:53
so in "rand x 3" you get the same number concatenated 3 times 11:54
while in "rand xx 3" you get a list of 3 different numbers
so P5 has this thunky behavior in block-less map/grep, right? 11:58
"map $_, LIST" and "map $x, LIST", despite being very similar, do very different things
I believe this was fixed in P6 by always requiring a block? like in "map {$_}, LIST" 11:59
I agree that "rand xx 3" would be less useful is it wasn't thunky. But I also can understand if someone argues that "xx" breaks the expectation that "simple operators" will only evaluate their operands once 12:07
*...less useful if it wasn't thunky.
timotimo well, it does syntactically not require a block
you can put a sub or variable there, or you can use a whatever-star curried piece of code
lucasb ah, right. I didn't mean syntactically about "map". I think it expects a Code/Callable there..., right? 12:08
timotimo m: (1, 2, 3).map(9).perl.say
camelia Cannot resolve caller map(List: Int); none of these signatures match:
($: Hash \h, *%_)
(\SELF: █; :$label, :$item, *%_)
in block <unit> at <tmp> line 1
timotimo oh? 12:09
m: (1, 2, 3).map({1 => "hi", 2 => "goodbye", 3 => "cat"}).perl.say
camelia Cannot map a List to a Hash.
Did you mean to add a stub ({...}) or did you mean to .classify?
in block <unit> at <tmp> line 1
timotimo ah
that's for when you accidentally mis-spell code as a hash instead
so you get a better error message
12:11 dogbert17 joined
lucasb timotimo: BTW, thanks commenting about (lines, lines). Actual bug, right? Deserves an issue? 12:12
12:12 p6bannerbot sets mode: +v dogbert17
timotimo the error should definitely be different 12:12
not entirely sure what the correct behaviour should be 12:13
lucasb why would that be an error?
reading a second time should return a empty list
at least, it was my expectation
timotimo er
i meant to say
that error is definitely wrong
lucasb ah, ok :-)
12:16 lizmat left, ufobat_ joined 12:17 p6bannerbot sets mode: +v ufobat_ 12:28 MasterDuke joined, p6bannerbot sets mode: +v MasterDuke, MasterDuke left, MasterDuke joined, herbert.freenode.net sets mode: +v MasterDuke, p6bannerbot sets mode: +v MasterDuke
[Tux] Rakudo version 2018.11-4-g38bc682b0 - MoarVM version 2018.11-8-gef9e65cac
csv-ip5xs0.920 - 0.933
csv-ip5xs-207.013 - 7.416
csv-parser22.675 - 22.724
csv-test-xs-200.428 - 0.430
test8.084 - 8.611
test-t1.743 - 1.789
test-t --race0.844 - 0.859
test-t-2030.601 - 31.642
test-t-20 --race10.618 - 10.732
12:38
13:11 lizmat joined, p6bannerbot sets mode: +v lizmat 13:15 MasterDuke left
Geth nqp/master: 7 commits pushed by (Paweł Murias)++ 13:19
13:23 cognominal joined 13:24 p6bannerbot sets mode: +v cognominal 13:54 cognomin_ joined 13:55 p6bannerbot sets mode: +v cognomin_ 13:56 cognominal left 13:58 cognomin_ left 14:01 ufobat_ left 14:09 pmurias joined, p6bannerbot sets mode: +v pmurias 14:14 pmurias left 14:15 pmurias joined, p6bannerbot sets mode: +v pmurias 14:29 [Tux] left 14:33 masak left, masak joined 14:34 masak is now known as Guest98771, p6bannerbot sets mode: +v Guest98771 14:40 [Tux] joined 14:41 p6bannerbot sets mode: +v [Tux] 14:44 pmurias left 14:45 pmurias joined, p6bannerbot sets mode: +v pmurias 14:47 pmurias left 14:51 pmurias joined, p6bannerbot sets mode: +v pmurias 15:20 cognominal joined 15:21 p6bannerbot sets mode: +v cognominal
lucasb m: my $x = 'a'.Int; $x 15:28
camelia WARNINGS for <tmp>:
Useless use of $x in sink context (line 1)
lucasb m: my $x = 'a'.Int; $x.sink
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5a' (indicated by ⏏)
in block <unit> at <tmp> line 1
lucasb wasn't it supposed to sink itself and throw the failure? 15:29
15:35 cognominal left
lucasb bisectable6: my $x = 'a'.Int; $x 15:35
bisectable6 lucasb, Bisecting by exit code (old=2015.12 new=38bc682). Old exit code: 1
lucasb, bisect log: gist.github.com/b5b2809a78d6c67f82...79124cfb7b 15:36
lucasb, (2016-04-09) github.com/rakudo/rakudo/commit/1c...96e30a9bad
15:36 cognominal joined 15:37 p6bannerbot sets mode: +v cognominal 15:38 cognomin_ joined, p6bannerbot sets mode: +v cognomin_ 15:40 cognominal left 15:42 cognomin_ left 16:14 cognominal joined 16:15 p6bannerbot sets mode: +v cognominal, pmurias left, pmurias joined, p6bannerbot sets mode: +v pmurias 16:24 pmurias left 16:26 pmurias joined, p6bannerbot sets mode: +v pmurias 16:44 cognomin_ joined, p6bannerbot sets mode: +v cognomin_ 16:46 cognominal left 16:48 cognomin_ left 16:51 lizmat left 17:18 lizmat joined, p6bannerbot sets mode: +v lizmat 17:23 SqrtNegInf joined 17:24 p6bannerbot sets mode: +v SqrtNegInf, cognominal joined, pmurias left 17:25 p6bannerbot sets mode: +v cognominal 17:35 pmurias joined, p6bannerbot sets mode: +v pmurias 17:44 pmurias left 17:50 pmurias joined, p6bannerbot sets mode: +v pmurias 18:00 pmurias left 18:04 cognominal left, cognominal joined 18:05 p6bannerbot sets mode: +v cognominal 18:07 cognomin_ joined, p6bannerbot sets mode: +v cognomin_ 18:09 cognominal left 18:12 cognomin_ left 18:32 pmurias joined, p6bannerbot sets mode: +v pmurias 18:33 pmurias left 18:36 Guest98771 is now known as masak 18:49 cognominal joined, p6bannerbot sets mode: +v cognominal 19:10 cognominal left 19:11 cognominal joined 19:12 p6bannerbot sets mode: +v cognominal 19:20 cognominal left 19:21 lizmat left 19:36 pmurias joined, p6bannerbot sets mode: +v pmurias 19:39 pmurias left 19:48 lizmat joined, p6bannerbot sets mode: +v lizmat 19:50 cognominal joined, pmurias joined, p6bannerbot sets mode: +v pmurias 19:51 p6bannerbot sets mode: +v cognominal 19:52 pmurias left 20:22 ufobat joined 20:23 p6bannerbot sets mode: +v ufobat, cognominal left 20:25 robertle left 21:03 pmurias joined, p6bannerbot sets mode: +v pmurias 21:11 AlexDaniel joined, p6bannerbot sets mode: +v AlexDaniel 21:53 leont joined 21:54 p6bannerbot sets mode: +v leont 21:55 ufobat left 21:57 pmurias left 21:59 pmurias joined, p6bannerbot sets mode: +v pmurias 22:05 dct joined, p6bannerbot sets mode: +v dct 22:21 cognominal joined 22:22 p6bannerbot sets mode: +v cognominal 22:24 pmurias left 22:25 pmurias joined, p6bannerbot sets mode: +v pmurias 22:51 cognomin_ joined 22:52 p6bannerbot sets mode: +v cognomin_ 22:54 cognominal left 22:56 cognomin_ left 23:21 pmurias left 23:36 dct left