comments for module naming

2008-01-10 Thread Jerome Quelin
hello,

i'm looking for a vector module to be used in Language::Befunge.
currently, i provide Language::Befunge::Vector which is a pure perl
version of what i'm looking for.

my requirements:
 - n dimensions, ie, not limited to 2D (x,y) or 3D (x,y,z)
 - integer values
 - basic operations on them (addition, substraction, etc)
 - fast, ie not pure perl

this seems to remove all the existing cpan modules but PDL. but PDL
seems a bit big for what i need... or isn't it?


therefore, i was planning to:
 1- remove Language::Befunge::Vector from Language::Befunge and release
it as a new module
 2- provide a new XS module with the same interface, overwriting module
1- (same as Readonly::XS does with Readonly)
 3- require module 1-  recommend module 2- in Language::Befunge

this has the added benefit over PDL that i can fallback on pure-perl
module for machines that don't have a compiler.

so now here's my question: how should i name my modules?
(maybe the first question would be: do you think i'm doing sthg wise or
would you recommend to use PDL?)

i thought of:
 - Math::Vector
 - Math::Vector::Integer (i deal with integer only)
 - Math::Vector::NDims   (i deal with more than 3 dims)
 - Math::NDimVector
 - other?


wdyt?
jérôme 
-- 
[EMAIL PROTECTED]


Re: comments for module naming

2008-01-10 Thread Eric Wilhelm
# from Jerome Quelin
# on Thursday 10 January 2008 08:50:

 - Math::Vector
 - Math::Vector::Integer (i deal with integer only)

I'm not sure why Math-Vector doesn't show up on search.cpan.org.  

  http://search.cpan.org/~wsyvinski/
  http://kobesearch.cpan.org/author/wsyvinski

In any case, I wouldn't want an integer-only vector to be named 
Math::Vector.

Math::VectorInteger ?  That sort of fits in with the existing 
Math::VectorReal.

--Eric
-- 
Beware of bugs in the above code; I have only proved it correct, not
tried it.
--Donald Knuth
---
http://scratchcomputing.com
---