C9 Lectures: Dr. Ralf Lämmel - Advanced Functional Programming - Evolution of an Interpreter

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<img src="http://channel9.msdn.com/Link/ce3454ec-c437-4c3d-96a6-43957c2154dc/" border="0" /> In part 3 of the Advanced Functional Programming lecture series, Dr. Lämmel focuses on the domain of language interpretation as a method of understanding some important functional programming techniques. As a side effect, some basics of programming language theory are also informally presented.
More specifically, this lecture develops an interpreter for a simple functional programming language that contains Booleans, natural numbers, lambdas, and recursive lets. The interpreter is actually developed in a stepwise manner, which is why the lecture is called "Evolution of an Interpreter."

In each step, another construct is added and the impact of the extension onto the interpreter is analyzed. In this manner, several interesting programming techniques are exercised. For instance, the Maybe type constructor is pervasively used for dealing with partiality, and Haskells fixed point combinator is used to model the semantics (i.e., interpretation) of recursive bindings.

This lecture also prepares us for some more advanced subjects. For instance, the next lecture in this series will cover the intriguing subject of monads while using interpretation as the application scenario. Soon, generalized folds ( http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=3638E59968F7B2462EA33C607DF7B685?doi=10.1.1.41.125&rep=rep1&type=pdf" target="_blank or bananas, according to Erik Meijer ) will also be discussed (the folds will traverse abstract syntax trees as opposed to lists).

Enjoy. Learn.

Thanks to Ralf for providing another excellent lecture!

Earlier lectures http://channel9.msdn.com/tags/ralf-laemmel" target="_blank here .
Slides: https://developers.svn.sourceforge.net/svnroot/developers/repository/ralfs-channel9-lectures/decks/interpretation.pdf https://developers.svn.sourceforge.net/svnroot/developers/repository/ralfs-channel9-lectures/decks/interpretation.pdf

Related Blog Post and Code:
http://professor-fish.blogspot.com/2010/08/bunch-of-interpreters-using-cpp-and.html http://professor-fish.blogspot.com/2010/08/bunch-of-interpreters-using-cpp-and.html <img src="http://channel9.msdn.com/569400/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" />

View the full article
 
Back
Top