The Polish sci-fi writer Stanisalw Lem has died.