Re: [perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-06 Thread Joachim Durchholz
Am 06.10.2016 um 21:07 schrieb Brandon Allbery via RT: Actually, now that I think about it, there is something that can be done; not ideal, but the best we could do under the circumstances. Callbacks should be given default exception handlers that at minimum output the original exception (which

Re: [perl #125243] [SEGV] NativeCall segfault on rw struct pointer

2016-10-06 Thread Jonathan Stowe
No I think you're right. A naive ticket :) On Thu, 2016-10-06 at 13:45 -0700, Stefan Seifert via RT wrote: > I'm rejecting this ticket because the given example is simply wrong. > NativeCall translates a Str to char *, i.e. a pointer to a character > array. Thus it will reserve the memory to

Re: [perl #126517] [JVM] can't have sub as implicit return of sub

2016-10-06 Thread Elizabeth Mattijsen
Christian, > On 06 Oct 2016, at 22:23, Christian Bartolomaeus via RT > wrote: >> 13:42 < lizmat> [Coke]: that is a known issue, several places in the >> core work >>around that >> 13:42 < lizmat> r: sub foo($a) { my $ = sub bar {} }; my $a=foo(1); >>

[perl #127949] [JVM] Dying test in S02-literals/allomorphic.t when comparing ComplexStr with infix:

2016-10-06 Thread Christian Bartolomaeus via RT
This works now on JVM (fixed by psch++ with https://github.com/perl6/nqp/commit/1344f28130) $ ./perl6-j -e 'say < 8+9i > eqv ComplexStr.new(<8+9i>, "8+9i")' True I'm closing this ticket as 'resolved'.

[perl #129782] [JVM] Some evaluations return Int instead of Bool due to optimizer's work

2016-10-06 Thread Christian Bartolomaeus via RT
Fixed with https://github.com/perl6/nqp/commit/5769a65fbc and https://github.com/perl6/nqp/commit/2d88d98201 I'm closing this ticket as 'resolved'.

[perl #124493] [JVM] Roast rakudo skip/todo test:./S02-types/anon_block.t line:123 reason: ?

2016-10-06 Thread Christian Bartolomaeus via RT
The test passes no on JVM. I'm closing this ticket as 'resolved'.

[perl #122583] [JVM] "$( ...)" list interpolation (not in sink context?)

2016-10-06 Thread Christian Bartolomaeus via RT
The tests in S02-literals/misc-interpolation.t are passing now with rakudo-j. (Fixed with https://github.com/perl6/nqp/commit/2d88d98201) I'm closing this ticket as 'resolved'.

[perl #126517] [JVM] can't have sub as implicit return of sub

2016-10-06 Thread Christian Bartolomaeus via RT
On Sat Oct 31 10:56:36 2015, coke wrote: > This dies, but only on the JVM: > > 13:41 < [Coke]> r: sub foo($a) { sub bar {} }; my $a=foo(1); > 13:41 <+camelia> rakudo-moar a05867: ( no output ) > 13:41 <+camelia> ..rakudo-jvm a05867: > OUTPUT«java.lang.NullPointerException␤ > in

Re: [perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-06 Thread Brandon Allbery via RT
On Thu, Oct 6, 2016 at 1:48 PM, Brandon Allbery via RT < perl6-bugs-follo...@perl.org> wrote: > I believe this is known. and it's difficult to fix: you simply can't map > exceptions across languages, so an exception in a Perl callback from a C > function called from Perl can only be caught in the

Re: [perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-06 Thread Brandon Allbery
On Thu, Oct 6, 2016 at 1:48 PM, Brandon Allbery via RT < perl6-bugs-follo...@perl.org> wrote: > I believe this is known. and it's difficult to fix: you simply can't map > exceptions across languages, so an exception in a Perl callback from a C > function called from Perl can only be caught in the

[perl #126491] [JVM] 42 but False

2016-10-06 Thread Christian Bartolomaeus via RT
Fixed with https://github.com/perl6/nqp/commit/2d88d98201 I'm closing this ticket as 'resolved'.

Re: [perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-06 Thread Brandon Allbery via RT
On Thu, Oct 6, 2016 at 1:39 PM, Itsuki Toyota wrote: > In the following example, ` my = sub (Int $piyo) ` has wrong > signature (` my = sub (Int $piyo, Num $fuga) ` is a right one)and > it returns the error message of "Internal error: Unwound entire stack and >

Re: [perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-06 Thread Brandon Allbery
On Thu, Oct 6, 2016 at 1:39 PM, Itsuki Toyota wrote: > In the following example, ` my = sub (Int $piyo) ` has wrong > signature (` my = sub (Int $piyo, Num $fuga) ` is a right one)and > it returns the error message of "Internal error: Unwound entire stack and >

[perl #129820] [NATIVECALL][LTA] callback returns useless error message

2016-10-06 Thread via RT
# New Ticket Created by Itsuki Toyota # Please include the string: [perl #129820] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129820 > In the following example, ` my = sub (Int $piyo) ` has wrong signature (` my = sub

[perl #129819] [NATIVECALL] t/04-nativecall/13-union.t flopping

2016-10-06 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #129819] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129819 > The t/04-nativecall/13-union.t flops a lot on OSX, causing a lot of noise from Travis

[perl #129817] (De)serialization of state variables is not implemented.

2016-10-06 Thread via RT
# New Ticket Created by Paweł Murias # Please include the string: [perl #129817] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129817 > The contents of state variables is not preserved when serializing closures. Bug is

Re: [perl #129776] [CUR][PERF] Extremely slow performance when running in directory with lots of modules

2016-10-06 Thread Elizabeth Mattijsen
By re-implementing Rakudo::Internals.DIR-RECURSE, the time has gone down to about a second. This is still calculating a SHA1 of ~1000 files for the perl6/mu case, but the overhead of scanning the directories is now much less because directory entries are pruned much earlier, and directories