Re: [GHC] #801: random list from randomseed ... amd64 differs

2007-07-19 Thread GHC
#801: random list from randomseed ... amd64 differs
---+
Reporter:  caaadar |Owner:  igloo  
Type:  bug |   Status:  closed 
Priority:  normal  |Milestone:  6.8
   Component:  Compiler|  Version:  6.4.2  
Severity:  normal  |   Resolution:  fixed  
Keywords:  |   Difficulty:  Unknown
  Os:  Linux   | Testcase: 
Architecture:  x86_64 (amd64)  |  
---+
Changes (by igloo):

  * resolution:  => fixed
  * status:  new => closed

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #801: random list from randomseed ... amd64 differs

2007-07-18 Thread GHC
#801: random list from randomseed ... amd64 differs
---+
Reporter:  caaadar |Owner:  igloo  
Type:  bug |   Status:  new
Priority:  normal  |Milestone:  6.8
   Component:  Compiler|  Version:  6.4.2  
Severity:  normal  |   Resolution: 
Keywords:  |   Difficulty:  Unknown
  Os:  Linux   | Testcase: 
Architecture:  x86_64 (amd64)  |  
---+
Changes (by igloo):

  * owner:  => igloo

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #801: random list from randomseed ... amd64 differs

2007-01-23 Thread GHC
#801: random list from randomseed ... amd64 differs
--+-
 Reporter:  caaadar   |  Owner:
 Type:  bug   | Status:  new   
 Priority:  normal|  Milestone:  6.8   
Component:  Compiler  |Version:  6.4.2 
 Severity:  normal| Resolution:
 Keywords:| Difficulty:  Unknown   
 Testcase:|   Architecture:  x86_64 (amd64)
   Os:  Linux |  
--+-
Changes (by igloo):

  * milestone:  => 6.8
  * testcase:  =>

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #801: random list from randomseed ... amd64 differs

2006-09-29 Thread GHC
#801: random list from randomseed ... amd64 differs
---+
  Reporter:  caaadar   |  Owner:
  Type:  bug   | Status:  new   
  Priority:  normal|  Milestone:
 Component:  Compiler  |Version:  6.4.2 
  Severity:  normal| Resolution:
  Keywords:| Os:  Linux 
Difficulty:  Unknown   |   Architecture:  x86_64 (amd64)
---+
Comment (by simonpj):

 Lennart writes: "The library works when Int has at least 32 bits.  So 64
 should be fine.  I guess it should be rewritten with Int32."

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #801: random list from randomseed ... amd64 differs

2006-09-28 Thread Lennart Augustsson

The library works when Int has at least 32 bits.  So 64 should be fine.
I guess it should be rewritten with Int32.

-- Lennart

On Sep 28, 2006, at 08:05 , GHC wrote:


#801: random list from randomseed ... amd64 differs
--- 
+

  Reporter:  caaadar   |  Owner:
  Type:  bug   | Status:  new
  Priority:  normal|  Milestone:
 Component:  Compiler  |Version:  6.4.2
  Severity:  normal| Resolution:
  Keywords:| Os:  Linux
Difficulty:  Unknown   |   Architecture:  x86_64 (amd64)
--- 
+

Changes (by simonpj):

  * cc:  => [EMAIL PROTECTED]

Comment:

 Lennart

 I think you made the System.Random library.  Can you help with  
this bug?


 The reason seems to be that in randomIvalDouble we use
 {{{
 toInteger (minBound::Int), toInteger (maxBound::Int)
 }}}
 and the bounds for Int are of course different on 32 and 64 bit  
machines.


 Ominously, your comment at the top suggests that the whole library  
may

 only work for "32-bit computers".

 We're out of our depth... thanks

 Simon

--
Ticket URL: 
GHC 
The Glasgow Haskell Compiler


___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #801: random list from randomseed ... amd64 differs

2006-09-28 Thread GHC
#801: random list from randomseed ... amd64 differs
---+
  Reporter:  caaadar   |  Owner:
  Type:  bug   | Status:  new   
  Priority:  normal|  Milestone:
 Component:  Compiler  |Version:  6.4.2 
  Severity:  normal| Resolution:
  Keywords:| Os:  Linux 
Difficulty:  Unknown   |   Architecture:  x86_64 (amd64)
---+
Changes (by simonpj):

  * cc:  => [EMAIL PROTECTED]

Comment:

 Lennart

 I think you made the System.Random library.  Can you help with this bug?

 The reason seems to be that in randomIvalDouble we use
 {{{
 toInteger (minBound::Int), toInteger (maxBound::Int)
 }}}
 and the bounds for Int are of course different on 32 and 64 bit machines.

 Ominously, your comment at the top suggests that the whole library may
 only work for "32-bit computers".

 We're out of our depth... thanks

 Simon

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #801: random list from randomseed ... amd64 differs

2006-09-28 Thread GHC
#801: random list from randomseed ... amd64 differs
---+
  Reporter:  caaadar   |  Owner:
  Type:  bug   | Status:  new   
  Priority:  normal|  Milestone:
 Component:  Compiler  |Version:  6.4.2 
  Severity:  normal| Resolution:
  Keywords:| Os:  Linux 
Difficulty:  Unknown   |   Architecture:  x86_64 (amd64)
---+
Old description:

> I have the following:
>
> > randomList::Int->[Double]
> > randomList seed = randoms (mkStdGen seed)::[Double]
>
> randomList 2342 on Linux/amd64 differs from Linux/x86 and Mac/PPC (all i
> were able to find out)
>
> on Linux/x86 it is the same as on Mac/PPC.
>
> is that a bug ?  mkStdGen should produce proper (reproduceable)
> Pseudorandomnumbers but they are not inter-OS-reproduceable

New description:

 I have the following:
 {{{
 > randomList::Int->[Double]
 > randomList seed = randoms (mkStdGen seed)::[Double]
 }}}
 randomList 2342 on Linux/amd64 differs from Linux/x86 and Mac/PPC (all i
 were able to find out)

 on Linux/x86 it is the same as on Mac/PPC.

 is that a bug?  `mkStdGen` should produce proper (reproduceable)
 Pseudorandomnumbers but they are not inter-OS-reproduceable

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs