Re: dimensionality in Perl 6

2010-11-19 Thread Moritz Lenz
Am 19.11.2010 05:45, schrieb Jon Lang: On Thu, Nov 18, 2010 at 8:25 PM, Carl Mäsakcma...@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

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

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: 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

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

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