构建LISP机器需要多少个原语?十,七或五? [英] How many primitives does it take to build a LISP machine? Ten, seven or five?
问题描述
在这个网站上,他们说有10个LISP原语。
原语是: atom,quote,eq,car,cdr,cons,cond,lambda,label,apply
。
On this site they say there are 10 LISP primitives.
The primitives are: atom, quote, eq, car, cdr, cons, cond, lambda, label, apply
.
http://hyperpolyglot.wikidot.com/lisp#ten-primitives
Stevey认为有七(或五)个:
Stevey reckons there are seven (or five):
Its part of the purity of the idea of LISP: you only need the seven (or is
it five?) primitives to build the full machine.
http://steve-yegge.blogspot.com/2006/04/lisp-is-not-acceptable-lisp.html
构建LISP机器的原语的最小数目是多少(即可以在LISP代码上运行eval / value函数)?
What is the minimum number of primitives to build a LISP machine (ie something that can run an eval/value function on LISP code)? (And which ones are they?)
(我可以理解,你可以不用 atom,label和apply
(I can understand you could live without atom, label and apply
)
推荐答案
请参阅此其他问题< a>从Paul Graham的一组7个原语中构造宏。
See this other question to construct macros from Paul Graham's set of 7 primitives.
这篇关于构建LISP机器需要多少个原语?十,七或五?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!