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

42 but False #4689

Closed
p6rt opened this issue Oct 29, 2015 · 8 comments
Closed

42 but False #4689

p6rt opened this issue Oct 29, 2015 · 8 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Oct 29, 2015

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

Searchable as RT126491$

@p6rt
Copy link
Author

p6rt commented Oct 29, 2015

From @coke

This test from integration/advent2010-day19.t works on moar, but not on the JVM.

16​:33 < [Coke]> r​: my $value = 42 but False; say ?$value;
16​:33 <+camelia> rakudo-jvm 3cc195​: ( no output )
16​:33 <+camelia> ..rakudo-moar 3cc195​: OUTPUT«False␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Apr 8, 2016

From @peschwa

On Thu Oct 29 13​:35​:04 2015, coke wrote​:

This test from integration/advent2010-day19.t works on moar, but not
on the JVM.

16​:33 < [Coke]> r​: my $value = 42 but False; say ?$value;
16​:33 <+camelia> rakudo-jvm 3cc195​: ( no output )
16​:33 <+camelia> ..rakudo-moar 3cc195​: OUTPUT«False␤»

http://irclog.perlgeek.de/p6dev/2016-04-07#i_12299830 has my findings regarding this bug. Unfortunately nothing that points towards a fix, but at least some digging regarding what's happening.

@p6rt
Copy link
Author

p6rt commented Apr 8, 2016

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

@p6rt
Copy link
Author

p6rt commented Oct 2, 2016

From @usev6

For the records​: This works with '--optimize=off' (as psch++ has shown in the linked discussion on #perl6).

$ ./perl6-j --optimize=off -e 'my $value = 42 but False; say ?$value'
False

The optimizer adds a QAST​::Want for the mixin which the JVM backend does not handle correctly.

$ RAKUDO_OPTIMIZER_DEBUG=1 ./perl6-j -e 'my $value = 42 but False; say ?$value'
[...]
  - QAST​::Want <>
  - QAST​::WVal(Int+{<anon|1285927979>}) <>
  - Ii
  - QAST​::IVal(42) <>
[...]
True

See also my findings in https://rt-archive.perl.org/perl6/Ticket/Display.html?id=129782 which is about a similar problem.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 2, 2016

From @usev6

For the records​: This works with '--optimize=off' (as psch++ has shown in the linked discussion on #perl6).

$ ./perl6-j --optimize=off -e 'my $value = 42 but False; say ?$value'
False

The optimizer adds a QAST​::Want for the mixin which the JVM backend does not handle correctly.

$ RAKUDO_OPTIMIZER_DEBUG=1 ./perl6-j -e 'my $value = 42 but False; say ?$value'
[...]
  - QAST​::Want <>
  - QAST​::WVal(Int+{<anon|1285927979>}) <>
  - Ii
  - QAST​::IVal(42) <>
[...]
True

See also my findings in https://rt-archive.perl.org/perl6/Ticket/Display.html?id=129782 which is about a similar problem.

@p6rt
Copy link
Author

p6rt commented Oct 6, 2016

From @usev6

Fixed with Raku/nqp@2d88d98201

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 6, 2016

From @usev6

Fixed with Raku/nqp@2d88d98201

I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed Oct 6, 2016
@p6rt
Copy link
Author

p6rt commented Oct 6, 2016

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

@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant