Tuesday, March 03, 2009

Matrix thoughts

AI lemma (anti-Matrix):
We do not live in a simulation of a similar universe as a simulation will consume more energy than a real existence.

A corollary would be:
The universe simulating our existence might be so different that the above lemma doesn't apply.

Guards in Java

Haskell functions have this nice concept called 'guards' which allow you to define a condition and return a value when that conditi...