英文字典中文字典


英文字典中文字典51ZiDian.com



中文字典辞典   英文字典 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       







请输入英文单字,中文词皆可:

quine    音标拼音: [kw'ɑɪn]
Quine
n 1: United States philosopher and logician who championed an
empirical view of knowledge that depended on language
(1908-2001) [synonym: {Quine}, {W. V. Quine}, {Willard Van
Orman Quine}]

/kwi:n/ (After the logician Willard V. 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.

In most interpreted languages, any constant, e.g. 42, is a
quine because it "evaluates to itself". In certain {Lisp}
dialects (e.g. {Emacs Lisp}), the symbols "nil" and "t" are
"self-quoting", i.e. they are both a symbol and also the value
of that symbol. In some dialects, the function-forming
function symbol, "lambda" is self-quoting so that, when
applied to some arguments, it returns itself applied to those
arguments. Here is a quine in {Lisp} using this idea:

((lambda (x) (list x x)) (lambda (x) (list x x)))

Compare this to the {lambda expression}:

(\ x . x x) (\ x . x x)

which reproduces itself after one step of {beta reduction}.
This is simply the result of applying the {combinator} {fix}
to the {identity function}. In fact any quine can be
considered as a {fixed point} of the language's evaluation
mechanism.

We can write this in {Lisp}:

((lambda (x) (funcall x x)) (lambda (x) (funcall x x)))

where "funcall" applies its first argument to the rest of its
arguments, but evaluation of this expression will never
terminate so it cannot be called a quine.

Here is a more complex version of the above Lisp quine, which
will work in Scheme and other Lisps where "lambda" is not
self-quoting:

((lambda (x)
(list x (list (quote quote) x)))
(quote
(lambda (x)
(list x (list (quote quote) x)))))

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
break. Some infamous {Obfuscated C Contest} entries have been
quines that reproduced in exotic ways.

{Ken Thompson}'s {back door} involved an interesting variant
of a quine - a compiler which reproduced part of itself when
compiling (a version of) itself.

[{Jargon File}]

(1995-04-25)

quine: /kwi:n/, n. [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查看 Quine 在百度字典中的解释百度英翻中〔查看〕
Quine查看 Quine 在Google字典中的解释Google英翻中〔查看〕
Quine查看 Quine 在Yahoo字典中的解释Yahoo英翻中〔查看〕





安装中文字典英文字典查询工具!


中文字典英文字典工具:
选择颜色:
输入中英文单字

































































英文字典中文字典相关资料:


  • Download the YouTube mobile app
    Download the YouTube app for a richer viewing experience on your smartphone
  • مساعدة YouTube
    مركز مساعدة YouTube الرسمي حيث يمكنك العثور على نصائح وبرامج تعليمية حول استخدام المنتج وأجوبة أخرى للأسئلة الشائعة
  • Télécharger lapplication mobile YouTube
    Téléchargez l'application YouTube pour profiter d'une expérience de visionnage enrichie sur votre smartphone Télécharger l'application Remarque
  • YouTube說明
    深入瞭解 YouTube YouTube 說明影片 瀏覽我們的影片庫,查看各項實用訣竅、功能簡介和逐步操作教學課程。
  • YouTube ヘルプ - Google Help
    YouTube の詳細 YouTube ヘルプ動画 役立つヒントや機能の概要、操作手順を解説したチュートリアル動画を視聴できます。 YouTube報告されている問題 報告されている技術的な問題や予定されているメンテナンスに関する情報をご確認ください。
  • YouTube帮助 - Google Help
    您可以在 YouTube 官方帮助中心找到各种提示和辅导手册,从中了解如何使用本产品以及其他常见问题的答案。
  • YouTube Help
    Het officiële Helpcentrum van YouTube waar u tips en handleidingen voor het gebruik van het product en andere antwoorden op veelgestelde vragen kunt vinden
  • YouTube Ajuda - Google Help
    Saiba mais sobre o YouTube Vídeos de ajuda do YouTube Navegue na nossa biblioteca de vídeos para obter sugestões úteis, descrições gerais de funcionalidades e tutoriais passo-a-passo YouTube Problemas conhecidos Obtenha informações acerca de problemas técnicos comunicados ou de serviços de manutenção programados
  • YouTube へのログインとログアウト
    YouTube にログインすると、登録チャンネル、再生リスト、購入したコンテンツ、履歴などの機能にアクセスできます。 注: YouTube にログインするには、Google アカウントが必要です。Google アカウントの作成方法をご確認ください。
  • YouTube - Pomoc - Google Help
    Oficjalne Centrum pomocy produktu YouTube, w którym można znaleźć porady i samouczki na temat korzystania z produktu, jak również odpowiedzi na najczęściej zadawane pytania





中文字典-英文字典  2005-2009