Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Really minimum lisp

What is the minimum set of primitives required such that a language is Turing complete and a lisp variant?

Seems like car, cdr and some flow control and something for REPL is enough. It be nice if there is such list.

Assume there are only 3 types of data, integers, symbols and lists.(like in picolisp)

like image 982
Chao Xu Avatar asked Apr 28 '10 17:04

Chao Xu


People also ask

What is the most common lisp?

Interdental lisplispsigmatism (countable and uncountable, plural sigmatisms) A lisp. Defective pronunciation of sibilant sounds.https://en.wiktionary.org › wiki › sigmatismsigmatism - Wiktionary – Interdental lisp is the most common and well-known type of lisp. It is caused by the tongue pushing forward between the front teeth. In the case of an interdental lisp, the s or z sound is pronounced like “th”.

Is Common Lisp open source?

It is open source / free software, with a permissive license. In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions.


3 Answers

The lambda calculus is turing complete. It has one primitive - the lambda. Translating that to a lisp syntax is pretty trivial.

like image 128
Michael Donohue Avatar answered Oct 22 '22 12:10

Michael Donohue


There's a good discussion of this in the Lisp FAQ. It depends on your choice of primitives. McCarthy's original "LISP 1.5 Programmer's Manual" did it with five functions: CAR, CDR, CONS, EQ, and ATOM.

like image 7
ire_and_curses Avatar answered Oct 22 '22 12:10

ire_and_curses


I believe the minimum set is what John McCarthy published in the original paper.

The Roots of Lisp.

The code.

like image 6
Nick Dandoulakis Avatar answered Oct 22 '22 11:10

Nick Dandoulakis