Se7en Posted August 11, 2009 Posted August 11, 2009 for a def look here: [ http://en.wikipedia.org/wiki/Quine_(computing) ] As an example (taken from): [ http://community.schemewiki.org/?quines ] Cut and paste this into your command line and see what comes out. ((lambda (x) (list x (list (quote quote) x))) (quote (lambda (x) (list x (list (quote quote) x))))) At the bottom of that page is a really fun challenge: produce a palindromic quine. Quote
ReMark Posted August 11, 2009 Posted August 11, 2009 "Devising the shortest possible quine in some given programming language is a common hackish amusement." Quote
Se7en Posted August 12, 2009 Author Posted August 12, 2009 Not quite sure i follow your train of thought. Does that post mean you don't want to participate? Quote
ReMark Posted August 12, 2009 Posted August 12, 2009 Sounds like something that might appeal to you Lee. Quote
Lee Mac Posted August 12, 2009 Posted August 12, 2009 Is that the shortest quine on record? Its not quite a quine... (quote '(quote)) Is equivalent to: (quote (quote (quote))) Quote
ReMark Posted August 12, 2009 Posted August 12, 2009 Palindromes. Words such as: racecar, hannah, aibohphobia. Sentence such as: Was it a car or a cat I saw? Quote
Freerefill Posted August 12, 2009 Posted August 12, 2009 Very cool find, Se7en! Bored programmers have the most fun. :3 Quote
Lee Mac Posted August 12, 2009 Posted August 12, 2009 Not really my own, just a variant of one supplied: ((lambda (p) (prin1 (list p (list (quote quote) p)))) (quote (lambda (p) (prin1 (list p (list (quote quote) p)))))) Quote
ReMark Posted August 12, 2009 Posted August 12, 2009 Your next attempt will be at a palindromic quine? Quote
Lee Mac Posted August 12, 2009 Posted August 12, 2009 I got pretty close... ((lambda (x) (list (reverse x) (list (quote quote) (reverse x)))) (quote ((((x reverse) (quote quote) list) (x reverse) list) (x) lambda))) Quote
Se7en Posted August 12, 2009 Author Posted August 12, 2009 Does this count (quote '(quote)) nope ...I hate vBulletin. Quote
Se7en Posted August 12, 2009 Author Posted August 12, 2009 I got pretty close... ((lambda (x) (list (reverse x) (list (quote quote) (reverse x)))) (quote ((((x reverse) (quote quote) list) (x reverse) list) (x) lambda))) Oooo! Looks a lot like my attempts too. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.