1) Could you run this (and post the output):

perl -Mblib -MPDL::LiteF -MPDL::Types -le "srand 5; $r1=random 5;srand 5;
$r2=random 5;print $r1;print $r2"

(Also, run the exact same command a second time and check that the output
stays the same.)

C:\Perl64\cpan\build\PDL-2.4.4-Qtfi9k>perl -Mblib -MPDL::LiteF -MPDL::Types
-le
"srand 5; $r1=random 5;srand 5; $r2=random 5;print $r1;print $r2"
[0.0012512207 0.56356812 0.19329834 0.80871582 0.58499146]
[ 0.4798584 0.35028076 0.89593506 0.82281494 0.74658203]

C:\Perl64\cpan\build\PDL-2.4.4-Qtfi9k>perl -Mblib -MPDL::LiteF -MPDL::Types
-le
"srand 5; $r1=random 5;srand 5; $r2=random 5;print $r1;print $r2"
[0.0012512207 0.56356812 0.19329834 0.80871582 0.58499146]
[ 0.4798584 0.35028076 0.89593506 0.82281494 0.74658203]



2) The instriguing thing is that both myself and the op are using the same
build of perl - namely an ActiveState build of perl 5.10. (At least I
*think* Steve is running ActivePerl - please let me know if that's not so,
Steve. It's probably even the exact same build - I have build 1004, not sure
about Steve's.)
Yes, I'm using ActiveState perl, v.5.10.0 built for
MSWin32-x64-multi-thread, binary build 1004--same build.

3) (Btw, the compiler I have is the ideal compiler to be using with x64
ActivePerl, and it *was* freely available from MS. Unfortunately, it no
longer seems to be available - all links now lead to the VC 2008 version.
Typical bloody MicroSoft.)

Is this it?

http://www.microsoft.com/downloads/details.aspx?familyid=EB4EBE2D-33C0-4A47-9DD4-B9A6D7BD44DA&displaylang=en

<http://www.microsoft.com/downloads/details.aspx?familyid=EB4EBE2D-33C0-4A47-9DD4-B9A6D7BD44DA&displaylang=en>Here's
a prospectively stupid question: if I have SDK v7, Visual Studio 2008 x64,
and VC 2005 redistributable x64 all installed, how do I know which compiler
is being used at any given time?

Steve

On Wed, May 27, 2009 at 11:03 PM, Sisyphus <[email protected]>wrote:

>
> ----- Original Message ----- From: "Chris Marshall" <[email protected]>
> To: "Sisyphus" <[email protected]>
> Cc: "Steve Cicala" <[email protected]>; <[email protected]>
> Sent: Thursday, May 28, 2009 12:09 PM
> Subject: Re: [Perldl] installing on 64-bit Windows 7 (pmitive.t failure)
>
>
>  Sisyphus wrote:
>>
>>>
>>> Looks like primitive.t failure is simply the result of srand not behaving
>>> as expected. .... The burning question is, of course, "Why are yours
>>> different?"
>>>
>>
>> I did a quick search on MSDN for rand/srand on vista and
>> found discussion of rand_s to generate pseudorandom integers
>> in the range 0 to UINT_MAX and does *not* use the seed
>> provided by srand.
>>
>> To know if that is the issue I guess the source for the ASPerl
>> implementation could to be investigated.
>>
>>
> The instriguing thing is that both myself and the op are using the same
> build of perl - namely an ActiveState build of perl 5.10. (At least I
> *think* Steve is running ActivePerl - please let me know if that's not so,
> Steve. It's probably even the exact same build - I have build 1004, not sure
> about Steve's.)
>
> The only difference is that we're using different compilers to build PDL -
> mine is based on VC 2005 (and is the same compiler that built our perls),
> the op's is based on VC 2008. I'll have to get hold of a compiler that
> reproduces the behaviour that the op is getting - it's the only hope *I*
> would have of working out what's going on. I just wasted 3 hours downloading
> what I thought was an x64 version of VC 2008, only to find it's 32-bit. (The
> actual compiler that the op has will probably take me 2 days to download -
> even longer if I get it wrong and download another 32-bit version.)
>
> So ... if our perls are identical, I think the difference can only arise in
> what our respective compilers are making of the PDL source. I think the
> rand/srand/rand_s issues you've mentioned above could well have some bearing
> on that.
>
> (Btw, the compiler I have is the ideal compiler to be using with x64
> ActivePerl, and it *was* freely available from MS. Unfortunately, it no
> longer seems to be available - all links now lead to the VC 2008 version.
> Typical bloody MicroSoft.)
>
> Cheers,
> Rob
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to