Skip to content
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 & .hyper break [+] (1..100) #5994

Closed
p6rt opened this issue Jan 17, 2017 · 6 comments
Closed

.race & .hyper break [+] (1..100) #5994

p6rt opened this issue Jan 17, 2017 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 17, 2017

Migrated from rt.perl.org#130576 (status was 'resolved')

Searchable as RT130576$

@p6rt
Copy link
Author

p6rt commented Jan 17, 2017

From @coke

The presence of a hyper or race causes incorrect output in some cases.
Originally found with the .grep in the pipeline, but seems to impact
even the simple case.

$ perl6 -e 'say [+] (1..100)'
5050

$ perl6 -e 'say [+] (1..100).race'
0

$ perl6 -e 'say [+] (1..100).grep(* != 22)'
5028

$ perl6 -e 'say [+] (1..100).race.grep(* != 22)'
0

$ perl6 -e 'say [+] (1..100).hyper.grep(* != 22)'
0

$ perl6 -e 'say [+] (1..100).grep(* != 22).race'
0

$ perl6 -e 'say [+] (1..100).grep(* != 22).hyper'
0

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 17, 2017

From @zoffixznet

.elems also seems to always return 0​:

18​:11 brokenchicken m​: ^100 .race.elems.say
18​:11 camelia rakudo-moar 7d5bbe​: OUTPUT«0␤»
18​:11 brokenchicken m​: ^100 .race(​:batch).elems.say
18​:11 camelia rakudo-moar 7d5bbe​: OUTPUT«0␤»

@p6rt
Copy link
Author

p6rt commented Jan 18, 2017

From @smls

Looks like the same issue as

  #​127452​: [CONC] hyper is very broken, *sometimes* it returns nothing
  #​126597​: .race.grep(...) and .hyper.grep(...) produce an empty sequence

@p6rt
Copy link
Author

p6rt commented Jan 18, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 18, 2017

From @jnthn

On Tue, 17 Jan 2017 10​:10​:44 -0800, coke wrote​:

The presence of a hyper or race causes incorrect output in some cases.
Originally found with the .grep in the pipeline, but seems to impact
even the simple case.

$ perl6 -e 'say [+] (1..100)'
5050

$ perl6 -e 'say [+] (1..100).race'
0

$ perl6 -e 'say [+] (1..100).grep(* != 22)'
5028

$ perl6 -e 'say [+] (1..100).race.grep(* != 22)'
0

$ perl6 -e 'say [+] (1..100).hyper.grep(* != 22)'
0

$ perl6 -e 'say [+] (1..100).grep(* != 22).race'
0

$ perl6 -e 'say [+] (1..100).grep(* != 22).hyper'
0

Fixed in new hyper/race implementation; tests in S07-hyperrace/hyper.t and S07-hyperrace/race.t.

@p6rt
Copy link
Author

p6rt commented Oct 18, 2017

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 18, 2017
@p6rt p6rt added the conc label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant