Re: rakudo-current loop 2-3 orders of magnitude slower than perl 5?

2009-06-05 Thread Steffen Schwigon
Fagyal Csongor conc...@conceptonline.hu writes: However, performance is an issue. I would not mind running into bugs, writing some extra code to work around missing stuff, etc., but right now it is just hard to find any projects (for me - YMMV) where performance would not be a blocker. I

Re: rakudo-current loop 2-3 orders of magnitude slower than perl 5?

2009-06-05 Thread Parrot Raiser
If Sun's propaganda about Dtrace : http://www.sun.com/bigadmin/content/dtrace/ is anywhere near true, it sounds as though it's a wheel we won't have to invent for Parrot/Rakudo. It is apparently also available for Mac OS (Leopard) http://tinyurl.com/2xas7q

the file slurping is not working

2009-06-05 Thread Aruna Goke
I tested the below code on parrot-1.1.0 and it read all the lines in the file and tested same code on the latest git update (4th June 2009), it outputs only the first line. #!/usr/bin/perl6 use v6; my $fname = 'README'; if my $file = open($fname, :r) { for $file.get- $line { say $line;

Announcing pun (Re: rakudo-current loop 2-3 orders of magnitude slower than perl 5?)

2009-06-05 Thread Carl Mäsak
Steffen (), Fagyal (): However, performance is an issue. I would not mind running into bugs, writing some extra code to work around missing stuff, etc., but right now it is just hard to find any projects (for me - YMMV) where performance would not be a blocker. I suggest to start using it as

Re: the file slurping is not working

2009-06-05 Thread Carl Mäsak
Aruna (): I tested the below code on parrot-1.1.0 and it read all the lines in the file and tested same code on the latest git update (4th June 2009), it outputs only the first line. That's what C$file.get does -- it gives you one line per default. You want C$file.lines. // Carl

Re: the file slurping is not working

2009-06-05 Thread Aruna Goke
Carl Mäsak wrote: Aruna (): I tested the below code on parrot-1.1.0 and it read all the lines in the file and tested same code on the latest git update (4th June 2009), it outputs only the first line. That's what C$file.get does -- it gives you one line per default. You want C$file.lines. //

Re: the file slurping is not working

2009-06-05 Thread Daniel Carrera
Carl Mäsak wrote: Aruna (): I tested the below code on parrot-1.1.0 and it read all the lines in the file and tested same code on the latest git update (4th June 2009), it outputs only the first line. That's what C$file.get does -- it gives you one line per default. You want C$file.lines.

Re: the file slurping is not working

2009-06-05 Thread Leon Timmermans
Then why is it that .get works fine for $*IN? while $*IN.get - $line {        say $line } Because you're using a while loop instead of a for loop ;-) Leon

Re: rakudo-current loop 2-3 orders of magnitude slower than perl 5?

2009-06-05 Thread Steffen Schwigon
Parrot Raiser 1parr...@gmail.com writes: If Sun's propaganda about Dtrace : http://www.sun.com/bigadmin/content/dtrace/ is anywhere near true Which I can confirm. DTrace *is* cool. Steffen -- Steffen Schwigon s...@renormalist.net Dresden Perl Mongers http://dresden-pm.org/ Deutscher

Re: the file slurping is not working

2009-06-05 Thread Daniel Carrera
Leon Timmermans wrote: Then why is it that .get works fine for $*IN? while $*IN.get - $line { say $line } Because you're using a while loop instead of a for loop ;-) Worse. The code I wrote has a subtle but horrible error. The condition will fail as soon as you hit a blank line!!

Re: the file slurping is not working

2009-06-05 Thread Carl Mäsak
Daniel (), Leon (), Daniel (): Then why is it that .get works fine for $*IN? while $*IN.get - $line {       say $line } Because you're using a while loop instead of a for loop ;-) Worse. The code I wrote has a subtle but horrible error. The condition will fail as soon as you hit a blank