Abbreviations.com Convert.net Definitions.net Lyrics.net Phrases.net Quotes.net References.net Rhymes.net Synonyms.net USZip.com  Bookmark and Share
 
Definitions.net
Search for Dictionary Definitions:  
Browse Alphabetically:
 A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   # 
 random definition 

 Definitions of quine  

Translate quine to



Definition of 'quine' Princeton's WordNet 

1. (noun) Quine, W. V. Quine, Willard Van Orman Quine
United States philosopher and logician who championed an empirical view of knowledge that depended on language (1908-2001)


Definitions of 'quine' The New Hacker's Dictionary 

1.  quine
[from the name of the logician Willard van Orman Quine, via Douglas Hofstadter] A program that generates a copy of its own source text as its complete output. Devising the shortest possible quine in some given programming language is a common hackish amusement. (We ignore some variants of BASIC in which a program consisting of a single empty string literal reproduces itself trivially.) Here is one classic quine:
((lambda (x)
  (list x (list (quote quote) x)))
 (quote
    (lambda (x)
      (list x (list (quote quote) x)))))

This one works in LISP or Scheme. It's relatively easy to write quines in other languages such as Postscript which readily handle programs as data; much harder (and thus more challenging!) in languages like C which do not. Here is a classic C quine for ASCII machines:
char*f="char*f=%c%s%c;main()
{printf(f,34,f,34,10);}%c";
main(){printf(f,34,f,34,10);}

For excruciatingly exact quinishness, remove the interior line breaks. Here is another elegant quine in ANSI C:
#define q(k)main(){return!puts(#k"
q("#k")");}
q(#define q(k)main(){return!puts(#k"
q("#k")");})

Some infamous Obfuscated C Contest entries have been quines that reproduced in exotic ways. There is an amusing Quine Home Page.



'quine' - Nearby Entries  

quin  quincentenary  quincentennial  quincy  quine  quinidex  quinidine  



Citation: Add this definition to your bibliography   MLA  Chicago  APA 
"quine." Definitions.net. STANDS4 LLC, 2012. 2 June. 2012. http://www.definitions.net/definition/quine


Alternative search options for 'quine'   
Search for Synonyms for 'quine'
Quotes containing the term 'quine'
Search for Phrases containing the term 'quine'
Search for Abbreviations containing the term 'quine'
Search for 'quine' on Search quine on Amazon.com! & Search quine on Google.com!
What rhymes with 'quine'?
NEW:Search for Song lyrics containing the word 'quine'


Definitions.net |  Login |  Add New Abbreviation |  Your List |  Tools |  Become an Editor |  Tell a Friend |  Awards |  Testimonials |  Press |  News |  Forum new! |  APIs |  About
Copyright ©2001-2011 STANDS4 LLC. All rights reserved.  Terms of Use  |  Privacy Policy  |  Advertise  |  Contact Us  Follow us on Facebook! Follow us on Twitter!