~/talk

Learn You Some Lambda Calculus

Talkat Code Mesh LDN 2020 · 2020-11-05..11-06· [functional-programming]
links:none on file
slides:none on file

Defines a tiny JavaScript-only lambda calculus subset and actually implements Church encoding for booleans and natural numbers, plus successor, predecessor and multiplication, then shows deferred evaluation for branching and uses the Z combinator (not Y, because JS is eager) to achieve recursion. Builds a working factorial encoded purely with functions and demonstrates results like factorial(5)=120 and factorial(6)=720. Provides a code repo with the examples.

AI-written summary · about

  1. 0:00Introduction to lambda
  2. 1:17Lambda calculus history
  3. 3:47Setting up the challenge
  4. 7:31Defining lambda calculus
  5. 11:03Encoding booleans
  6. 16:11Encoding natural numbers
  7. 21:21Control flow and evaluation
  8. 24:21Implementing recursion
  9. 29:42Conclusion and takeaways
  10. 30:33Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.