Re: r29111 - docs/Perl6/Spec

2009-11-18 Thread Darren Duncan
Acknowledging that 'FatRat' is current name for above 'Ratio' ... pugs-comm...@feather.perl6.nl wrote: -For applications that really need arbitrary precision denominators -as well as numerators, CRatio may be used, which is defined as CInt/Int. +For applications that really need arbitrary

Re: r29111 - docs/Perl6/Spec

2009-11-18 Thread Solomon Foster
On Wed, Nov 18, 2009 at 3:33 AM, Darren Duncan dar...@darrenduncan.net wrote: Acknowledging that 'FatRat' is current name for above 'Ratio' ... pugs-comm...@feather.perl6.nl wrote: -For applications that really need arbitrary precision denominators -as well as numerators, CRatio may be used,

Parrot 1.8.0 Zygodactyly Released!

2009-11-18 Thread Bernhard Schmalhofer
On behalf of the Parrot team, I'm proud to announce Parrot 1.8.0 Zygodactyly. Parrot, http://parrot.org/, is a virtual machine aimed at running all dynamic languages. Parrot 1.8.0 is available on Parrot's FTP site ftp://ftp.parrot.org/pub/parrot/releases/devel/1.8.0/, or follow the download

Re: r29111 - docs/Perl6/Spec

2009-11-18 Thread Moritz Lenz
On Wed, Nov 18, 2009 at 12:33:35AM -0800, Darren Duncan wrote: Acknowledging that 'FatRat' is current name for above 'Ratio' ... pugs-comm...@feather.perl6.nl wrote: -For applications that really need arbitrary precision denominators -as well as numerators, CRatio may be used, which is

Re: r29121 - docs/Perl6/Spec

2009-11-18 Thread Ron
+Although most rational implementations normalize or reduce fractions +to their smallest representation immediately through a gcd algorithm, +Perl allows a rational datatype to do so lazily at need, such as +whenever the denominator would run out of precision, but avoid the +overhead

r29127 - docs/Perl6/Spec

2009-11-18 Thread pugs-commits
Author: lwall Date: 2009-11-18 19:05:37 +0100 (Wed, 18 Nov 2009) New Revision: 29127 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] correction from ron.koerner++ on s/multiple/power/ adopt 2's and 5's factoring as normative for both .Str and .perl of Rats Modified:

Rat.perl (was: [pugs-commits] r29121 - docs/Perl6/Spec)

2009-11-18 Thread Moritz Lenz
pugs-comm...@feather.perl6.nl wrote: +The C.perl method will produce a decimal number if the denominator is +a multiple of 10. Otherwise it will normalize and return a rational +literal of the form -47/3. Did you mean a power of 10 instead? I can't see how it makes sense right now. This

r29128 - docs/Perl6/Spec

2009-11-18 Thread pugs-commits
Author: lwall Date: 2009-11-18 19:51:35 +0100 (Wed, 18 Nov 2009) New Revision: 29128 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] more Rat-to-Str fine-tuning wrt negative denominators Modified: docs/Perl6/Spec/S02-bits.pod

Re: r29121 - docs/Perl6/Spec

2009-11-18 Thread Larry Wall
On Wed, Nov 18, 2009 at 03:08:59AM -0800, Ron wrote: : +Although most rational implementations normalize or reduce fractions : +to their smallest representation immediately through a gcd algorithm, : +Perl allows a rational datatype to do so lazily at need, such as : +whenever the denominator

Re: r29111 - docs/Perl6/Spec

2009-11-18 Thread Jon Lang
Moritz Lenz wrote: Given the above, if one wants to construct a full-precision rational value in terms of 3 Int values analogous to a mantissa and radix and exponent, what is the best way to write it in Perl 6? For example, say I want the following expression to result in a FatRat because

Re: r29111 - docs/Perl6/Spec

2009-11-18 Thread Darren Duncan
Moritz Lenz wrote: On Wed, Nov 18, 2009 at 12:33:35AM -0800, Darren Duncan wrote: For example, say I want the following expression to result in a FatRat because presumably that's the only type which will represent the result value exactly: 45207196 * 10 ** -37 How should that be spelled

r29129 - docs/Perl6/Spec

2009-11-18 Thread pugs-commits
Author: lwall Date: 2009-11-19 05:34:29 +0100 (Thu, 19 Nov 2009) New Revision: 29129 Modified: docs/Perl6/Spec/S04-control.pod Log: [S04] as several folks have suggested, rename blorst to blast Modified: docs/Perl6/Spec/S04-control.pod

Re: r29129 - docs/Perl6/Spec

2009-11-18 Thread Darren Duncan
pugs-comm...@feather.perl6.nl wrote: Author: lwall Date: 2009-11-19 05:34:29 +0100 (Thu, 19 Nov 2009) New Revision: 29129 Modified: docs/Perl6/Spec/S04-control.pod Log: [S04] as several folks have suggested, rename blorst to blast Modified: docs/Perl6/Spec/S04-control.pod