r/ProgrammingLanguages • u/FurCollarCriminal • May 21 '24
Why do we love the lambda calculus?
I've been reading about some of the more esoteric models of computation lately, and it got me wondering why it is that the lambda calculus is the "default". So much literature has been built up around it now that it's hard to imagine anything different.
Is it merely the fact that the lambda calculus was the 'first to market'? Or does it have properties that make it obviously preferable to other models of computation such as combinators, interaction nets, kahn process networks, etc?
77
Upvotes
View all comments
Show parent comment
14
u/naughty May 21 '24
Computational complexity, P vs NP and the like, is a common area where Turing machines are the assumed foundation.
Whenever you get to parameterisation and substitution it will look a lot like Lambda Calculus because that is pretty much all it is + binary trees :^) Lambda calculus is not very good for analysing the runtime or space usage of algorithms though because reduction itself cannot be computationally atomic. Turning Machines have discrete steps each of which could take a finite time so it a much firmer basis.
Most programming language research has different goals than computational complexity though and Turning machines would just be too messy a formalism. Even where imperative computational models are used random access memory stack machines are much nicer to work with. The vast majority of research essentially assumes away computational issues and avoids the imperative so Lambda Calculus (or more specifically a type theory) is just a better fit.