Re: C static analysis on rakudo sources

2016-10-17 Thread Timo Paulssen
Yup! https://scan.coverity.com/projects/paultcochrane-moarvm

[perl #129894] 1**NaN is 1, but any numeric operation with NaN should be NaN (say 1**NaN)

2016-10-17 Thread Zoffix Znet via RT
So that leaves nqp::pow_n(1e0, NaN) == 1e0. Is that also part of IEEE? I see that Perl 5 gives a NaN for NaN**0, but 1 for 1**NaN: zoffix@VirtualBox:~$ perl -wlE 'say -sin(9**9**9)**0'

[perl #129894] 1**NaN is 1, but any numeric operation with NaN should be NaN (say 1**NaN)

2016-10-17 Thread Zoffix Znet via RT
I took a gander at 2008 IEEE 754 standard and section "9.2.1 Special values" has this to say: pow (x, ±0) is 1 for any x (even a zero, quiet NaN, or infinity) pow (+1, y) is 1 for any y (even a quiet NaN) So our behaviour is correct. Rejecting. On Mon Oct 17 03:05:33 2016, c...@zoffix.

Re: [perl #129212] problem mixing in role with multi builds

2016-10-17 Thread mt1957
Hi, Revisiting the problem using rakudo version 2016.10-31-g6ed3a68 built on MoarVM version 2016.10 implementing Perl 6.c. The issue still exist but tried to rewrite things to get it working role RR1 { submethod BUILD ( Int :$i ) { say $i // 'No i'; } } role RR2 { submethod BUILD ( Str

[perl #60490] Rakudo doesn't report an error on log(0)

2016-10-17 Thread Zoffix Znet via RT
Looks like this bug re-appeared and Rakudo's function all come down to nqp::log_n(): m: say log 0 rakudo-moar 2dd0dd: OUTPUT«-Inf␤» m: use nqp; say nqp::log_n(0e0) rakudo-moar 2dd0dd: OUTPUT«-Inf␤» 2008 IEEE 754[^1], in section 9.2, says log(0) needs to give a divideByZero e

[perl #60490] Rakudo doesn't report an error on log(0)

2016-10-17 Thread Zoffix Znet via RT
I should've read more: "Section 7.3 Division by zero", says 'For logB(0) when logBFormat is a floating-point format, the sign of the infinity is minus (−∞).' And I'm guessing this case matches it, because JVM and C standard lib too give -Inf and nqp just maps the operations to VM's operations.

Unexpected feature

2016-10-17 Thread Parrot Raiser
I just downloaded the 2016.10 RC (into a different directory than 2016.07, in case it broke something). Testing the REPL, scrolling back through the commands continued back into the history of previous sessions with the older version. (I.e, they appear to be accessing the same history file.) At t

[perl #129906] Error when role stubbed as class

2016-10-17 Thread via RT
# New Ticket Created by hanenkamp # Please include the string: [perl #129906] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129906 > One line example of the problem: % perl6 -e 'class A { ... }; class B does A { }; role A {

[perl #129907] [BUG] interaction of class FALLBACK methods and safe method calls (.?)

2016-10-17 Thread via RT
# New Ticket Created by David Warring # Please include the string: [perl #129907] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129907 > I'm adding a FALLBACK method to create method dynamically, the it receives both '.' and