Ask HN: What is the smallest possible language?
1–10 of 11 posts
Re: Ask HN: What is the smallest possible language?
#2Re: Ask HN: What is the smallest possible language?
#3The mov operator in x86 assembly is technically Turning Complete onto itself [1]. I believe you'd be hard pressed to get smaller then that. [1] http://www.cl.cam.ac.uk/~sd601/papers/mov.pdf
Re: Ask HN: What is the smallest possible language?
#4valarautical mentioned x86 mov. Another is an assembly-ish language with two instructions: (1) decrement and (2) branch if things). Lisp with only QUOTE, ATOM, EQ, CAR, CDR, CONS, and COND is another example (and perhaps even that list is not minimal; I'm a little vague on this).
Re: Ask HN: What is the smallest possible language?
#5The mov operator in x86 assembly is technically Turning Complete onto itself [1]. I believe you'd be hard pressed to get smaller then that. [1] http://www.cl.cam.ac.uk/~sd601/papers/mov.pdf
I'm impressed. What I'm thinking more of is what types of functions and specific functions do you need? So also add, subtract...
Perhaps the question you want an answer to is not actually the one you asked? In any case, a programming language does not have to look like ALGOL. Most of the very simple ones do not.
Re: Ask HN: What is the smallest possible language?
#6Re: Ask HN: What is the smallest possible language?
#7The mov operator in x86 assembly is technically Turning Complete onto itself [1]. I believe you'd be hard pressed to get smaller then that. [1] http://www.cl.cam.ac.uk/~sd601/papers/mov.pdf
I'm impressed. What I'm thinking more of is what types of functions and specific functions do you need? So also add, subtract...
Re: Ask HN: What is the smallest possible language?
#8Re: Ask HN: What is the smallest possible language?
#9This type of language is called a Turing Tarpit: http://esolangs.org/wiki/Turing_tarpit
Re: Ask HN: What is the smallest possible language?
#10A fair amount of research has gone into this question. A number of very simple Turing-complete languages are known. valarautical mentioned x86 mov. Another is an assembly-ish language with two instructions: (1) decrement and (2) branch if things ). Lisp with only QUOTE, ATOM, EQ, CAR, CDR, CONS, and COND is another example (and perhaps even that list is not minimal; I'm a little vague on this).