Slide 20
Slide 20 text
@matyo91
20-03-2025 @matyo91
Lambda-PHP (bonus)
Krivine machine: Alternate interpreter that uses de-bruijn indices
(M N, S, E) → (M, (S,(N,E)), E)
(λM, (S,N), E) → (M, S, (E,N))
(i+1, S, (E,N)) → (i, S, E)
(0, S, (E1,(M,E2))) → (M, S, E2)
Binary lambda calculus: Allows encoding lambda calculus programs
in binary form which produces extremely small programs. This also
defines an I/O mechanism.