Making alloca more safe
Walter Bright
newshound1 at digitalmars.com
Mon Nov 16 14:11:29 PST 2009
bearophile wrote:
> They use a different design strategy to
> be so reliable.
My understanding (I am no biologist) is that biology achieves
reliability by using redundancy, not by requiring individual components
to be perfect.
The redundancy goes down to the DNA level, even.
Another way is it uses quantity, rather than quality. Many organisms
produce millions of offspring in the hope that one or two survive.
Software, on the other hand, is notorious for one bit being wrong out of
a billion rendering it completely useless. A strategy of independent
redundancy is appropriate here.
For example, how would you write a program that would be expected to
survive having a random bit in it flipped at random intervals?
More information about the Digitalmars-d
mailing list