Parrot 2.10.1 released!

2010-11-18 Thread Gerd Pokorra
On behalf of the Parrot team, I'm proud to announce Parrot 2.10.1 (bugfix release). Parrot (http://parrot.org/) is a virtual machine aimed at running all dynamic languages. Parrot 2.10.1 is available on Parrot's FTP site, or by following the download instructions at http://parrot.org/download.

Re: exponentiation of Duration's

2010-11-18 Thread Martin D Kealey
On Wed, 17 Nov 2010, Richard Hainsworth wrote: Once a number has been generated, viz., by obtaining a duration, that number can be manipulated however necessary. The interpretation of the number is a matter for the programmer, not the language designer. All true. However I'd argue that you

Re: exponentiation of Duration's

2010-11-18 Thread Dave Whipp
On 11/17/2010 10:08 PM, Martin D Kealey wrote: Dimensioned numbers as restrictive types are useful, for uncovering bugs, including sometimes latent ones in ported code. Duration is a fairly clear example of a dimensioned quantity, and I think we should think twice about abandoning its

dimensionality in Perl 6

2010-11-18 Thread Jon Lang
Here's my proposal for how to handle dimensionality in Perl 6: Create a units trait that is designed to attach to any Numeric object. Dimensional information gets stored as a baggy object - that is, something that works just like a Bag, except that the count can go negative. (I don't know if

Re: dimensionality in Perl 6

2010-11-18 Thread Doug McNutt
At 16:58 -0800 11/18/10, Jon Lang wrote: If this is implemented, Duration should be an alias for something to the effect of Num but unitssecond. Otherwise, Instant and Duration remain unchanged. Thoughts? http://www.physics.nist.gov/cuu/Units/index.html with special attention to:

Re: exponentiation of Duration's

2010-11-18 Thread Darren Duncan
I think that Instant and Duration should simply be declarational roles that don't have any implementation code to compose. Composing Instant or Duration into a type simply says that the objects of that type represent a point on a timeline or an amount of time. Specific units, even seconds

Re: exponentiation of Duration's

2010-11-18 Thread Darren Duncan
To clarify, by define particular methods I mean that said 2 roles would require composing classes to define them, not to include the code themselves. -- Darren Duncan Darren Duncan wrote: I think that Instant and Duration should simply be declarational roles that don't have any implementation

Re: dimensionality in Perl 6

2010-11-18 Thread Carl Mäsak
Jon (): Here's my proposal for how to handle dimensionality in Perl 6: [...] Thoughts? The idea has come up before, everyone thinks that Perl 6 and unit handling are a good fit for each other, and we're basically waiting for someone to write such a module. Incidentally, your phrase a

Re: exponentiation of Duration's

2010-11-18 Thread Carl Mäsak
Darren (): Specific units, even seconds should not be mentioned at all in the definition of Instant or Duration; instead, any particular units or calendars or whatever would just be a property of the composing class. No disrespect, but it was the abandonment of abstracty stuff like this that

Re: dimensionality in Perl 6

2010-11-18 Thread Jon Lang
On Thu, Nov 18, 2010 at 8:25 PM, Carl Mäsak cma...@gmail.com wrote: Jon (): Here's my proposal for how to handle dimensionality in Perl 6: [...] Thoughts? The idea has come up before, everyone thinks that Perl 6 and unit handling are a good fit for each other, and we're basically waiting

Re: dimensionality in Perl 6

2010-11-18 Thread Buddha Buck
Jon Lang asked me if I intended to send this message to him privately. The answer is No... -- Forwarded message -- From: Buddha Buck blaisepas...@gmail.com Date: Thu, Nov 18, 2010 at 10:39 PM Subject: Re: dimensionality in Perl 6 To: Jon Lang datawea...@gmail.com On Thu, Nov

Re: dimensionality in Perl 6

2010-11-18 Thread Jon Lang
Buddha Buck wrote: Jon Lang wrote: Here's my proposal for how to handle dimensionality in Perl 6: Create a units trait that is designed to attach to any Numeric object.  Dimensional information gets stored as a baggy object - that is, something that  works just like a Bag, except that the

Re: dimensionality in Perl 6

2010-11-18 Thread Carl Mäsak
Jon (), Carl (), Jon (): Here's my proposal for how to handle dimensionality in Perl 6: [...] Thoughts? The idea has come up before, everyone thinks that Perl 6 and unit handling are a good fit for each other, and we're basically waiting for someone to write such a module. Incidentally,

Re: dimensionality in Perl 6

2010-11-18 Thread Buddha Buck
On Thu, Nov 18, 2010 at 11:53 PM, Jon Lang datawea...@gmail.com wrote: Buddha Buck wrote: I don't think a Num is necessary, but I could see a Rat. As is, is Duration implemented by means of a Num, or a Rat?  Whichever it is, that's the type that the difference of two Instances would return

Re: exponentiation of Duration's

2010-11-18 Thread Darren Duncan
Carl Mäsak wrote: Darren (): Specific units, even seconds should not be mentioned at all in the definition of Instant or Duration; instead, any particular units or calendars or whatever would just be a property of the composing class. No disrespect, but it was the abandonment of abstracty