HackerTube

William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC]

PapersWeLove11 HN recommenders · recommended in 12 months, 2017–2026
YouTube
talk · intermediate · evergreen · 2017–2026 on HN

William Byrd presents at Papers We Love NYC on what he calls the most beautiful program ever written, a Lisp interpreter written in Lisp. He walks through the metacircular interpreter and related ideas, and demos relational programming and program synthesis n…

HN repeatedly recommends it as an amazing talk that derives the essence of Lisp and shows miniKanren-style program synthesis.

12 comments from Hacker News

@hazbo2021-08 · in “A Lisp interpreter written in Lisp (2017)”

I can't recommend the talk Dr Byrd did on this enough: ▶ this video It's one of my favorite programs to play around with. I wrote about an Erlang implementation of this a short while back: link

Strongly recommends View on HN
@uptheroots2021-06 · in “William Byrd on logic and relational programming, miniKanren (2014)”

One of my all time favorite YouTube videos is a lecture by William Byrd. I find myself still coming back to this video, it was so fascinating to me as an undergrad. ▶ this video

Strongly recommends View on HN
@BoiledCabbage2020-04 · in “A Conversation with Alan Kay (2004)”

If you haven't watched it - check out William Byrd on "The Most Beautiful Program Ever Written" ▶ this video It's the above and deriving it. It is fascinating to think of it as the essence of a language in 13 lines.

Strongly recommends View on HN
@labria2019-10 · in “Ask HN: What is the most beautiful piece of code you've ever read?”

(define eval-expr (lambda (expr env) (pmatch expr [`,x (guard (symbol? x)) (env x)] [`(lambda (,x) ,body) (lambda (arg) (eval-expr body (lambda (y) (if (eq? x y) arg (env y)))))] [`(,rator ,rand) ((eval-expr rator env) (eval-expr rand env))]))) There's an amazing talk about it: ▶ this video

Strongly recommends View on HN
@spartanatreyu2025-06 · in “Toying with the Lambda Calculus”

It's easy to miss since it's a small link near the top of the post, but something that will help a lot in understanding this post is this video: The most beautiful program: ▶ this video It essentially gives you a quick 5-min overview of the lisp language, then shows you how to implement lisp in lisp with only a few lines of code. IMO, understanding lambda calculus is much easier for the uninitiated after watching that video.

Recommends View on HN