Re: Module Proposal: Number::Collection
On Friday 18 May 2007, you wrote: On 18 May 2007, at 16:21, K. J. Cheetham wrote: I've already written the bulk of the module and a series of tests and POD for it, which I can show if need be. How does it intersect with http://search.cpan.org/dist/Set-IntSpan/ and http://search.cpan.org/dist/Set-IntSpan-Fast/ ? After further investigation I believe the main difference between what I was proposing and those modules is the handling of duplicates (though mine is also considerably less mature as well at this point). A set can only contain unique items, but I was more interested in collections. Also given my module stores the data as a string internally rather than an array, it makes mathematical processing much slower so I was thinking of just using it for display and user entry purposes rather than much manipulation. I was thinking of just exporting a few functions with @EXPORT_OK rather than actually making it an object. Not sure if that's still worth making a CPAN module for that though... Set::IntSpan::Fast has since also gained methods to create a new object based on an encoded string as well. Set::Bag also caught my eye, but that handles more than just collections of numbers, and offers no such string encoding/decoding. Best wishes -- K. J. Cheetham MPhys (hons) AMInstP Software Developer Shadowcat Systems Ltd. http://www.shadowcatsystems.co.uk/
Re: Module Proposal: Number::Collection
On 19 May 2007, at 13:40, K. J. Cheetham wrote: Damn, I must have missed Set::IntSpan::Fast somehow when I was looking around for a module that did what I wanted. By the looks of it, your module does almost everything mine does and much more. The only thing it seems to be lacking is a handy way to turn the output of as_string() back into an object, which is something I needed for dealing with user inputted data, and potentially a function to validate such a string too. Would you be interested in me writing a patch for something like that? Yes please :) -- Andy Armstrong, hexten.net
Re: Module Proposal: Number::Collection
Andy Armstrong wrote: On 18 May 2007, at 16:21, K. J. Cheetham wrote: I've already written the bulk of the module and a series of tests and POD for it, which I can show if need be. How does it intersect with http://search.cpan.org/dist/Set-IntSpan/ and http://search.cpan.org/dist/Set-IntSpan-Fast/ ? Damn, I must have missed Set::IntSpan::Fast somehow when I was looking around for a module that did what I wanted. By the looks of it, your module does almost everything mine does and much more. The only thing it seems to be lacking is a handy way to turn the output of as_string() back into an object, which is something I needed for dealing with user inputted data, and potentially a function to validate such a string too. Would you be interested in me writing a patch for something like that? Best wishes -- K. J. Cheetham MPhys (hons) AMInstP Software Developer Shadowcat Systems Ltd. http://www.shadowcatsystems.co.uk/
Re: Module Proposal: Number::Collection
On 18 May 2007, at 16:21, K. J. Cheetham wrote: I've already written the bulk of the module and a series of tests and POD for it, which I can show if need be. How does it intersect with http://search.cpan.org/dist/Set-IntSpan/ and http://search.cpan.org/dist/Set-IntSpan-Fast/ ? -- Andy Armstrong, hexten.net
Re: Module Proposal: Number::Collection
# from K. J. Cheetham # on Friday 18 May 2007 08:21 am: I recently created a module for encoding and decoding numerical arrays to strings, in the form of 1,4,10-29, with duplicates being supported. Maybe Set::Stringify, Set::AsStrings, Set::Encode, or Set::Serialize? Number::Collection doesn't imply anything about stringification. Tempted to possibly add more set logic - though don't want to make it overlap Set::Scalar too much. Make them interoperable? --Eric -- As an old bass player friend of mine used to say: throw money, don't clap. --Tony Parisi --- http://scratchcomputing.com ---