Back to search

University of Pennsylvania

Bidirectional Programming Languages

Abstract

dc:description.abstract

The need to edit source data through a view arises in a host of applications across many different areas of computing. Unfortunately, few existing systems provide support for updatable views. In practice, when they are needed, updatable views are usually implemented using two separate programs: one that computes the view from the source and another that handles updates. This rudimentary design is tedious for programmers, difficult to reason about, and a nightmare to maintain. This dissertation presents bidirectional programming languages, which provide an elegant and effective mechanism for describing updatable views. Unlike programs written in an ordinary language, which only work in one direction, programs in a bidirectional language can be run both forwards and backwards: from left to right, they describe functions that map sources to views, and from right to left, they describe functions that map updated views back to updated sources. Besides eliminating redundancy, these languages can be designed to ensure correctness, guaranteeing by construction that the two functions work well together. Starting from the foundations, we define a general semantic space of well-behaved bidirectional transformations called lenses. Then, building on this foundation, we describe a particular language for defining lenses on strings with syntax based on the familiar regular operators (union, concatenation, and Kleene star). We present extensions to the basic framework that address the subtle complications that arise when lenses are used to manipulate, data containing unimportant details, ordered data, and confidential data.

Degree

thesis:*
Department dc:contributor.department
Computer and Information Science
Year dc:date.issued
2009

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Foster, John Nathan
  • isAuthorOfPublication|email:jnfoster@cis.upenn.edu|institution:University of Pennsylvania|Foster, John Nathan
Advisor dc:contributor.advisor
  • Benjamin C. Pierce

Subjects

dc:subject × 6

Identifiers

dc:identifier.*
Dc Identifier Other
1096
edissertations/56
1081159

Chain of custody

source
Harvested from
University of Pennsylvania
Base URL
repository.upenn.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Foster, John Nathan; isAuthorOfPublication|email:jnfoster@cis.upenn.edu|institution:University of Pennsylvania|Foster, John Nathan. Bidirectional Programming Languages. 2009. https://repository.upenn.edu/handle/20.500.14332/32277