Reality is a cosmic algorithm