Exercise for the reader, make a quine that still works even if any one character is mutated (by 1 bit or 8?), rather than deleted.
Radiation-hardened quine
11–20 of 76 posts
Re: Radiation-hardened quine
#12how about a real native app with instructions? i'd never expect something as high level and wooly as ruby in systems that will be exposed to radiation. that's just asking for failure imo... how robust is the interpreter for instance?
Re: Radiation-hardened quine
#13Fascinating exercise. "Deleting one character" seems a phenomenally unlikely outcome of radiation, though.
We had a few similar tasks on CGSE, e.g.
Re: Radiation-hardened quine
#14i wonder how far this can be taken... e.g. flipping or setting a random string of bits that would be physically contiguous in hardware as if a real neutron came smashing into the memory... if doing it during run can be achieved etc. how about a real native app with instructions? i'd never expect something as high level and wooly as ruby in systems that will be exposed to radiation. that's just asking for failure imo.…
So yeah, even if you don't go into space or inside a nuclear reactor software can be written to tolerate a lot of harware failures.
Re: Radiation-hardened quine
#15My favorite part: "Ruby I terrible."
http://translate.google.com/translate?sl=auto&tl=en&js=n&pre...
Re: Radiation-hardened quine
#16Re: Radiation-hardened quine
#17Here's the google translate link to his blog post about it. My favorite part: "Ruby I terrible." http://translate.google.com/translate?sl=auto&tl=en&js=n&pre...
Chinese would also drop the verb in this case, so I'm assuming they might do that in Japanese as well.
Re: Radiation-hardened quine
#18Re: Radiation-hardened quine
#19Here's the google translate link to his blog post about it. My favorite part: "Ruby I terrible." http://translate.google.com/translate?sl=auto&tl=en&js=n&pre...
Japanese is Subject-Object-Verb order, so it was probably "My Ruby (is) terrible". But I don't know Japanese so I can't tell you for sure. Chinese would also drop the verb in this case, so I'm assuming they might do that in Japanese as well.
Re: Radiation-hardened quine
#20Exercise for the reader, make a quine that still works even if any one character is mutated (by 1 bit or 8?), rather than deleted.
That definitely wouldn't work with this strategy (two copies), because you wouldn't be able to tell which copy was the mutated one. Error-correcting codes to the rescue. :)