Radiation-hardened quine
github.com
Radiation-hardened quine
1–10 of 76 posts
Re: Radiation-hardened quine
#2[deleted]
Re: Radiation-hardened quine
#3Fascinating exercise. "Deleting one character" seems a phenomenally unlikely outcome of radiation, though.
Re: Radiation-hardened quine
#4Hard mode: flip bits in the interpreter's process memory as it's running.
Re: Radiation-hardened quine
#5I can't read this code at all, but, does this code basically contain the same code twice, so if something from the first half is removed the second half saves it?
Re: Radiation-hardened quine
#6Exercise for the reader, make a quine that still works even if any one character is mutated (by 1 bit or 8?), rather than deleted.
Re: Radiation-hardened quine
#7I recommend reading specs for low power digital radio protocols like WSPR for ideas around basic error correction. Just something I did recently and was fun.
Re: Radiation-hardened quine
#8I can't read this code at all, but, does this code basically contain the same code twice, so if something from the first half is removed the second half saves it?
I didnt look at the code and am not knowledgeable in this kind of coding but unless I am wrong, if the program simply would contain the same code twice each of these 2 codes would have to contain the same code twice ad infinitum.
Re: Radiation-hardened quine
#9I can't read this code at all, but, does this code basically contain the same code twice, so if something from the first half is removed the second half saves it?
Yes, Line 15:
/#{eval eval if eval==instance_eval}}/.i rescue##/
They are checking the two instances and rescuing the corrupted one. But how exactly it works is beyond me.
Re: Radiation-hardened quine
#10Hard mode: flip bits in the interpreter's process memory as it's running.
Extreme mode: Run this code on an abacus.