The Chances of Anything Coming from Mars

From Esolang
Jump to navigation Jump to search

This esolang, partially inspired by the 2014 and 2017 languages (but only in the base concept of time-sensitiity), only works every one millionth millisecond (so that the chances of randomly getting this to output are a million to one, just as the chances of anything lifelike on Mars as said in H.G. Wells's The War of the Worlds. (or, as in Jeff Wayne's The Eve of the War, "The Chances of Anything Coming from Mars.")), returing the first paragraph of H.G. Wells's The War of the Worlds. Otherwise, it will return a bad value (such as NaN, which is done in the following Javascript interpreter by subtracting a string).

Javascript Interpreter

// put this script with a simple HTML page and go.
let d = 'N';
let date = new Date()
if (date.getTime() % 1000000 === 0) {d += 'o one would have believed in the last years of the nineteenth century that this world was being watched keenly and closely by intelligences greater than man’s and yet as mortal as his own; that as men busied themselves about their various concerns they were scrutinised and studied, perhaps almost as narrowly as a man with a microscope might scrutinise the transient creatures that swarm and multiply in a drop of water. With infinite complacency men went to and fro over this globe about their little affairs, serene in their assurance of their empire over matter. It is possible that the infusoria under the microscope do the same. No one gave a thought to the older worlds of space as sources of human danger, or thought of them only to dismiss the idea of life upon them as impossible or improbable. It is curious to recall some of the mental habits of those departed days. At most terrestrial men fancied there might be other men upon Mars, perhaps inferior to themselves and ready to welcome a missionary enterprise. Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. And early in the twentieth century came the great disillusionment.';}
else {d -= 1}
document.getElementById("demo").innerHTML = d;