How to profile Perl 6 applications?

2015-10-24 Thread Gabor Szabo
Hi, The Devel::NYTProf helped me a lot locating the source of slowness on the Perl Maven site. Is there something similar for Perl 6 so I can try to improve the speed of the Perl 6 Maven site too? Gabor

[perl #120071] Losing type info in the bowels of MapIter

2015-10-24 Thread Christian Bartolomaeus via RT
The type info for deleted elements is not lost anymore: $ perl6-m -e 'my Int @a=^3; @a[1]:delete; @a.map:{say .WHAT.perl }; @a[1].WHAT.perl.say' Int Int Int Int I added a test to S09-typed-arrays/arrays.t with commit https://github.com/perl6/roast/commit/4ec7087158 I'm closing this ticket as '

[perl #123037] [BUG] .gist on typed array shows (Any) instead of real type objects

2015-10-24 Thread Christian Bartolomaeus via RT
Also masak's example works now as expected: $ perl6 -e 'my Int @a; @a[4]++; say @a[0]; say @a' (Int) [(Int) (Int) (Int) (Int) 1] I added a test (without say, but using .gist) to S09-typed-arrays/arrays.t with commit https://github.com/perl6/roast/commit/4ec7087158. I'm closing this ticket as 'r

Re: How to profile Perl 6 applications?

2015-10-24 Thread Moritz Lenz
Hi Gabor, On 10/24/2015 09:26 AM, Gabor Szabo wrote: > The Devel::NYTProf helped me a lot locating the source of slowness on > the Perl Maven site. > Is there something similar for Perl 6 so I can try to improve the speed > of the Perl 6 Maven site too? Rakudo has a --profile command line option,

Re: How to profile Perl 6 applications?

2015-10-24 Thread Timo Paulssen
On 24/10/15 09:40, Moritz Lenz wrote: Hi Gabor, On 10/24/2015 09:26 AM, Gabor Szabo wrote: The Devel::NYTProf helped me a lot locating the source of slowness on the Perl Maven site. Is there something similar for Perl 6 so I can try to improve the speed of the Perl 6 Maven site too? Rakudo has

[perl #124444] t/spec/S03-smartmatch/array-hash.t failes with "Type check failed"

2015-10-24 Thread Christian Bartolomaeus via RT
On Sat May 02 12:04:46 2015, lemb...@wrkhors.com wrote: > $ git describe > Vladivostok-139-g95411f5 > > Test fails from the command line: > > $ prove -v -e t/fudgeandrun t/spec/S03-smartmatch/array-hash.t; > Type check failed in binding &call; expected 'Callable' but got > 'Method+{}' > in bloc

Forking or running external process in background

2015-10-24 Thread Gabor Szabo
I am trying to test the Perl6::Maven web application by launching the full application (which is uses Bailador) and then accessing the pages using LWP::Simple. Unfortunately so far I could not figure out how to launch an external program in the background or how to fork an exec ? I tried QX{"com

Re: Forking or running external process in background

2015-10-24 Thread Moritz Lenz
On 10/24/2015 10:06 AM, Gabor Szabo wrote: > I am trying to test the Perl6::Maven web application by launching the > full application (which is uses Bailador) and then accessing the pages > using LWP::Simple. > > > Unfortunately so far I could not figure out how to launch an external > program

Re: How to profile Perl 6 applications?

2015-10-24 Thread Moritz Lenz
Hi, On 10/24/2015 09:52 AM, Timo Paulssen wrote: > On 24/10/15 09:40, Moritz Lenz wrote: >> Hi Gabor, >> >> On 10/24/2015 09:26 AM, Gabor Szabo wrote: >>> The Devel::NYTProf helped me a lot locating the source of slowness on >>> the Perl Maven site. >>> Is there something similar for Perl 6 so I c

[perl #125109] [BUG] try {} without CATCH not catching an exception

2015-10-24 Thread Christian Bartolomaeus via RT
On Tue May 05 13:41:01 2015, rayd...@cyberuniverses.com wrote: > See http://irclog.perlgeek.de/perl6/2015-05-05#i_10552113 > > Besides the obvious problem (.clone should work there), in the process > of examining it I encountered another oddity: trapping it with a try > block doesn't catch the exc

[perl #100232] Implementation details leak through in variable interpolation into regexes

2015-10-24 Thread Christian Bartolomaeus via RT
Output has changed: $ perl6-m -e 'my $x = Q[1}; say "pwnd"; #]; "a" ~~ /<$x>/' pwnd Cannot find method 'CALL-ME' in block at -e:1 $ perl6-m --version This is perl6 version 2015.10-7-gca1cf74 built on MoarVM version 2015.10

[perl #125265] [BUG] hyper-op misbehaves when a Range is on the non-magical side of the op

2015-10-24 Thread Christian Bartolomaeus via RT
One thing to note is that infix:<**> (and also the hypered version of it) has a tighter precedence than the range operator. Therefore we need parenthesis to get the expected result. (Using a range there works now). $ perl6-m -e 'say 1 <<**<< (1 .. 4)' (10 100 1000 1) $ perl6 -e 'say 10 <<**

[perl #125401] Using take on a listy expression doesn't take each element of that list

2015-10-24 Thread Christian Bartolomaeus via RT
This now fails with X::Seq::Consumed: $ perl6-m -e 'my @result = gather { take "foo=bar".split("=") }; say @result' This Seq has already been iterated, and its values consumed in block at -e:1 Adding a 'flat' gives the expected result, though: $ perl6-m -e 'my @result = flat gather { take "fo

[perl #126438] [BUG] regex match hang up

2015-10-24 Thread via RT
# New Ticket Created by gfw blackcat # Please include the string: [perl #126438] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126438 > The below code will hang up. source: say '+0877' ~~ /^+/; I think it should be /^\

Re: [perl #125408] [BUG] CArray[num64] numiness optimised away

2015-10-24 Thread Jonathan Stowe
Good thing I didn't take the related TODO tests in my modules out :) On Fri, 2015-10-23 at 11:56 -0700, Will Coleda via RT wrote: > On Thu Sep 17 13:37:30 2015, FROGGS.de wrote: > > Fixed by jnthn++ with commit: > > > > https://github.com/MoarVM/MoarVM/commit/60a48e85b4928a9d66f2f8b87c5 > > fdb65

[perl6/specs] ff7087: Spec index/rindex changes wrt to Index

2015-10-24 Thread GitHub
Branch: refs/heads/newio Home: https://github.com/perl6/specs Commit: ff70871e45ea229b570855fe660b56890f6eef58 https://github.com/perl6/specs/commit/ff70871e45ea229b570855fe660b56890f6eef58 Author: Elizabeth Mattijsen Date: 2015-07-29 (Wed, 29 Jul 2015) Changed paths: M

[perl #124445] perl6 --doc is unhappy with Test.pm

2015-10-24 Thread Christian Bartolomaeus via RT
Fixed with commit https://github.com/rakudo/rakudo/commit/3c006997599375c1a71a5be479fc9df5079ae890 I don't think this warrants a test (at least not in roast). Therefore I'm closing this ticket as 'resolved' now. Please reopen or add a test to Rakudo's t/02-rakudo if you disagree.