memory leak I think.

2013-12-19 Thread Richard Hainsworth
I've been running a perl6 program that runs through a loop, dumps intermediate results and starts again with new initialisation values. The program runs fine for the first three loops, but does appear to slow down and on the fourth time though hangs. Looking at system resources, the program

Unexpected expansion of string with xx

2013-12-19 Thread Richard Hainsworth
Initially I though the following was a bug, but now I'm not sure. I got these results perl6 -v This is perl6 version 2013.09 built on parrot 5.5.0 revision 0 $ perl6 say '0' xx 4 0 0 0 0 print '0' xx 4 print 's' ~ ('0' xx 4) s0 0 0 0 I'm not sure why the elements of the expansion are

Re: Unexpected expansion of string with xx

2013-12-19 Thread Jonathan Worthington
On 12/19/2013 3:47, Richard Hainsworth wrote: Initially I though the following was a bug, but now I'm not sure. I got these results perl6 -v This is perl6 version 2013.09 built on parrot 5.5.0 revision 0 $ perl6 say '0' xx 4 0 0 0 0 Are you sure you didn't want the x (string repetition)

Re: memory leak I think.

2013-12-19 Thread Patrick R. Michaud
On Thu, Dec 19, 2013 at 11:27:32AM +0800, Richard Hainsworth wrote: I've been running a perl6 program that runs through a loop, dumps intermediate results and starts again with new initialisation values. [...] Looking at system resources, the program chews up memory resources continually.

Re: Unexpected expansion of string with xx

2013-12-19 Thread Richard Hainsworth
OK x not xx. The doubling of operators is confusing. Richard On 12/19/2013 10:01 PM, Jonathan Worthington wrote: On 12/19/2013 3:47, Richard Hainsworth wrote: Initially I though the following was a bug, but now I'm not sure. I got these results perl6 -v This is perl6 version 2013.09 built