HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
The Lambda Calculus for Fun and Factorials

Arthur Gleckler · Youtube · 10 HN points · 2 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Arthur Gleckler's video "The Lambda Calculus for Fun and Factorials".
Youtube Summary
by Ron Garret

Bay Area Lisp and Scheme Meetup
http://balisp.org/
Sat 17 Oct 2015
Hacker Dojo
Mountain View, CA


Abstract

The lambda calculus is widely known but also widely misunderstood. It it considered by most coders to be nothing more than a theoretical curiosity and not really useful for anything by itself. In this talk, I show how to write a factorial function in pure lambda calculus, i.e. using nothing but lambdas, in a way that is actually efficient enough to compute the factorial of ten in a few seconds. Seeing how this is done can provide deep insights into functional programming, compilation, and other useful programming techniques like CPS-conversion.


Notes

The camera used to record the sound and video of the speaker during this presentation stopped about every twelve minutes, so there are three gaps of a few seconds each in this video. Also, it overheated right at the end, so the end is abrupt.
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Jun 28, 2019 · 3 points, 0 comments · submitted by tosh
If you're interested in exploring the relationship of Lisp and the lambda calculus you might find this interesting:

http://www.flownet.com/ron/lc.html

https://www.youtube.com/watch?v=8qC1iZN5ozw

gsg
Nice article, but the language embedded here is exactly the untyped lambda calculus, not a Lisp. You can tell because there are no tags: pair is given as \x y sel -> sel x y, which is indeed the textbook way to encode pairs but does not provide enough to write CONSP.

If you wished to implement a subset of Lisp in LC faithfully you would need an encoding for sums - which would not be all that hard, but does reflect the distance between Lisp values and the raw abstractions of the lambda calculus. (There is also the more substantial matter of RPLACD, etc, but let's just pretend that particular rabbit hole is not there.)

lisper
> does not provide enough to write CONSP

Yes, that's a very good point. That's why I said, "If you want to explore the relationship between Lisp and ULC..." and deliberately not, "If you want to see how to embed Lisp in ULC..."

Writing CONSP actually makes a very interesting exercise.

Oct 22, 2015 · 7 points, 1 comments · submitted by aag
aag
OP here. Since this is a video, I'll post the abstract, etc.:

by Ron Garret

The lambda calculus is widely known but also widely misunderstood. It it considered by most coders to be nothing more than a theoretical curiosity and not really useful for anything by itself. In this talk, I show how to write a factorial function in pure lambda calculus, i.e. using nothing but lambdas, in a way that is actually efficient enough to compute the factorial of ten in a few seconds. Seeing how this is done can provide deep insights into functional programming, compilation, and other useful programming techniques like CPS-conversion.

Bay Area Lisp and Scheme Meetup, http://balisp.org/ , Sat 17 Oct 2015, Hacker Dojo, Mountain View, CA

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.