Show HN: Lambduck, a Functional Programming Brainfuck

https://news.ycombinator.com/rss Hits: 14
Summary

lambduck ,--('< "if it walks like a lamb and quacks like a duck" w-w' lambduck is a functional programming language. =============================================================================== special forms =============================================================================== \ | begin a lambda abstraction ----------------+-------------------------------------------------------------- ` | apply a function, e.g. `0 1 applies 0 to 1 ----------------+-------------------------------------------------------------- 0, 1, 99, ... | a variable as its de bruijn index in the lambda abstraction =============================================================================== built in functions =============================================================================== , | gets a character from stdin, encodes it from ascii into a | church numeral, and passes it to its argument ----------------+-------------------------------------------------------------- . | decodes its argument into an ascii character from a church | numeral mod 256, puts it to stdout, and returns its argument ----------------+-------------------------------------------------------------- 'A, 'b, '<, ... | a character literal as a church numeral in ascii =============================================================================== all other characters are ignored. =============================================================================== examples =============================================================================== true | \\1 ----------------+-------------------------------------------------------------- false | \\0 ----------------+-------------------------------------------------------------- z combinator | \`\`1\``1 1 0\`1\``1 1 0 ----------------+-------------------------------------------------------------- echo | `\`\`1\``1 1 0\`1\``1 1 0\`0`,. ----------------+-------------------------------------------------------------- hello world | ``\\1`.'h``\\1`.'e``\\1`.'l``\\1`....

First seen: 2025-06-06 01:05

Last seen: 2025-06-06 14:07