Functional Web Programming

Presented by Peter Thiemann

April 7, 2002, morning

Abstract :

Server-side Web scripting is currently dominated by imperative programming languages like Perl, PHP, JavaScript, Java, and C. We give an introduction to Wash/CGI, a radically different approach to server-side Web scripting based on functional programming. Our approach builds on an intuitive compositional method for constructing parameterized Web pages. This method extends seamlessly to the construction of forms. The entries to forms are retrieved through a novel type-safe interface. Submission of forms is modeled with a callback-style interface. This way, a Wash/CGI script specifies an entire interactive session in a declarative way.