[Newbies] Debuggig or answering my own questions

2008-07-31 Thread Edgar J. De Cleene
I was asking about how to trace some until top procedure Now I wish share my solution to all, just in case some need do know. (HttpService on: 8080 named: 'Debug1') onRequestDo: [ :httpRequest | HttpResponse fromString: 'SqueakRos Greet You'. self dpsTraceUntilRoot:

[Newbies] Problems getting started with OpenGL in Squeak

2008-07-31 Thread Nick Ager
Hi, I'd like to experiment with OpenGL in Squeak. I found the promisingly titled Howto - Loading OpenGL in Squeak 3.9 from Jakub Kozisek (http://lists.squeakfoundation.org/pipermail/beginners/2006-November/001451.html) and followed the directions: * install FFI and Balloon3D from SqueakMap. (I

[Newbies] Problems getting started with OpenGL in Squeak

2008-07-31 Thread Nick Ager
Hi, I'd like to experiment with OpenGL in Squeak. I found the promisingly titled Howto - Loading OpenGL in Squeak 3.9 from Jakub Kozisek (http://lists.squeakfoundation.org/pipermail/beginners/2006-November/001451.html) and followed the directions: * install FFI and Balloon3D from SqueakMap. (I

[Newbies] What's wrong with this statement?

2008-07-31 Thread Timothy J Miller
(2 raisedTo: 128) atRandom hex Gives me results like: B990880B73211001 BFD3A7B37FA75001 E0A6F981C14DF001 Somehow I'm not buying the lower-order bits on this one. :) -- Tim smime.p7s Description: S/MIME cryptographic signature

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread Randal L. Schwartz
Timothy == Timothy J Miller [EMAIL PROTECTED] writes: Timothy (2 raisedTo: 128) atRandom hex Timothy Gives me results like: Timothy B990880B73211001 Timothy BFD3A7B37FA75001 Timothy E0A6F981C14DF001 Timothy Somehow I'm not buying the lower-order

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread Randal L. Schwartz
Randal == Randal L Schwartz [EMAIL PROTECTED] writes: Timothy == Timothy J Miller [EMAIL PROTECTED] writes: Timothy (2 raisedTo: 128) atRandom hex Timothy Gives me results like: Timothy B990880B73211001 Timothy BFD3A7B37FA75001 Timothy

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread Edgar J. De Cleene
El 7/31/08 4:41 PM, Randal L. Schwartz [EMAIL PROTECTED] escribió: Timothy == Timothy J Miller [EMAIL PROTECTED] writes: Timothy (2 raisedTo: 128) atRandom hex Timothy Gives me results like: Timothy B990880B73211001 Timothy BFD3A7B37FA75001 Timothy

[Newbies] Re: What's wrong with this statement?

2008-07-31 Thread nicolas cellier
Edgar J. De Cleene edgardec2001 at yahoo.com.ar writes: But (2 raisedTo: 128) atRandom could genetate 49572205802560219958060582892667404289 and 49572205802560219958060582892667404289 hex also is wrong print '254B42724A968401' Nah! hex is an excellent print, it is

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread Timothy J Miller
On Jul 31, 2008, at 2:54 PM, Edgar J. De Cleene wrote: But (2 raisedTo: 128) atRandom could genetate 49572205802560219958060582892667404289 and 49572205802560219958060582892667404289 hex also is wrong print '254B42724A968401' Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)

Re: [Newbies] Re: What's wrong with this statement?

2008-07-31 Thread Timothy J Miller
On Jul 31, 2008, at 3:01 PM, nicolas cellier wrote: Random#next uses Floating point arithmetic. Thus you get the 53 bits precision of a Float mantissa (IEEE 754 double). It then gets shifted (128-53) times. There's probably a trick that rounds Float last bit to zero (like round to nearest

Re: [Newbies] Re: What's wrong with this statement?

2008-07-31 Thread Randal L. Schwartz
Timothy == Timothy J Miller [EMAIL PROTECTED] writes: Timothy It certainly is inconsistent to have an Integer method that doesn't Timothy invisibly handle large ints. The Integer method is fine. The problem is the lack of bits from the PRNG from class Random. -- Randal L. Schwartz -

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread Edgar J. De Cleene
El 7/31/08 5:31 PM, Timothy J Miller [EMAIL PROTECTED] escribió: On Jul 31, 2008, at 2:54 PM, Edgar J. De Cleene wrote: But (2 raisedTo: 128) atRandom could genetate 49572205802560219958060582892667404289 and 49572205802560219958060582892667404289 hex also is wrong print

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread johnps11
The issue is almost certainly in atRandom: Running 30 timesRepeat: [ | a | a:= (2 raisedTo: 57) atRandom. Transcript show: a ; show: ' ' ; show: a even ; cr ]. Gives me 30 falses. The odds of that are less than one in a billion (assuming uniformly distributed integers). This doesn't

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread johnps11
El 7/31/08 5:31 PM, Timothy J Miller [EMAIL PROTECTED] escribió: On Jul 31, 2008, at 2:54 PM, Edgar J. De Cleene wrote: But (2 raisedTo: 128) atRandom could genetate 49572205802560219958060582892667404289 and 49572205802560219958060582892667404289 hex also is wrong print

Re: [Newbies] Problems getting started with OpenGL in Squeak

2008-07-31 Thread Nick Ager
Hi Derek, thanks for the reply. I've inspected SmalltalkImage current listLoadedModules and SmalltalkImage current listBuiltinModules and there is no sign of module:'Squeak3D'. I also checked my Croquet installation and again no sign of module:'Squeak3D' - however the Croquet image appears to

Re: [Newbies] What's wrong with this statement?

2008-07-31 Thread Randal L. Schwartz
johnps11 == johnps11 [EMAIL PROTECTED] writes: johnps11 I'm not clever enough to understand PRNGs, so I'll leave it others johnps11 to work out what the answer is, although I suspect that for more johnps11 than 56 bits you need a PRNG that uses LargeIntegers and not Floats. Yes. There are

[Newbies] Re: What's wrong with this statement?

2008-07-31 Thread nicolas cellier
johnps11 at bigpond.com writes: The issue is almost certainly in atRandom: Running 30 timesRepeat: [ | a | a:= (2 raisedTo: 57) atRandom. Transcript show: a ; show: ' ' ; show: a even ; cr ]. Gives me 30 falses. The odds of that are less than one in a billion (assuming

[Newbies] Re: What's wrong with this statement?

2008-07-31 Thread nicolas cellier
Randal L. Schwartz merlyn at stonehenge.com writes: johnps11 == johnps11 johnps11 at bigpond.com writes: johnps11 I'm not clever enough to understand PRNGs, so I'll leave it others johnps11 to work out what the answer is, although I suspect that for more johnps11 than 56 bits you need a

Re: [Newbies] Problems getting started with OpenGL in Squeak

2008-07-31 Thread Derek O'Connell
lol, dug up a Croquet install and it is nearly a year since I used it :-) Probably better if someone else chipped in with advice. Only thing I can think is that opengl32.dll cannot be found. Here it is in c:\windows\system32 but if you want to be sure then drop a copy in the squeak directory.