News for hackers. Stuff that matters.
Re:I made a programming language with M&Ms by AdieuToLogic on Sunday March 08, 2026 @10:09PM (#47304059)
Great post, thanks for sharing it!

When I saw the title, I thought of Lambda Calculus[0] and SKI combinators[1]. Given that there are "only six useful colors", I wonder if M&Ms could be used to implement them.

0 - https://en.wikipedia.org/wiki/Lambda_calculus

1 - https://en.wikipedia.org/wiki/SKI_combinator_calculus

Re:I made a programming language with M&Ms by mufeedvh on Monday March 09, 2026 @01:16AM (#47305134)
Funny you mention that, because yes, a combinator-style encoding is probably a cleaner fit for the “only six colors constraint than my stack machine. I hacked together a tiny SKI-flavored M&M reducer as a proof of concept: B=S, G=K, R=I, Y=(, O=), and N... is a free atom, so `B G G NNN` reduces to `a2`.

Gist: https://gist.github.com/mufeedvh/db930a423fdce8c1d8e495c7a3f...

Re:I made a programming language with M&Ms by AdieuToLogic on Monday March 09, 2026 @10:09PM (#47318347)
That is too cool, thanks again for sharing your exploration.

I suppose the only question remaining is if peanut M&Ms are higher-kinded when contrasted with the chocolate-only nullary type.

:-D