2 ms·
PDS: My new all-time favorite article on HN in the field of Turing Machines, Lambda Calculus, Tiny Languages, etc. >"This program celebrates the close connecti
by peter_d_sherman 6y ago
PDS: My new all-time favorite article on HN in the field of Turing Machines, Lambda Calculus, Tiny Languages, etc.
>"This program celebrates the close connection between obfuscation and conciseness, by implementing the most concise language known,
Binary Lambda Calculus (BLC)."
[...]
>"The BLC universal machine may be small at 650 bytes of C (952 bytes including layout),
but written as a self interpreter in BLC it is downright minuscule at 232 bits (29 bytes):"
[...]
>"A half byte `cat'
The shortest (closed) lambda calculus term is \x x (\ 1 in De Bruijn notation) which is the identity function. When its encoding 0010 is fed into the universal machine, it will simply copy the input to the output. (well, not that simply, since each byte is smashed to bits and rebuilt from scratch) Voila: a half byte cat:"
[...]
>"A BLC assembler
Writing BLC programs can be made slightly less painful with this parser that translates single-letter-variable lambda calculus into BLC:"
PDS: Opinion: Not just brilliant -- but insanely, utterly, astronomically brilliant!
My hat, as someone deeply interested in the fundamentals of computation, and as someone who could never accomplish what you did -- goes off to you!
Again... utterly, utterly brilliant!