In the Age of Web: Typed Functional-First Programming Revisited

Tomas Petricek
(University of Cambridge)
Don Syme
(Microsoft Research)
Zach Bray
(Type Inferred Ltd)

Most programming languages were designed before the age of web. This matters because the web changes many assumptions that typed functional language designers take for granted. For example, programs do not run in a closed world, but must instead interact with (changing and likely unreliable) services and data sources, communication is often asynchronous or event-driven, and programs need to interoperate with untyped environments.

In this paper, we present how the F# language and libraries face the challenges posed by the web. Technically, this comprises using type providers for integration with external information sources and for integration with untyped programming environments, using lightweight meta-programming for targeting JavaScript and computation expressions for writing asynchronous code.

In this inquiry, the holistic perspective is more important than each of the features in isolation. We use a practical case study as a starting point and look at how F# language and libraries approach the challenges posed by the web. The specific lessons learned are perhaps less interesting than our attempt to uncover hidden assumptions that no longer hold in the age of web.

In Oleg Kiselyov and Jacques Garrigue: Proceedings ML Family/OCaml Users and Developers workshops (ML/OCaml 2014), Gothenburg, Sweden, September 4-5, 2014, Electronic Proceedings in Theoretical Computer Science 198, pp. 64–79.
Published: 5th December 2015.

ArXived at: https://dx.doi.org/10.4204/EPTCS.198.3 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org