News for hackers. Stuff that matters.
Re:A Review of Perl 6 by ash_gti on Tuesday August 15, 2017 @12:14AM (#15015418)
So, a fairly simple change to this will bring down the time to a few ms (86 ms on my computer)

  time yes | head -n1000000 | perl6 -e 'for $*IN.readchars { .subst("y", "n").print }’
Its slightly more complicated because I’m having it read the input in a chunk instead of on a per-line basis and I’m using subst on a literal instead of a regex.

There are no comments on this comment yet.