Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 42545

A quine is a program which produces its source as output. This tag indicates that the challenge is related to quines. [self-referential] should be used for challenges that, while having the output have some relation to the source code, do not require fully reproducing the source.

9 votes

Golf you a quine for great good!

Of course, any number literal is also a quine because of implicit output. …
ETHproductions's user avatar
3 votes

A Fragile Quine

JavaScript, 90 bytes a="a=%s;a[44]!=')'?x:console.log(a,uneval(''+a))";a[44]!=')'?x:console.log(a,uneval(''+a)) Works in the console of Firefox 48, and should work in any other environment with une …
ETHproductions's user avatar
6 votes

Golf you a quine for great good!

Cheddar, 56 bytes var a='var a=%s;print a%@"39+a+@"39';print a%@"39+a+@"39 Try it online! I felt like trying to make something in Cheddar today, and this is what appeared...
ETHproductions's user avatar
9 votes

Error (or warning) quine that's also a regular quine

.+/,x=>{alert(x=x.replace(1,uneval(x)));throw x.slice(7)}) Explanation The idea here was to start with the most easily modifiable JS quine I've found yet: ".replace(/.+/,x=>alert(uneval(x)+x))".replace …
ETHproductions's user avatar
1 vote

Print a quine that contains the input

There are several alternative versions of the same length: "iQ ²ª`abc"iQ ²ª`abc quine||"abc" "iQ ²ª$abc"iQ ²ª$abc quine||abc "iQ ²ª{abc"iQ ²ª{abc quine||function(){ ... } "iQ ²ªXabc"iQ ²ªXabc … quine||X.a(...) …
ETHproductions's user avatar
5 votes

Golf you a quine for great good!

Japt, 9 bytes I've fantasized about a 9-byte Japt quine for years, and now it's finally snapped into place :-D 9îQi"9îQi Test it online! …
ETHproductions's user avatar
8 votes

Golf you a quine for great good!

JavaScript (Firefox), 44 40 bytes eval(e="alert('eval(e='+uneval(e)+')')") Not sure how I haven't thought of this before; it's basically exactly the same as the standard function quine (f=_=>alert … x.replace(/\\d/g,q)),q='1')".replace(/.+/,x=>alert(q+x+q+x.replace(/\d/g,q)),q='"') Original answer, 118 bytes Now, this certainly isn't a winner, but AFAIK, this is the first ever non-source-reading quine
ETHproductions's user avatar
5 votes

Golf you a quine for great good!

JavaScript, 58 54 bytes I present to you the shortest non-source-reading quine in JavaScript: console.log(a="console.log(a=%s,uneval(a))",uneval(a)) How have I not thought of this before? …
ETHproductions's user avatar
3 votes

Quinean Regex Tester

Japt, 22 bytes "+Q ³sAJ fU"+Q ³sAJ fU Standard quine framework with a few bytes added to fit this challenge. Truthy = match(es), falsy = null. Try it online! …
ETHproductions's user avatar
2 votes

1-up your average quine

JavaScript (ES6), 164 bytes console.log((`+String.fromCharCode(96)).repeat(window.a||(a=3,5)).slice(67,-14)) console.log((`+String.fromCharCode(96)).repeat(window.a||(a=3,5)).slice(67,-14)) Works in …
ETHproductions's user avatar
1 vote

1-up your average quine

Japt, 40 bytes Oo("+Q ²pT°?1:2 é4;POo("+Q ²pT°?1:2 é4;P Test it online! Explanation to come.
ETHproductions's user avatar
1 vote

Write a Metaquine

JavaScript, 50 bytes a="a=%s;console.log(a,uneval(a))";eval(a.slice(5)) Based on the shortest non-source-reading JS quine known to man, but a good 8 bytes shorter. … Prints a="a=%s;console.log(a,uneval(a))";console.log(a,uneval(a)) which is a quine. …
ETHproductions's user avatar
1 vote

The longest period iterating quine

JavaScript, period 9,007,199,254,700,000 Not going to win, but it was fun working with JavaScript on this challenge: a="a=%s;console.log(a,uneval(a),%.0f-1||90071992547e5)";console.log(a,uneval(a),1 …
ETHproductions's user avatar
4 votes

Faux Source Code

Japt, 22 bytes "+Q ²£ZgMqB"+Q ²£ZgMqB Test it online! How it works "+Q ²£ZgMqB"+Q ²£ZgMqB // Implicit: B = 11 "+Q ²£ZgMqB" // Take this string. +Q // Append a quo …
ETHproductions's user avatar
3 votes

Source code GO!

there's not a non-source-reading JS answer: a="a=%s;co%s.log(a,uneval(a),`(${'^'}_${'^'})`)";console.log(a,uneval(a),`(${'^'}_${'^'})`) This is based on my non-source-reading answer to Golf you a quine
ETHproductions's user avatar

15 30 50 per page