967
you are viewing a single comment's thread
view the rest of the comments
[-] tetris11@feddit.uk 11 points 1 week ago* (last edited 1 week ago)

The Fixed Point Expression / Y Combinator expressed in horses:

    Y = (ฮป f. (ฮป x. f(xx))(ฮป x. f(xx)))
    ;; so then, give Y a horse argument with apple parameters:
    Y๐ŸŽ๏ธ = (ฮป f. (ฮป ๐ŸŽ.  f(๐ŸŽ๐ŸŽ)) (ฮป ๐ŸŽ. f(๐ŸŽ๐ŸŽ))) ๐ŸŽ๏ธ   ;; [1]
        =       (ฮป ๐ŸŽ. ๐ŸŽ๏ธ(๐ŸŽ๐ŸŽ)) (ฮป ๐ŸŽ. ๐ŸŽ๏ธ(๐ŸŽ๐ŸŽ))      ;; [2]
        = ๐ŸŽ๏ธ(   (ฮป ๐ŸŽ. ๐ŸŽ๏ธ(๐ŸŽ๐ŸŽ)) (ฮป ๐ŸŽ. ๐ŸŽ๏ธ(๐ŸŽ๐ŸŽ))   )  ;; [3]
        = ๐ŸŽ๏ธ(Y๐ŸŽ๏ธ)                                       ;; [4]

Explanation

  • 1: x is ๐ŸŽ, but could be anything. It's just a function parameter nested within another.
  • 2: ฮปf gets executed and vanishes from the left, substituting f internally with ๐ŸŽ๏ธ. This is now a new function, with left group as the function body, and right group as the function argument, despite being identical.
  • 3: ฮป๐ŸŽ gets executed and vanishes from the left, substituting ๐ŸŽ with (ฮป ๐ŸŽ. ๐ŸŽ๏ธ(๐ŸŽ๐ŸŽ))
  • 4: Everything within the main brackets at [3] has been seen before at [1], but with f being ๐ŸŽ. Thus we have bred a new horse. We can breed infinite horses this way
this post was submitted on 22 Oct 2026
967 points (98.5% liked)

Programmer Humor

33957 readers
540 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS