i was watching the Ali G show for moral guidance and philosophical stimulation. i came across this extremely insightful video where they were discussing science and computing.
Ali G asked the question - can computers add 101010101010101101010109988889996599979999101010 to 1010101010104000506020949403060606060?
and everyone was like - YES!
but later when i thought about it and what great teacher Ali G was trying to point out, i realised that he was subtly trying to point out the problems of overflow.
so 3 questions guys,
1) how do we add 101010101010101101010109988889996599979999101010 to 1010101010104000506020949403060606060?
2) when an integer variable is assigned a value of 19284712873192873192873, it's called a variable overflow right?
3) what's the difference between a memory overflow, variable overflow and GFP?
what i think is:
a) memory overflow is a generic overflow of any type
b) an integer variable overflow is also a memory overflow cause it exceeds its allocated memory space.
c) a GFP is when an application tried to write to memory outside its allocated space - and this may affect other applications or the OS. a memory overflow in some sense. perhaps not in terms of volume but in terms of location.