Skip to content

Comment on Radiation-hardened Quine (2014)

Comments

How... does it work? What happens if you delete one of the characters in "eval"? What's the space in "e xit" about?

Not sure about “e xit” off the top of my head, this isn't one of my “natural” languages, but I assume breaking eval is protected against by the multiple invocations and the fact that assignment is an operator that returns its result as well as setting the target variable. If one of the evals is broken (or one of the =s between is removed) it just becomes a variable that is assigned to and the result is passed along. Three evals is enough to give the “any single character deleted” survivability, for “any two characters” you would need five (and many of the other tricks would need to be altered/expanded also).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.