Try searching on subtractive cancellation on google for information on
strategies to avoid this kind of thing. One is to treat (a-b) as
(a^2 - b^2)/(a+b), which can reduce the relative error in some cases.
Unfortunately the exact strategy often depends on the numbers used and the
hardware it runs
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
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
Hi there,
I'm trying to read from a named pipe. I'm on Linux (Ubuntu 8.04).
- I created the pipe using mkfifo
- I can write to it, and when I cat the pipe within another terminal I
see the output.
- I've tried using various combinations of FileStream,
Quoting [EMAIL PROTECTED]:
Hi Stan!
snipped large post
Hi John, not confusing- an excellent response, thanks.
With the memory option it also cruises on under Linux, until it freezes at
70
million objects.
While it's still loading vmstat shows:
procs ---memory--
Hi Stan!
Have you tried using the -mmap option when starting Squeak? I notice that
according to the squeakvm man page:
squeak uses a dynamic heap by default with the maximum size set to
75% of the available virtual memory or 1 gigabyte, whichever is smaller.
Perhaps Windows doesn't have
Hi Sven,
Yes, I'm in Oz, on the Gold Coast. I'm not an expert on Squeak by any
means, but I'm using it in maths education, and thinking seriously about
using it for a PhD in Maths Education in a couple of years. I know of one
other guy (a PHP wizard) who was pretty wowed by Seaside and Squeak,
Hi Goran!
I just want to point out that the long links in your mail were broken for
me (although a little cut and paste fixed that). Perhaps a service like
tinyURL would be useful when sending long links from the dark and distant
past.
I have noticed in this thread an undertone of #become is the
Hi Blake!
I've yet to find a situation where I can't put the code that would be in a
constructor in C++ into #initialize. I suppose there are situations where
that would be a bad idea, but I just haven't met them, or else I'm doing
bad things (very likely).
Every time I get that kind of a
Hi,
I think it's probably a vendor bug. I notice that Gemstone is getting a
SIGILL, this is usually either a bad opcode (data corruption) or an
attempt to do stupid tricks like overwrite the return address in the stack
(this is in breach of POSIX).
Possibly you might have a subtle issue with
On Dec 1, 2007, at 20:34 , Pete wrote:
Hi, I'm new to Smalltalk, coming from C++ and Java.
I find Squeak very interesting, especially the
features for rapid prototyping.
I tried learning on the job, started with the
Games-Chess class category, as I'm was formerly
experienced in chess
ALSA is the sound drivers and associated support files. You won't get
sound to work without them. Have patience, sometimes getting sound
working in Linux is an exercise in being persistent and methodical.
John
Offray,
Thanks for your help. I tried the instructions on your website but it
The new XML based format may be easier to parse / write using YAXO
As someone who has done this stuff (though not from Squeak), Good Luck
with OOXML. It's very fragile, and appears to break for no apparent
reason. I suggest you either use a library (as others have suggested) or
use Oo.org as a
Hi Michael,.
snip
Are you installing the package that
comes with your Linux distribution?
Are there already such distributions? I wonder why SuSE does not have
integrated Squeak yet.
Debian doesn't include Squeak in main because Squeak-L is not DFSG
compliant. According to a note at the
Hey, guys:
(And who came up with that whole improper terminology? Some guys with
small numerators, I'd bet)
===Blake===
I spent many years teaching remedial maths. The whole
proper/improper/mixed number concept messes with many kids learning
arithmetic with fractions.
As I
Just as I was thinking I was getting a handle on this I'm terribly
confused...
a _ FileStream fileNamed: 'readme.txt'.
gives me a stream an the file.
b _ FileStream fileNamed: 'readme.txt'.
gives me nil
a _ nil.
a _ FileStream fileNamed: 'readme.txt'.
a is still nil
It seems that the only
16 matches
Mail list logo