3 ms·
Spoiler: cmVwZWF0IDMgMgpwcmludCAyCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCg==
by daveloyall 11y ago
Spoiler:
cmVwZWF0IDMgMgpwcmludCAyCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCg==
- superobserver 11y agoAnother similar to your idea: cmVwZWF0IDQgMw0KcHJpbnQgMg0KcmVwZWF0IDQgMw0KcHJpbnQgMg0KcmVwZWF0IDQgMw0KcHJpbnQgMg==
- JoshTriplett 11y agoVariant that doesn't rely on potentially undefined behavior of asking "repeat" to repeat before the beginning: cHJpbnQgMApwcmludCAyCnByaW50IDAKcHJpbnQgMgpwcmludCAwCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCnByaW50IDIKcmVwZWF0IDMgMgo=
- daveloyall 11y agoGood eye. Also, https://github.com/wgreenberg/quine.zip/blob/gh-pages/test/interpreterSpec.js#L151 https://github.com/wgreenberg/quine.zip/blob/gh-pages/test/i...
- JoshTriplett 11y agoSure, but LZ doesn't necessarily allow that.
- sevenfive 11y agoHow do you use these strings?
- JoshTriplett 11y agoThey're base64. Feed them to "base64 -d" on Linux, or one of the many base64 decoders on the web. See https://en.wikipedia.org/wiki/Base64 https://en.wikipedia.org/wiki/Base64
- mattdodge 11y agoThis is the shortest one of the solutions so far. Wonder if it's the shortest possible? (Other than empty = empty)
- daveloyall 11y agoHm. Well, it was the first quine I arrived at. No special effort was made to make it short.
- spacehome 11y agoYes. It is the unique shortest possible solution if you allow for a repeat at the beginning. OTOH if you disallow starting with a REPEAT, the shortest is length 10.