Re: [perl #116280] [BUG] NaN, Inf, -Inf aren't padded with spaces in sprintf in Rakudo

2013-01-08 Thread Patrick R. Michaud
On Tue, Jan 08, 2013 at 05:02:21PM -0500, Will Coleda wrote: > Is now a good time to ask if we still want to use the sprintf > slang in perl 6? Yes, see also https://github.com/perl6/specs/issues/13 . Pm

Re: [perl #116280] [BUG] NaN, Inf, -Inf aren't padded with spaces in sprintf in Rakudo

2013-01-08 Thread Will Coleda
Is now a good time to ask if we still want to use the sprintf slang in perl 6? On Tue, Jan 8, 2013 at 4:54 PM, Jonathan Worthington wrote: > On 1/8/2013 22:38, Patrick R. Michaud wrote: > >> I wonder what it would take to write a version of sprintf in Perl 6 or >> NQP directly, ignoring all spee

Re: [perl #116280] [BUG] NaN, Inf, -Inf aren't padded with spaces in sprintf in Rakudo

2013-01-08 Thread Jonathan Worthington
On 1/8/2013 22:38, Patrick R. Michaud wrote: I wonder what it would take to write a version of sprintf in Perl 6 or NQP directly, ignoring all speed aspects for the time being. Then we'd at least have something portable, provably correct, easily modified, and that could be used as a reference i

Re: [perl #116280] [BUG] NaN, Inf, -Inf aren't padded with spaces in sprintf in Rakudo

2013-01-08 Thread Patrick R. Michaud
On Tue, Jan 08, 2013 at 11:52:12AM -0800, Carl Mäsak via RT wrote: > On Tue Jan 08 11:40:37 2013, FROGGS.de wrote: > > This would mean to bring over 500 lines of C code to nqp/rakudo. > > Is that an absolute claim? What about wrappers? Currently Rakudo uses Parrot's sprintf features. I wouldn't

[perl #116280] [BUG] NaN, Inf, -Inf aren't padded with spaces in sprintf in Rakudo

2013-01-08 Thread Carl Mäsak via RT
On Tue Jan 08 11:40:37 2013, FROGGS.de wrote: > This would mean to bring over 500 lines of C code to nqp/rakudo. Is that an absolute claim? What about wrappers? > And this would mean that it doesn't get faster. Is it worth it? In my mind, correctness trumps speed. The current behavior seems obv

Re: implementing every(N)

2013-01-08 Thread Patrick R. Michaud
On Tue, Jan 08, 2013 at 12:14:22PM -0500, Ted Zlatanov wrote: > On Mon, 7 Jan 2013 17:51:52 +0100 Carl Mäsak wrote: > > CM> Ted (>): > >> Are state variables available now, or is the every(N) functionality > >> possible in some other way now? > > CM> Why not try it by writing a small program? :

Re: implementing every(N)

2013-01-08 Thread Ted Zlatanov
On Mon, 7 Jan 2013 17:51:52 +0100 Carl Mäsak wrote: CM> Ted (>): >> Are state variables available now, or is the every(N) functionality >> possible in some other way now? CM> Why not try it by writing a small program? :) CM> Rakudo is available at a discount right now -- download it before it'