time and now showing different time?

2015-01-10 Thread Gabor Szabo
> say time; say now; say time; say now; 1420898839 Instant:1420898874.659941 1420898839 Instant:1420898874.663946 This looks really strange to me. Why do the calls to 'now' show different full seconds than the calls to 'time' ? Gabor

Re: time and now showing different time?

2015-01-10 Thread timo
On 01/10/2015 03:12 PM, Gabor Szabo wrote: > > say time; say now; say time; say now; > > 1420898839 > Instant:1420898874.659941 > 1420898839 > Instant:1420898874.663946 > > This looks really strange to me. > Why do the calls to 'now' show different full seconds than the calls > to 'time' ? > > Gab

Could method calls warn in void context?

2015-01-10 Thread Gabor Szabo
I keep writing code like this: $str.substr(/regex/, 'replaement) when I should write $str.=substr(/regex/, 'replaement) The former will *return* the replaced string to the void but not change it. I don't know if the above can be ever useful, but maybe this kind of constructs should warn. Or m

Re: Could method calls warn in void context?

2015-01-10 Thread Tobias Leich
In case we would know that certain methods had no side effects (and are not called because of their side effects), ... But at the moment we don't know and therefore we can't warn for every method. Am 10.01.2015 um 15:50 schrieb Gabor Szabo: > I keep writing code like this: > > $str.substr(/regex/

Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
I have Rakudo Start 2014.12.1 compiled with MoarVM running on OSX and it seems to be leaking memory, but I need your help in confirming my understanding: I created this script to show it: use v6; sub MAIN(Int $count) { prompt("Start"); for 1 .. $count -> $i { my $x = 42; }

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
That happens because the result of the for statement is a list that is then sunk; it contains one scalar and one Int object for each iteration and rakudo doesn't yet know to throw it away immediately. Regards - Timo

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 7:57 PM, wrote: > That happens because the result of the for statement is a list that is > then sunk; it contains one scalar and one Int object for each iteration > and rakudo doesn't yet know to throw it away immediately. > The problem happens even without the internal $

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
On 01/10/2015 07:53 PM, Gabor Szabo wrote: > On Sat, Jan 10, 2015 at 7:57 PM, > wrote: > > That happens because the result of the for statement is a list that is > then sunk; it contains one scalar and one Int object for each > iteration > and rakudo doesn

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 9:01 PM, wrote: > > On 01/10/2015 07:53 PM, Gabor Szabo wrote: > > On Sat, Jan 10, 2015 at 7:57 PM, wrote: > >> That happens because the result of the for statement is a list that is >> then sunk; it contains one scalar and one Int object for each iteration >> and rakudo

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
On 01/10/2015 08:39 PM, Gabor Szabo wrote: > Well, whatever it is, this means that the web application fills all > the memory and crashes every 30-40 requests. > Luckily there are not many people who read the site :) > > Gabor > > I'm expecting you're talking about https://github.com/szabgab/Per

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 10:25 PM, wrote: > > > On 01/10/2015 08:39 PM, Gabor Szabo wrote: > > Well, whatever it is, this means that the web application fills all > > the memory and crashes every 30-40 requests. > > Luckily there are not many people who read the site :) > > > > Gabor > > > > > > I'

Re: Could method calls warn in void context?

2015-01-10 Thread Moritz Lenz
To elaborate a bit on the previous answer: On 10.01.2015 17:12, Tobias Leich wrote: In case we would know that certain methods had no side effects (and are not called because of their side effects), ... But at the moment we don't know and therefore we can't warn for every method. there are tw

Re: Could method calls warn in void context?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 11:02 PM, Moritz Lenz wrote: > To elaborate a bit on the previous answer: > > On 10.01.2015 17:12, Tobias Leich wrote: > >> In case we would know that certain methods had no side effects (and are >> not called because of their side effects), ... >> >> But at the moment we

Missing or wrong version of dependency

2015-01-10 Thread Gabor Szabo
I have the Rakudo Star installation with HTTP::Easy in it. I was trying to play a bit with the source code of HTTP::Easy, copied the HTTP/Easy.pm6 file to a private lib directory and the tried to launch a simple script using Bailador that uses HTTP::Easy. perl6 -Ilib sample.pl6 This is the err

Re: Missing or wrong version of dependency

2015-01-10 Thread Gabor Szabo
BTW the same happens if I try to run this command in the freshly cloned copy of https://github.com/supernovus/perl6-http-easy On Sat, Jan 10, 2015 at 11:28 PM, Gabor Szabo wrote: > I have the Rakudo Star installation with HTTP::Easy in it. I was trying to > play a bit > > with the source code of