Post subject: English quine
Joined: 11/26/2005
Posts: 285
I had this idea for a year ago or so, I forgot all about it, and I just rembered it again a minute ago. Is it possible to construct a quine (a program whose output is its source code) in ordinary English language? That is, to say something to someone and get what you just said as a response. The English language can transfer some of the commands that programming languages can, like conditionals, loops and arithmetic (and some it can't, like memory allocation and pointers). Are those commands enough to make a quine out of? Also, the sentence "Say this sentence" isn't a quine, because the response you'd get is "This sentence".
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
"Please repeat this sentence that I am just speaking, to me, beginning from the word 'please'."
Joined: 11/26/2005
Posts: 285
Bisqwit wrote:
"Please repeat this sentence that I am just speaking, to me, beginning from the word 'please'."
Sure: "This sentence that I am just speaking, to me, beginning from the word 'please'." What I'm looking for is an fool-proof quine, that could be used on someone with the intelligence and naïveté of a computer. And I don't know if that's possible. Nice try, though.
Joined: 10/20/2006
Posts: 1248
"Hi" Works most of the time.
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Swedishmartin wrote:
Bisqwit wrote:
"Please repeat this sentence that I am just speaking, to me, beginning from the word 'please'."
Sure: "This sentence that I am just speaking, to me, beginning from the word 'please'." What I'm looking for is an fool-proof quine
What part of "beginning from the word 'please'" was unclear? If you're aiming to utilize someone who does not understand even the basics of the language they're communicating in, you have no hope of trying to issue complicated programming in that language. EDIT: If you're that pedantic and you assume that words such as "repeat" and "say" take the rest of the text as a literal, bypassing all language parsing, you just need to formulate it slightly differently -- put the details first and the command last: "Beginning from the first occurrence of the word 'beginning', please repeat to me this entire sentence." Or: "Beginning from the first occurrence of the word 'beginning', regarding this entire sentence, please repeat it."
Player (200)
Joined: 7/6/2004
Posts: 511
"hi" edit: damn too slow
g,o,p,i=1e4,a[10001];main(x){for(;p?g=g/x*p+a[p]*i+2*!o: 53^(printf("%.4d",o+g/i),p=i,o=g%i);a[p--]=g%x)x=p*2-1;}
Former player
Joined: 1/17/2006
Posts: 775
Location: Deign
"hi" edit: damn too slow
Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign aqfaq Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign Deign
Player (121)
Joined: 8/11/2009
Posts: 73
Location: Texas
What am I saying?
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Kumquat wrote:
What am I saying?
Words.
Active player (354)
Joined: 1/16/2008
Posts: 358
Location: The Netherlands
repeat twice after me: "repeat twice after me"
Although your audience will be rather confused :P
TASes: [URL=http://tasvideos.org/Movies-298up-Obs.html]Mr. Nutz (SNES), Young Merlin 100% (SNES), Animaniacs 100% (SNES)[/URL]
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
DaTeL237 wrote:
repeat twice after me: "repeat twice after me"
Taking the pedantic-aggressive attitude, you get: "twice after me repeat twice after me."
Banned User, Former player
Joined: 3/10/2004
Posts: 7698
Location: Finland
"You must repeat every single word that I have been saying since I began talking, because if you don't, I will be very mad."
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
"You must repeat every single word that I have been saying since I began talking, because if you don't, I will be very mad."
every single word that I have been saying since I began talking, because if you don't, I will be very mad. Your demeanor wasn't intimidating enough.
Active player (354)
Joined: 1/16/2008
Posts: 358
Location: The Netherlands
Bisqwit wrote:
DaTeL237 wrote:
repeat twice after me: "repeat twice after me"
Taking the pedantic-aggressive attitude, you get: "twice after me repeat twice after me."
ew hadn't thought about that :D or someone could interpret: Repeat twice after me! Repeat "twice after me" and say twice after me, twice after me! :P
TASes: [URL=http://tasvideos.org/Movies-298up-Obs.html]Mr. Nutz (SNES), Young Merlin 100% (SNES), Animaniacs 100% (SNES)[/URL]
Joined: 10/20/2006
Posts: 1248
flagitious' attempt is the only one that worked so far in this thread
Skilled player (1405)
Joined: 10/27/2004
Posts: 1977
Location: Making an escape
A bunch of people wrote:
Hi!
Hello! ^_^
A hundred years from now, they will gaze upon my work and marvel at my skills but never know my name. And that will be good enough for me.
Player (121)
Joined: 8/11/2009
Posts: 73
Location: Texas
Bisqwit wrote:
Kumquat wrote:
What am I saying?
Words.
A valid answer, but I doubt "someone with the intelligence and naïveté of a computer" – the intended recipient of the question, according to Swedishmartin – would respond like that. I think they would parse "What am I saying?" as a request for what I am saying, and what I am saying is "What am I saying?" Also, "Metal Gear?"
upthorn
He/Him
Emulator Coder, Active player (388)
Joined: 3/24/2006
Posts: 1802
Actually, the original Quine was not a program at all, but a paradoxical statement in English, by a philosopher (coincidentally, named Willard Quine) who studied indirect self-reference extensively. The statement: “Yields falsehood when preceded by its quotation” yields falsehood when preceded by its quotation. I'm not sure exactly how computer scientists got the idea of writing a program that displays its own source code from that statement, but it makes intuitive sense to me that they did. Edit: I realize that this is not what swedishmartin was looking for, so to answer his request, I submit: "Quote this."
How fleeting are all human passions compared with the massive continuity of ducks.
Banned User, Former player
Joined: 3/10/2004
Posts: 7698
Location: Finland
Bisqwit wrote:
DaTeL237 wrote:
repeat twice after me: "repeat twice after me"
Taking the pedantic-aggressive attitude, you get: "twice after me repeat twice after me."
I think that the answer ignores the punctuation, and is thus incorrect.
Joined: 7/2/2007
Posts: 3960
Warp wrote:
Bisqwit wrote:
DaTeL237 wrote:
repeat twice after me: "repeat twice after me"
Taking the pedantic-aggressive attitude, you get: "twice after me repeat twice after me."
I think that the answer ignores the punctuation, and is thus incorrect.
Even then you'd get "repeat twice after me repeat twice after me", which loses the colon and quotation marks needed to make a valid "program".
Pyrel - an open-source rewrite of the Angband roguelike game in Python.
Joined: 4/25/2004
Posts: 498
How about "..."? Works about as often as hi/hello, I think. :p
Active player (354)
Joined: 1/16/2008
Posts: 358
Location: The Netherlands
upthorn wrote:
I submit: "Quote this."
"this"
TASes: [URL=http://tasvideos.org/Movies-298up-Obs.html]Mr. Nutz (SNES), Young Merlin 100% (SNES), Animaniacs 100% (SNES)[/URL]
Player (36)
Joined: 9/11/2004
Posts: 2624
"Please repeat what I'm saying starting at the end of my sentence and using reverse word order: order word reverse using and sentence my of end the at starting saying I'm what repeat Please."
Build a man a fire, warm him for a day, Set a man on fire, warm him for the rest of his life.
Player (120)
Joined: 2/11/2007
Posts: 1522
"What?" usually works for me, assuming I am not in the middle of a conversation.
I make a comic with no image files and you should read it. While there is a lower class, I am in it, and while there is a criminal element I am of it, and while there is a soul in prison, I am not free. -Eugene Debs
Joined: 10/20/2006
Posts: 1248
"I so hate it when people are parroting me..." I know. >_>