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:02 Ven`` joined 00:03 p6bannerbot sets mode: +v Ven`` 02:55 SqrtNegInf left 03:43 SqrtNegInf joined 03:44 p6bannerbot sets mode: +v SqrtNegInf 07:40 evalable6 left 07:44 evalable6 joined 07:45 p6bannerbot sets mode: +v evalable6
AlexDaniel squashable6: status 10:03
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈1 hour. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/f3a540ea668da03be0...a1de9a8ea9
10:33 [Tux] left
lizmat Files=1264, Tests=87987, 375 wallclock secs (20.02 usr 6.04 sys + 2669.78 cusr 224.60 csys = 2920.44 CPU) 10:44
10:47 [Tux] joined, p6bannerbot sets mode: +v [Tux]
[Tux] Goot * folk, has something changed in Numification? I see CSV tests fail where I did not change anything 11:38
lizmat [Tux] could be me, do you have a golf ? 11:44
[Tux] m: dd +"15".unival.Int 11:46
camelia 1
lizmat .ask samcv how hard would it be to create a "give me a random key of a hash" nqp op that would be significantly faster than the current Map.roll ?
yoleaux lizmat: I'll pass your message to samcv.
lizmat [Tux]: do you that's wrong ? 11:47
*think
[Tux] no, but I now have doubts about the line before it:
method Numeric {
$!text.defined
?? $!text.starts-with(0..9) ?? +$!text
!! $!text.unival.Int
!! Num;
}
m: my Str $t = "15"; $t.starts-with(0..9) and say "YES"; 11:49
camelia ( no output )
[Tux] that used to say YES
AlexDaniel lizmat: please see github.com/rakudo/rakudo/wiki/Ticket-updates 11:52
lizmat: there are two reports for the last two week (current week will be ready tomorrow), one more for the month of Dec and another one for the whole 2018 year
s
c: 2018.12 my Str $t = "15"; $t.starts-with(0..9) and say "YES"; 11:54
committable6 AlexDaniel, ¦2018.12: «»
AlexDaniel c: 2018.10 my Str $t = "15"; $t.starts-with(0..9) and say "YES";
committable6 AlexDaniel, ¦2018.10: «»
AlexDaniel c: releases my Str $t = "15"; $t.starts-with(0..9) and say "YES";
committable6 AlexDaniel, ¦releases (36 commits): «» 11:55
AlexDaniel [Tux]: no, it never said YES
[Tux] then /me wonders why those tests ever PASSed
AlexDaniel do you have the full test as a gist? we can bisect 11:56
lizmat weekly: github.com/rakudo/rakudo/wiki/Ticket-updates
notable6 lizmat, Noted!
lizmat AlexDaniel++
[Tux] it is t/30_field.t fro Text::CSV
m 11:57
AlexDaniel oh so Blin should be able to figure it out, right?
AlexDaniel runs `PERL6LIB=lib ./bin/blin.p6 --old=2018.10 Text::CSV` 11:58
[Tux] tux.nl/Files/x.pl ← minimized test case 11:59
AlexDaniel c: releases gist.github.com/AlexDaniel/92f6f26...a70b71c252
committable6 AlexDaniel, gist.github.com/411652a91700e189da...61b489b1b0 12:00
AlexDaniel [Tux]: see ↑
if there was a change, then the test case is too minimized
[Tux] apologizes - looks like a local change that isn't pushed and that could never have worked: 12:02
- ?? $!text ~~ m{^ <[0..9]> } ?? +$!text
+ ?? $!text.starts-with(0..9) ?? +$!text
but should it? :) 12:03
AlexDaniel [Tux]: Blin refused to bisect it because tests passed: gist.github.com/AlexDaniel/45bb958...ffe8f550ea
oh, ok, I see :)
Blin++ committable6++ :) 12:04
[Tux]: see also github.com/rakudo/rakudo/issues/2268 12:05
TL;DR everybody wants to add more candidates to basic string matching functions because performance, but we should be making regex matches faster instead 12:08
and if that's not possible, add just one more function that doesn't create a Match object
IMO 12:09
[Tux] I think I agree. My change was however not directly geared towards not using regexes, as to DWIM'ary 12:11
AlexDaniel sorry, no, it doesn't look like a good idea 12:14
it may look cute for 0..9, but what about other kinds of ranges? 12:15
like 0..999? -999..999? Should it all work?
what about string ranges?
False..True? What does that match? 12:16
[Tux] all of those examples would at least *read* easier than a regex
AlexDaniel even if I can read them easily, I still have no idea what they'd do :) 12:17
[Tux] I'd restrict the list to Cool, but I was just fantasising
AlexDaniel and what does that mean? 12:18
[Tux] 0..999: the string starts with 1 to three digits (probably a lot less efficient than using a regex)
-999..999: The string starts with an optional minus folowed by 1 to 3 digits. Again a lot slower than a regex 12:19
but yes, a gray zone
AlexDaniel so what if it starts with a plus?
[Tux] it doesn't match
AlexDaniel why? 12:20
see…
[Tux] because the range has no plus
AlexDaniel how do you create a range with a plus?
[Tux] with map :P
AlexDaniel ok, fine, I'll take that
now, unicode minus and hyphen-minus at the same time, right? 12:21
[Tux] nope
AlexDaniel I mean… it's probably more explicit to write your own regex… 12:22
[Tux] 00002d 0002d7 002212 002796 00ff0d
yes, a regex is much clearer in most cases (when entering the gray zone)
AlexDaniel it's not exactly a gray zone 12:23
it's something we will have to implement and test
[Tux] but just like with split/haystack, $string.starts-with(@list), where @list is a list of Cool, should be DWIM
AlexDaniel github.com/perl6/doc/issues/992 12:25
kinda reverse though, hmm
[Tux] is is just a translation to something like @list.first($string.starts-with(*)}
given the correct parens and races and whatever 12:26
AlexDaniel m: say ‘f o o’.starts-with(<f o>)
camelia True
AlexDaniel m: say ‘fo o’.starts-with(<f o>)
camelia False
AlexDaniel right, still github.com/perl6/doc/issues/992 I'd say
[Tux] indeed 992 in reverse
m: ("A" .. "M").first: "Zoe".starts-with(*); 12:41
camelia Cannot resolve caller starts-with(Str:D: Whatever:D); none of these signatures match:
(Str:D: Cool:D $needle, *%_ --> Bool)
(Str:D: Str:D $needle, *%_ --> Bool)
in block <unit> at <tmp> line 1
[Tux] should that be valid? I just read the docs on "first", but I don't see why that barfs
Rakudo version 2018.12-163-g64c88f919 - MoarVM version 2018.12-15-g2ee7596dd
csv-ip5xs0.957 - 1.116
csv-ip5xs-207.121 - 8.283
csv-parser23.055 - 25.568
csv-test-xs-200.444 - 0.444
test7.455 - 7.895
test-t1.818 - 1.927
test-t --race0.816 - 0.862
test-t-2031.234 - 34.061
test-t-20 --race9.757 - 9.816
12:42
lizmat [Tux]: it barfs on starts-with 12:43
m: "a".starts-with(*)
camelia Cannot resolve caller starts-with(Str:D: Whatever:D); none of these signatures match:
(Str:D: Cool:D $needle, *%_ --> Bool)
(Str:D: Str:D $needle, *%_ --> Bool)
in block <unit> at <tmp> line 1
[Tux] I see, but *why* 12:47
* comes from first
so it is "A" .. "M" until the part right of: is true 12:48
[Tux] must go now. Lunch and then new-years visit :( 12:49
lizmat bisectable6: old=2018.03 new=2018.11 print 9999999999999999.0-9999999999999998.0 13:05
bisectable6 lizmat, Bisecting by output (old=2018.03 new=2018.11) because on both starting points the exit code is 0
lizmat, bisect log: gist.github.com/05d221469f2e6c155f...e1020ca479
lizmat, (2018-08-01) github.com/rakudo/rakudo/commit/fe...ae39f587a3
13:06 Ven`` left
AlexDaniel c: fec1bd74f97^,fec1bd74f97 print 9999999999999999.0-9999999999999998.0 13:09
committable6 AlexDaniel, ¦fec1bd74f97^: «2» ¦fec1bd7: «1»
13:16 patrickb joined 13:17 p6bannerbot sets mode: +v patrickb 14:22 lucasb joined, p6bannerbot sets mode: +v lucasb 15:19 Ven`` joined 15:20 p6bannerbot sets mode: +v Ven``
Geth star: hankache++ created pull request #130:
Update sha256sum instructions
15:44
star: d1beacbb16 | (Naoum Hankache)++ | 2 files
Update sha256sum instructions

Signed-off-by: Naoum Hankache [email@hidden.address]
15:46
star: d86b72edea | (Naoum Hankache)++ (committed using GitHub Web editor) | 2 files
Merge pull request #130 from hankache/master

Update sha256sum instructions
samcv lizmat, well. i mean you could do it faster than now 15:51
yoleaux 11:46Z <lizmat> samcv: how hard would it be to create a "give me a random key of a hash" nqp op that would be significantly faster than the current Map.roll ?
samcv i mean i'd probably choose a random slot and then choose a random key in the chain inside that slot
so i guess the answer is yet :) 15:52
15:58 Ven`` left 17:18 huggable left 17:30 Ven`` joined 17:31 p6bannerbot sets mode: +v Ven`` 17:39 ZofBot left, buggable left
lizmat samcv: related discussion R#2586 17:43
synopsebot R#2586 [closed]: github.com/rakudo/rakudo/issues/2586 Hash.pick is very slow on big hashes.
18:11 lucasb left 18:16 p6bannerbot left, p6bannerbot joined, moon.freenode.net sets mode: +o p6bannerbot
Geth rakudo: 839f28e77a | (Elizabeth Mattijsen)++ | src/core/CompUnit/Repository/Locally.pm6
Streamline CompUnit::Repository::Locally.id a bit
18:22
rakudo: 6d58e0b0be | (Elizabeth Mattijsen)++ | src/core/Buf.pm6
Make Buf.gist about 2.5x as fast

  - for a 100 elem buffer or larger
  - use nqp stringification and string manipulation rather than map with state
18:26 lizmat left 18:30 lizmat joined, p6bannerbot sets mode: +v lizmat 18:43 Ven` joined, p6bannerbot sets mode: +v Ven` 19:39 Ven`` left 19:40 Ven` left 19:44 Ven`` joined 19:45 p6bannerbot sets mode: +v Ven`` 19:55 Ven`` left 20:42 Ven`` joined 20:43 p6bannerbot sets mode: +v Ven`` 20:44 patrickb left 20:56 Ven`` left 21:07 Ven`` joined 21:08 p6bannerbot sets mode: +v Ven`` 21:14 Ven`` left 21:22 Ven`` joined, p6bannerbot sets mode: +v Ven`` 21:33 AlexDaniel left 21:35 AlexDaniel joined, p6bannerbot sets mode: +v AlexDaniel 22:06 vendethiel- joined 22:07 p6bannerbot sets mode: +v vendethiel- 22:52 dct joined, p6bannerbot sets mode: +v dct