Open p6rt opened 8 years ago
Starting with rakudo commit fe2be65806 two tests in S16-io/supply.t start to fail with rakudo-j. The following rakudo commit 463e7589a1 seems to change the code path for the tests in question, but also makes them fail. Only if one reverts both commits, the tests pass again.
The following code is a shortened version of one of the failing tests. Probably it could be golfed further.
$ perl6-j -e 'my $f = "foo"; spurt($f,"a"); my $h = open($f); my $s = $h.Supply(:size(1),:bin); my $x; $s.tap( { $x = $_ } ); $h.close; my $y = Buf[uint8].new(ord "a"); say $x; say $y; say $x eqv $y' Buf[uint8]:0x\<61> Buf[uint8]:0x\<61> False
On rakudo-m the last comparison returns True:
$ perl6-m -e 'my $f = "foo"; spurt($f,"a"); my $h = open($f); my $s = $h.Supply(:size(1),:bin); my $x; $s.tap( { $x = $_ } ); $h.close; my $y = Buf[uint8].new(ord "a"); say $x; say $y; say $x eqv $y' Buf[uint8]:0x\<61> Buf[uint8]:0x\<61> True
On Sat, 30 Apr 2016 11:16:44 -0700, bartolin@gmx.de wrote:
Starting with rakudo commit fe2be65806 two tests in S16-io/supply.t start to fail with rakudo-j. The following rakudo commit 463e7589a1 seems to change the code path for the tests in question, but also makes them fail. Only if one reverts both commits, the tests pass again.
The following code is a shortened version of one of the failing tests. Probably it could be golfed further.
$ perl6-j -e 'my $f = "foo"; spurt($f,"a"); my $h = open($f); my $s = $h.Supply(:size(1),:bin); my $x; $s.tap( { $x = $_ } ); $h.close; my $y = Buf[uint8].new(ord "a"); say $x; say $y; say $x eqv $y' Buf[uint8]:0x\<61> Buf[uint8]:0x\<61> False
On rakudo-m the last comparison returns True:
$ perl6-m -e 'my $f = "foo"; spurt($f,"a"); my $h = open($f); my $s = $h.Supply(:size(1),:bin); my $x; $s.tap( { $x = $_ } ); $h.close; my $y = Buf[uint8].new(ord "a"); say $x; say $y; say $x eqv $y' Buf[uint8]:0x\<61> Buf[uint8]:0x\<61> True
Golfed it a bit (buf8 is what the Supply uses):
\
The RT System itself - Status changed from 'new' to 'open'
https://irclog.perlgeek.de/perl6-dev/2017-03-20#i_14297315
Time Nick Message
01:37 IOninja .ask lizmat do you know if it's a bug that `sink-all` isn't called when the Seq is sunk naturally instead of explicitly? I vaguely recall you asking about it. What was the answer? m: my $s = Seq.new: class :: does Iterator { method pull-one {}; method sink-all { say "sunk " } }.new; $s
01:37 yoleaux2 IOninja: I'll pass your message to lizmat.
2 more elements. Show/hide.
03:32 Geth ¦ roast: 1f844e1637 | (Daniel Green)++ | S03-operators/repeat.t
03:32 ¦ roast: Add another test for RT #128035
03:32 ¦ roast:
03:32 ¦ roast: Giving the `x` repeat op a too large value should throw instead of going
03:32 ¦ roast: negative and silently not doing anything.
03:32 synopsebot6 Link: https://rt-archive.perl.org/perl6//Public/Bug/Display.html?id=128035
03:32 Geth ¦ roast: review: https://github.com/perl6/roast/commit/1f844e1637
2 more elements. Show/hide.
07:21 samcv buggable, tag uni
07:21 buggable samcv, There are 31 tickets tagged with UNI; See http://perl6.fail/t/UNI for details
07:35 samcv time to tend to some unicode bugs
07:37 question. this bug is technically fixed https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130564#ticket-history since we have East_Asian_Width property. but it's LTA because it only shows the short names instead of the full written out ones
07:38 should i edit this bug to be for the new status or make a new one and close this one
07:40 u: { .uniprop('GCB') eq 'Control' and "\x[200b,$_]".chars > 1 }
07:40 unicodable6 samcv, https://gist.github.com/296e3bc3da1e7a1c6d0b3d472fcc82cf
07:41 samcv u: { .uniprop('GCB') eq 'Control' and "\x[200b]{$_.chr}".chars > 1 }
07:41 unicodable6 samcv, U+0000 \<control-0000> [Cc] (control character)
07:41 samcv, U+0001 \<control-0001> [Cc] (control character)
07:43 samcv u: { .uniprop('GCB') eq 'Control' and "\x[200b]{$_.chr}".chars \< 2 }
07:43 unicodable6 samcv, Found nothing!
07:44 samcv u: { .uniprop('GCB') eq 'Control' and "\x[01]{$_.chr}".chars \< 2 }
07:44 unicodable6 samcv, Found nothing!
09:32 robertle joined #perl6-dev
09:40 lizmat .
09:40 yoleaux2 01:37Z \
I meant... https://irclog.perlgeek.de/perl6-dev/2017-03-20#i_14297315
21:28 bartolin r: use nqp; say nqp::eqaddr(buf8.WHAT,Buf[uint8].WHAT) # RT #130914 21:28 synopsebot6 Link: https://rt-archive.perl.org/perl6//Public/Bug/Display.html?id=130914 21:28 camelia rakudo-moar 0c6281: OUTPUT: «1» 21:28 ..rakudo-jvm fb4f16: OUTPUT: «0» 21:28 bartolin j: use nqp; say nqp::jvmeqaddr(buf8.WHAT,Buf[uint8].WHAT) 21:28 camelia rakudo-jvm fb4f16: OUTPUT: «1» 21:28 IOninja cool 21:28 Why is there a separate op for that? 21:29 * bartolin has no idea 21:30 it looks like jvmeqaddr isn't used anywhere (neither nqp nor rakudo)
Migrated from rt.perl.org#128041 (status was 'open')
Searchable as RT128041$