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

.roll(-9999999999999999999999999999999999999999999999999) #4480

Closed
p6rt opened this issue Aug 15, 2015 · 6 comments
Closed

.roll(-9999999999999999999999999999999999999999999999999) #4480

p6rt opened this issue Aug 15, 2015 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Aug 15, 2015

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

Searchable as RT125820$

@p6rt
Copy link
Author

p6rt commented Aug 15, 2015

From @AlexDaniel

Code​:
say <a b c d
e>.roll(-9999999999999999999999999999999999999999999999999).perl;

Result​:
it hangs

Code​:
say <a b c d
e>.roll(-99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
("b",)

On the other hand​:
say <a b c d
e>.roll(99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
()

@p6rt
Copy link
Author

p6rt commented Oct 2, 2017

From @AlexDaniel

This now simply complains about unboxing a large integer. Not sure when this changed, but testneeded.

On 2015-08-14 22​:21​:17, alex.jakimenko@​gmail.com wrote​:

Code​:
say <a b c d
e> .roll(-9999999999999999999999999999999999999999999999999).perl;

Result​:
it hangs

Code​:
say <a b c d
e> .roll(-
e> 99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
("b",)

On the other hand​:
say <a b c d
e> .roll(99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
()

@p6rt
Copy link
Author

p6rt commented Oct 3, 2017

From @AlexDaniel

FWIW, fix bisected (not precisely, but maybe this helps anyway)​:
* bisect log​: https://gist.github.com/5049c109fce53fa78ff969a44ba66366
* (2015-08-27) rakudo/rakudo@23b3d29

Raku/nqp@2015.07.2-29-ga9a4c0b...2015.07.2-35-g02910ff
MoarVM/MoarVM@2015.07-59-g64fba68...2015.07-68-g3240047

On 2017-10-01 23​:31​:00, alex.jakimenko@​gmail.com wrote​:

This now simply complains about unboxing a large integer. Not sure
when this
changed, but testneeded.

On 2015-08-14 22​:21​:17, alex.jakimenko@​gmail.com wrote​:

Code​:
say <a b c d
e> .roll(-9999999999999999999999999999999999999999999999999).perl;

Result​:
it hangs

Code​:
say <a b c d
e> .roll(-
e> 99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
("b",)

On the other hand​:
say <a b c d
e>
.roll(99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
()

@p6rt
Copy link
Author

p6rt commented Oct 3, 2017

From @AlexDaniel

See also https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125816 (same bisectable result)

On 2017-10-02 17​:12​:02, alex.jakimenko@​gmail.com wrote​:

FWIW, fix bisected (not precisely, but maybe this helps anyway)​:
* bisect log​: https://gist.github.com/5049c109fce53fa78ff969a44ba66366
* (2015-08-27)
rakudo/rakudo@23b3d29

https://github.com/perl6/nqp/compare/2015.07.2-29-
ga9a4c0b...2015.07.2-35-g02910ff
https://github.com/MoarVM/MoarVM/compare/2015.07-59-
g64fba68...2015.07-68-g3240047

On 2017-10-01 23​:31​:00, alex.jakimenko@​gmail.com wrote​:

This now simply complains about unboxing a large integer. Not sure
when this
changed, but testneeded.

On 2015-08-14 22​:21​:17, alex.jakimenko@​gmail.com wrote​:

Code​:
say <a b c d
e> .roll(-9999999999999999999999999999999999999999999999999).perl;

Result​:
it hangs

Code​:
say <a b c d
e> .roll(-
e> 99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
("b",)

On the other hand​:
say <a b c d
e>

.roll(99999999999999999999999999999999999999999999999999999999999999999).perl;

Result​:
()

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

@p6rt p6rt closed this as completed Dec 11, 2017
@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

@zoffixznet - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant