Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!wuarchive!udel!princeton!phoenix!kadickey From: kadickey@phoenix.Princeton.EDU (Kent Andrew Dickey) Newsgroups: comp.sys.apple Subject: Re: bugs in applesoft (Was: Re: GS/OS SCSI questions) Message-ID: <12933@phoenix.Princeton.EDU> Date: 15 Jan 90 04:44:42 GMT References: <1232@mountn.dec.com> <12882@phoenix.Princeton.EDU> <13257@cit-vax.Caltech.Edu> <1990Jan14.212033.4109@eng.umd.edu> Reply-To: kadickey@phoenix.Princeton.EDU (Kent Andrew Dickey) Organization: Princeton University, NJ Lines: 46 In article <1990Jan14.212033.4109@eng.umd.edu> cyliao@eng.umd.edu (Chun-Yao Liao) writes: >In article <13257@cit-vax.Caltech.Edu> tromey@tybalt.caltech.edu.UUCP (cactus) writes: >>i seem to remember that about 1 or 2 years ago someone wrote an article >>for nibble magazine where he fixed 13 (12?) bugs in applesoft. i dont have >>my issues handy so i cant really look it up (but i could if you really >>want). i do remember that there is a bug in the floating point multiply >>routine which causes it to get the last bit wrong under certain >>circumstances. also onerr is very buggy - apple even published a little >>piece of machine code to fix up "some onerr goto problems with print and >>?out of memory error messages." (quote from basic prog. ref. manual). >>also wasnt there some bug with key and onerr? i seem to remember... >>hope this helps/tom >>tromey@tybalt.caltech.edu or is this just stupid? > Before all the replies get out of hand, I clearly meant *SERIOUS* bugs. Getting the last bit wrong in a multiply is not that big of a deal since Applesoft keeps more digits of precision that it will print out. Plus, floating point operations are inherently inaccurate, so having the last bit wrong is trivial. As for ONERR, I meant to imply that it does have a few bugs. The orgnization of AppleSoft (in assembly) makes good error trapping hard. But no one seriously tries to recover from serious errors with RESUME, do they? Basically, AppleSoft is good at catching any error with ONERR, the point is that you just can't reliably continue your program from just *ANY* error that occurs just anywhere. No other language even attempts feats like this (at least, not a language I know). Trapping math overflows always seems to work well for me, along with trapping disk errors. My point is that AppleSoft is very stable for what it does. How many of you have actually encountered these bugs, and not read about them from someone else? How many of us, on the other hand, have encountered bugs in GS/OS or even ProDOS? (DOS 3.3 was also notorious for bugs...). I know I have--GS/OS seems to mangle a disk or two every couple of months, for no real reason. I can't figure out why--it seems to create a file, but not properly write the directory on the disk, and then detect something's wrong and make my disk unuseable ("This disk appears to be damaged..."). Anyways, end the discussion about all the bugs we know about in Applesoft. I just wanted to say I am impressed with it. If you are not, that's ok. Knet Dickey kadickey@phoenix.Princeton.EDU