Good question. In my opinion it is an important concept to know, but the problem is that many universities don’t teach any functional programming, let alone lambda calculus.
Briefly, the situation is like this: There are 2 models of computation; Turing Machines and Lambda Calculus which are equivalent in power, but have very different approach to the act of computing. TM computes by manipulating some global memory and LC does the computation by composing and applying functions. TM was the basis for modern computer architecture and imperative programming languages (C,Java,Python,... basically all the “famous” ones) and LC was the basis for functional programming languages (Lisp,Haskell,...). Turing Machine just happens to be more popular and influential throughout the history of CS, so there is much more attention to it and most students have heard of it, unlike of Lambda Calculus.
I write a little bit about history and role of Lambda Calculus in this article and provide further links for interested readers.
I think it's especially important for language design. If you then take into account the fact that a good deal of computer science is about (whether directly or indirectly) programming, and therefore (pointing out the obvious here, haha) using a programming language, that further highlights how important the lambda calculus is.
Although I think a good number of people are under the impression that the lambda calculus is only relevant for describing functional languages, it is in fact applicable to many different language paradigms. It gives you a common language to talk about programming language constructs, stripping away the inessentials to get to the heart of what makes a language the way it is.
The majority of programming languages are based primarily around function calls, and thus reduction: substituting the arguments into the body of the procedure. From this idea quite naturally stems idea of an environment, a mapping of names to values delimited by some context, whether it be a closure, namespace, method call etc. and features like classes, nested functions, namespaces, and all sorts of other things can be described as some form of environment creation and application. If we add recursion into the mix (which lambda calculus supports through the Y combinator) you also have control structures covered using the same base, minimal-construct language.
I would very very highly suggest "The Lambda Papers". The various titles should give you a good taste of why:
Lambda: The Ultimate Imperative
Lambda: The Ultimate Declarative
Lambda: The Ultimate GOTO
Lambda: The Ultimate Opcode
Although these papers are "technical", they are not stuffy or boring in the least - they contain a good amount of humour and the enthusiasm of the author/s really shines through on every page. Each one focuses on a different facet of the lambda calculus, demonstrating how it can be used to simulate various things which would normally be considered purely imperative. Some examples would be using lambda calculus to describe looping constructs via recursion (as mentioned before), as a way of efficiently compiling by thinking of lambda as a GOTO with arguments, and a whole host of other things.
I think lambda claculus is extremely useful, and I personally feel that a lot of the languages being created and popularised today would benefit greatly from the creators having at least a working knowledge of it.
If you're doing functional programming, it helps. Is it practical? Not really. If you're an academic you should know it. It's meant to be for proving theorems and it's an interesting little area of theoretical computer science. But it's good to know for historical context if you're into theoretical, mathy stuff.
10
u/Massive_bull_worm Aug 25 '19
Hi sorry if this is a bit of a noob question, but is lambda calculus an important concept for CS students to know? Where is it applied at? Thanks.