mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2012-01-29, 20:06   #12
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

3·5·313 Posts
Default

Quote:
Originally Posted by xilman View Post
I could make a reasonable claim that this Dartmouth BASIC program
Code:
10 REM NO BUGS
20 END
is bug free.

Paul
Depends on how far you want to take it.
Based on today's implementation of BASIC I will take your word for it that it is syntactically correct and **should** function as expected:

However:
- What guarantees do you have that the OS you run this on is bug free?
- What guarantees do you have that the HW is bug free?
- What guarantees do you have that the Dartmouth developers won't make a change to BASIC in the future (intentionally or OMG a bug of their own) that could cause your program to NOT work the same?
petrw1 is offline   Reply With Quote
Old 2012-01-30, 13:17   #13
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5×359 Posts
Default

Just having lost a computer power supply, shorted out with a chip smoked by a fuzzy caterpillar-like bug, I assure you, no computer program is guaranteed bug free.

Further, while it *may* be possible to write error-free programs, I think stating "bug free" is a little like measuring the amount of cash in an economy as a primary driver in the economy. It oversimplifies things.

By way of evidence, I cite the Pentium FDIV bug. There was a reward out there, in a place with some extremely intelligent folks, to find someone actually affected by this widespread problem. It went unawarded -- the FDIV bug affected the 4th or 5th significant figure, and the vast majority of us (computational number theorists are a distinct and small minority) don't have measurements of physical quantities that precise to begin with, and if the fifth significant figure matters, the problem has a very poor condition number, and any decent numerical modeler will find this out anyway.

And given Peterw1's qeustions, I think it is only possible to discuss systems that are asymptotically bug free...or highly reliable and robust, as it were. Yes, we can get to the point where no more bugs are found in the source code, and issues are more often due to hardware, but there's a raft of other probems, even if the source code is, in some sense, perfect:
1) Was the specification for the program correct?
2) Is my hardware and OS going to react properly to disturbances, such as cosmic rays, random errors, and loss of power?
3) How would a frankly complex program/computing system detect that it has misbehaved? (Note that P95 hass done significant work in that regard, but mfaktc has not)
4) What about leaking memory? In the system that runs the program? Will this force an eventual shutdown? In an interval that matters? (Salesmen of ferroelectric ram like to cite the wearout mechanism as becoming important in 1700 years, if the device is written to constantly, every few millseconds or so).
Christenson is offline   Reply With Quote
Old 2012-01-30, 17:25   #14
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·5,393 Posts
Default

Quote:
Originally Posted by petrw1 View Post
Depends on how far you want to take it.
Based on today's implementation of BASIC I will take your word for it that it is syntactically correct and **should** function as expected:

However:
- What guarantees do you have that the OS you run this on is bug free?
- What guarantees do you have that the HW is bug free?
- What guarantees do you have that the Dartmouth developers won't make a change to BASIC in the future (intentionally or OMG a bug of their own) that could cause your program to NOT work the same?
I neither have nor make any guarantees of that nature.

Equally, I make no guarantee that I won't quantum tunnel to Mars some time tomorrow.
xilman is offline   Reply With Quote
Old 2012-01-30, 17:33   #15
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·5,393 Posts
Default

Quote:
Originally Posted by petrw1 View Post
Depends on how far you want to take it.
Based on today's implementation of BASIC I will take your word for it that it is syntactically correct and **should** function as expected:

However:
- What guarantees do you have that the OS you run this on is bug free?
- What guarantees do you have that the HW is bug free?
- What guarantees do you have that the Dartmouth developers won't make a change to BASIC in the future (intentionally or OMG a bug of their own) that could cause your program to NOT work the same?
Going into more detail:

I would be surprised if any OS on which a Dartmouth BASIC interpreter has ever run has been bug free.

I would be even more surprised if any hardware on which a Dartmouth BASIC interpreter has ever run has been bug free.

As for the Dartmouth developers making a change of the nature you suggest, surprise is no longer adequate and I am forced to resort to astonishment(*).


Paul

(*) At this point, I suggest that you start Googling. You should find at least two distinct items of interest in the third claim.

Last fiddled with by xilman on 2012-01-30 at 17:35
xilman is offline   Reply With Quote
Old 2012-01-31, 13:47   #16
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

70316 Posts
Default

But Paul....the first question is where do I *get* an implementation of "Dartmouth" BASIC these days???? I somehow *expect* it to have a *very high* degree of support!!!!! (grin)
What??!!!??? It was only available on megauploads.com?????!*!?!?
Christenson is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
.dat file message mnh001 YAFU 7 2015-02-07 07:37
TF: Wd2: 00000000 tichy Software 6 2010-12-01 18:53
Log Out Message storm5510 Forum Feedback 3 2009-08-15 07:11
PRIME.INI question to address error message JHagerson Software 1 2006-01-26 18:34
error message help? AurKayne Hardware 3 2005-08-29 09:13

All times are UTC. The time now is 22:28.


Fri Aug 6 22:28:54 UTC 2021 up 14 days, 16:57, 1 user, load averages: 3.71, 3.36, 3.24

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.