Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread Tom Browder
On Tue, Mar 29, 2016 at 10:29 PM, Timo Paulssen wrote: > On 03/30/2016 03:45 AM, Timo Paulssen wrote: > > Could you try using $filename.IO.slurp.lines instead of $filename.IO.lines > and see if that makes things any faster? ... > Actually, the method on an IO::Handle is called "slurp-rest"; slurp

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread Elizabeth Mattijsen
> On 30 Mar 2016, at 13:40, Tom Browder wrote: > On Tue, Mar 29, 2016 at 10:29 PM, Timo Paulssen wrote: >> On 03/30/2016 03:45 AM, Timo Paulssen wrote: >> >> Could you try using $filename.IO.slurp.lines instead of $filename.IO.lines >> and see if that makes things any faster? > ... >> Actually,

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread yary
Cross-posting to the compiler group- On Wed, Mar 30, 2016 at 8:10 AM, Elizabeth Mattijsen wrote: > If you know the line endings of the file, using > IO::Handle.split($line-ending) (note the actual character, rather than a > regular expression) might help. That will read in the file in chunks o

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread Timo Paulssen
On 30/03/16 13:40, Tom Browder wrote: On Tue, Mar 29, 2016 at 10:29 PM, Timo Paulssen wrote: On 03/30/2016 03:45 AM, Timo Paulssen wrote: Could you try using $filename.IO.slurp.lines instead of $filename.IO.lines and see if that makes things any faster? ... Actually, the method on an IO::Han

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread Elizabeth Mattijsen
> On 30 Mar 2016, at 16:06, yary wrote: > > Cross-posting to the compiler group- > > On Wed, Mar 30, 2016 at 8:10 AM, Elizabeth Mattijsen wrote: >> If you know the line endings of the file, using >> IO::Handle.split($line-ending) (note the actual character, rather than a >> regular expression

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread yary
On Wed, Mar 30, 2016 at 3:20 PM, Elizabeth Mattijsen wrote: > Thanks for your thoughts! > > I’ve implemented $*DEFAULT-READ-ELEMS in > https://github.com/rakudo/rakudo/commit/5bd1e . > > Of course, all of this is provisional, and open for debate and bikeshedding. Thanks! And that was fast! All

[perl #127784] Assigning multiple values to an array does not work with infinite ranges (@a[^∞] = 42)

2016-03-30 Thread jn...@jnthn.net via RT
On Fri Mar 25 11:53:59 2016, alex.jakime...@gmail.com wrote: > Let's start with an example that works: > > Code: > my @a; > @a[^8] = 5, 6; > say @a > > Result: > [5 6 (Mu) (Mu) (Mu) (Mu) (Mu) (Mu)] > > That's fine. But let's try an infinite range now: > > Code: > my @a; > @a[^∞] = 5, 6; > say @

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread James E Keenan
On 03/30/2016 04:11 PM, yary wrote: On Wed, Mar 30, 2016 at 3:20 PM, Elizabeth Mattijsen wrote: Thanks for your thoughts! I’ve implemented $*DEFAULT-READ-ELEMS in https://github.com/rakudo/rakudo/commit/5bd1e . Of course, all of this is provisional, and open for debate and bikeshedding.

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread Tom Browder
On Tue, Mar 29, 2016 at 10:29 PM, Timo Paulssen wrote: > On 03/30/2016 03:45 AM, Timo Paulssen wrote: > > Could you try using $filename.IO.slurp.lines instead of $filename.IO.lines > and see if that makes things any faster? > - Timo > > > Actually, the method on an IO::Handle is called "slurp-re