Live data from Hacker News

Show HN: A programming language that uses only parentheses

github.com

21–30 of 32 posts

Re: Show HN: A programming language that uses only parentheses

#29
In pure functional programming, so well mentioned in some PG's articles, you have only functions - no numbers. You can make numbers from functions, though. Then, you may have a basis - a set of functions which are sufficient to represent arbitrarily complex algorithm, i.e., Turing complete set; see here - http://dkeenan.com/Lambda/ .

Such a set may consist from only one function. So, the whole program is a structure of calling that function. Writing down such a program, we obviously don't need to write the function - it comes by default; we only need to write the structure, which can be represented by ( and ) . In a different way, than what I see here, but still - one bit per parenthesis, very simple processor, lots of memory and lots of steps for simple operations - a Turing tarpit...

Re: Show HN: A programming language that uses only parentheses

#30

Considering how numbers are represented, I'm reminded of John Horton Conway's article on Surreal Numbers , wherein he starts with an empty set and one rule, and derives the totality of all numbers. Could make for an interesting basis for a language.

http://www.oocities.org/qpliu/conser/
Post reply on HN