Show HN: Lambduck, a Functional Programming Brainfuck
jorkingit
created: June 5, 2025, 11:29 p.m. | updated: June 6, 2025, 3:03 p.m.
lambduck,--('< "if it walks like a lamb and quacks like a duck" w-w' lambduck is a functional programming language.
=============================================================================== special forms =============================================================================== \ | begins a lambda abstraction ----------------+-------------------------------------------------------------- 0123456789 | gets a variable by its de bruijn index (you get 10 of them) ----------------+-------------------------------------------------------------- ` | applies a function, e.g.
`01 applies 0 to 1 =============================================================================== built in functions =============================================================================== , | gets a byte from stdin, encodes it into a church numeral, then | calls its argument with it ----------------+-------------------------------------------------------------- .
| decodes its argument from a church numeral, modulos it by 256, | writes it to stdout as a byte, then returns its original | argument =============================================================================== all other characters are ignored.
=============================================================================== examples =============================================================================== true | \\1 ----------------+-------------------------------------------------------------- false | \\0 ----------------+-------------------------------------------------------------- z combinator | \`\`1\``110\`1\``110 ----------------+-------------------------------------------------------------- echo | `\`\`1\``110\`1\``110\`0`,.
2 days, 5 hours ago: Hacker News: Front Page