15
2
Last night I was looking for the Radiation Hardened Quine challenge, but I couldn't find it. Turns out no one has asked it yet! So here it is:
Your task is to make a quine, that is a non-empty computer program that prints it's own source without reading it. In addition if you remove any one byte from your original program the new program should print the source of your original program.
This is code-golf so answers are scored in bytes with fewer bytes being better.
Related – Jo King – 2018-07-05T14:41:12.133
Also related (duplication instead of deletion) – JungHwan Min – 2018-07-05T14:42:16.093
1Wasn't this asked, unanswered for 1.5 years and then deleted b/c the user account was deleted or something? Not saying I don't want one though +1. Just swear I've seen it. – Magic Octopus Urn – 2018-07-05T17:55:14.803
@MagicOctopusUrn I thought it existed. I wanted to answer it but couldn't find it. If someone finds the old one I'd be happy to dupe hammer this myself. – Post Rock Garf Hunter – 2018-07-05T17:59:56.957
I can't find it either. I must be going slowly insane. – Magic Octopus Urn – 2018-07-05T18:01:18.787
Was it not just sitting in the Sandbox for an eternity? (Although, I could've sworn I saw it on Main, as well) – Shaggy – 2018-07-05T18:07:07.043
Surely this is just an
– AdmBorkBork – 2018-07-05T18:25:41.480n=1
subset/version of https://codegolf.stackexchange.com/q/57257/42963 ?@AdmBorkBork Any answer there is valid here and vice versa however the scoring is drastically different. This question is straight code-golf and that is a code-challenge. – Post Rock Garf Hunter – 2018-07-05T18:34:35.497
@AdmBorkBork, that's the one I was thinking of and assumed was the one Cat was referring to. – Shaggy – 2018-07-05T19:14:37.660
@MagicOctopusUrn Can't find any.
– user202729 – 2018-07-06T02:10:49.417No Compile Error allowed if one char removed? – l4m2 – 2018-07-06T12:43:22.993
@l4m2 As long as the compiled program works as intended, compiler errors are fine. – Post Rock Garf Hunter – 2018-07-06T15:09:51.783
@CatWizard Are you sure this question has an answer – Agile_Eagle – 2018-07-10T17:24:58.637
@Agile_Eagle Yes here is one..
– Post Rock Garf Hunter – 2018-07-10T17:26:25.103I think the radiation hardened quine question used to have an answer in A Pear Tree with the question being a code challenge based on how many bytes could be changed with the program still working. – fəˈnɛtɪk – 2018-07-10T20:53:57.990