New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.race.grep(...) and .hyper.grep(...) produce an empty sequence #4739
Comments
From matt.oates@congenica.comThe following has an empty result when using race or hyper in perl6 version 2015.10-233-gac750a9 built on MoarVM version 2015.10-61-g624d504 $ perl6
Looks specifically like the methods after the hyper/race never get called:
|
From @MouqOn Mon Nov 09 06:36:49 2015, matt.oates@congenica.com wrote:
Another, probably related case is that maps on hyper work with with normal subroutines, but not multis: 18:47 < Quom_> Did anyone else notice this issue: |
The RT System itself - Status changed from 'new' to 'open' |
From @AlexDanielRegular grep: <AlexDaniel> m: say ^10 .grep: *.is-prime With hyper: <AlexDaniel> m: say ^10 .hyper.grep: *.is-prime With race: <AlexDaniel> m: say ^10 .race.grep: *.is-prime More: <AlexDaniel> m: my @a = ^1000 .hyper.grep(* > 5); say @a What is this “it has 0 elements.” thing? Why do I see it? Why it returns an |
From @cokeOn Wed Jan 06 06:35:15 2016, alex.jakimenko@gmail.com wrote:
This was added by timo after Christmas; This debug output is the only thing in the conditional block it appears in. $ git show 20c796cd hyper now cares about sequence numbers of work this code wants to get a bit cleaned up. i'm sure -- |
The RT System itself - Status changed from 'new' to 'open' |
From @timoI just kicked out the debug output, but sadly hyper + grep remains |
From alex.hartmaier@gmail.comI've stumbled over this bug today too when using @array.combinations(3).race.grep(&is-match).say. |
From @smlsAs another data-point, the problem only occurs when .grep is called directly on the HyperSeq returned by .hyper/.race, and not when a .map is interposed: say (1..10).hyper().grep(* > 3); # () |
From @jnthnOn Mon, 09 Nov 2015 06:36:49 -0800, matt.oates@congenica.com wrote:
Fixed in new hyper/race implementation; tests in S07-hyperrace/hyper.t and S07-hyperrace/race.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126597 (status was 'resolved')
Searchable as RT126597$
The text was updated successfully, but these errors were encountered: