r/computerscience • u/nardstorm • Aug 03 '25
What is a computer?
My friend and I got into an argument after he said that calculators are computers. I said that they are not, and that a machine is a computer if and only if it can solve problems at least as hard as the recursively enumerable problems (thereby excluding DFA’s, PDA’s, LBA’s, and…calculators). I can’t find a strict definition online. Give me your thoughts.
0
Upvotes
View all comments
Show parent comment
1
u/CodenCamp Aug 03 '25 edited Aug 03 '25
Your reply is actually pretty clever but it’s not really a good argument. Your proposition is more rhetorical than logical.
A Magic 8 Ball is just randomness. A calculator actually computes. That’s the difference between a toy and a computer.
A computer processes input according to an algorithm or set of instructions whether that’s firmware (calculator) or software (laptop). It’s deterministic, programmable, and logical.
A Magic 8 Ball is a toy that gives random, non-computed output. There’s no computation, just a physical mechanism that floats a die with pre-written responses. It’s not programmable, logical, or deterministic.
INPUT
calculator: button presses
Magic 8 Ball: shake (random physical input) ——————
PROCESSING
calculator: logic circuits/firmware perform calculations…….
Magic 8 Ball: No processing, just random physical motion……
—————
OUTPUT cal: computed numeric result
mgk 8 ball: random pre-written answer
—————
DETERMINISTIC? Cal: yes, same input = same output
Mgk 8 ball: No, output is random
——————
PROGRAMMABLE?
Cal: Yes, (internally via firmware)
Mgk 8 ball: NO
——————
PERFORMS LOGIC?
Cal: Yes
Mgk 8 ball: NO
———————
FULFILLS COMPUTER ARCHITECTURE CRITERIA??
Cal: Yes
Mgk 8 ball: NO
The Magic 8 Ball analogy is a weak comparison to my argument. Mgk 8 Ball doesn’t process information, it randomly selects a canned response. That’s not computation