Posted on 2006-10-28 23:19:17-07 by pfeldman
documentation and installation issues
A few quick comments:
1. The description gives the misleading impression that the generator can only be seeded automatically, although non-automatic (manual) seeding is also available.
2. There is no .ppd file (I created one for Windows to be able to install).
3. I was able to install (PPM lists Math-Random-MT-Auto as an installed package), but I'm not able to use the package. More specifically, I get the following error message:
Can't locate Math/Random/MT/Auto.pm in @INC ...
The statement that produced the error message was as follows:
use Math::Random::MT::Auto qw(rand gaussian set_seed);
Thanks!
Phillip
Direct Responses: 3377 | Write a response
Posted on 2006-10-30 15:38:10-08 by jdhedden in response to 3358
Re: documentation and installation issues
   1. The description gives the misleading impression that the generator can only be seeded automatically, although non-automatic (manual) seeding is also available.

Well, I must say that it was never my intention to mislead anyone. If you would be so good as to indicate specifically where you feel this 'misleading' documentation is, I would have no problems in adjusting the wording. Or if you would like to suggest any changes to the wording in the documentation, I would be more than happy to consider it.

   2. There is no .ppd file (I created one for Windows to be able to install).

Well, you have me there. I have no idea what a .ppd file is, nor have I ever seen such a thing in all my experience in working with Perl.

In searching the web, this appears to be something specific to ActivePerl, and not something that is generally required nor supported in the Perl community.

   3. I was able to install (PPM lists Math-Random-MT-Auto as an installed package), but I'm not able to use the package.

That seems very peculiar because when I try PPM it doesn't know about Math-Random-MT-Auto. (Are you sure you're not confusing it with Math-Random-MT?)

My recommendation is to not use PPM, if you can help it. Modules available through PPM are compiled against 5.8.0 for compatibility reasons. The problem with this is that any bugs in XS in 5.8.0 will be present in any PPM modules that use XS code. (I have already encountered this with the 'Want' module.) Additionally, not all CPAN modules are available using PPM -- Math::Random::MT::Auto being one example.

A very simple alternative that works very will is CamelPack. It installs ActivePerl, Dev-C++ and Nmake to give you a Perl environment in which you can use the 'cpan' command to install modules.

(For Dev-C++, which is installed as part of CamelPack, I only install the 'Mingw compiler system' option, and at the end I uncheck the 'Run' option before clicking on the 'Finish' button.)

Afterwards, you can uninstall the ActivePerl 5.8.7 version that CamelPack installs, and install the lastest version of ActivePerl. Then you're good to go for using 'cpan' to install Math::Random::MT::Auto.
Direct Responses: 3382 | Write a response
Posted on 2006-10-30 19:29:07-08 by pfeldman in response to 3377
Re: documentation and installation issues
Jerry-

Thanks very much for the quick response.

1. Re. the wording of the documentation: I hadn't meant to suggest any bad intent; my apologies. The sentence in question reads as follows:

"The PRNGs are self-seeding, automatically acquiring a (19968-bit) random seed from user-selectable sources."

Here is a suggested rewording:

"The PRNGs are optionally self-seeding, automatically acquiring a (19968-bit) random seed from user-selectable sources; the user can also seed the generator manually with a single integer or array of integers."

2. I had not realized that the .ppd file was specific to ActiveState Perl. I'm still somewhat of a Perl newbie.

3. I'm not confusing your Math-Random-MT-Auto with Math-Random-MT; I used Math-Random-MT previously, but decided to try to find an alternative because (A) Math-Random-MT does not directly support generation of Gaussian random numbers and (B) development of Math-Random-MT seems to have stopped.

4. I had not previously heard of CamelPack, but I will download it and try using it.

Thanks very much for being so patient with me!

Yours,

Phillip
Direct Responses: 3384 | 3385 | Write a response
Posted on 2006-10-30 20:37:13-08 by jdhedden in response to 3382
Re: documentation and installation issues
    "The PRNGs are optionally self-seeding, automatically acquiring a (19968-bit) random seed from user-selectable sources; the user can also seed the generator manually with a single integer or array of integers."

Thanks. I add something like this for the next release.
Direct Responses: Write a response
Posted on 2006-10-30 20:37:23-08 by jdhedden in response to 3382
Re: documentation and installation issues
    "The PRNGs are optionally self-seeding, automatically acquiring a (19968-bit) random seed from user-selectable sources; the user can also seed the generator manually with a single integer or array of integers."

Thanks. I'll add something like this for the next release.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.