Toward Semantic Foundations for Program Editors

By Cyrus Omar, Ian Voysey, Michael C Hilton, Joshua Sunshine, Claire Le Goues, Jonathan Aldrich, Matthew A. Hammer. 2017

34 citations recorded by the source corpus.

Programming language definitions assign formal meaning to complete programs. Programmers, however, spend a substantial amount of time interacting with incomplete programs - programs with holes, type inconsistencies and binding inconsistencies - using tools like program editors and live programming environments (which interleave editing and evaluation). Semanticists have done comparatively little to formally characterize (1) the static and dynamic semantics of incomplete programs; (2) the actions available to programmers as they edit and inspect incomplete programs; and (3) the behavior of editor services that suggest likely edit actions to the programmer based on semantic information extracted from the incomplete program being edited, and from programs that the system has encountered in the past. This paper serves as a vision statement for a research program that seeks to develop these "missing" semantic foundations. Our hope is that these contributions, which will take the form of a series of simple formal calculi equipped with a tractable metatheory, will guide the design of a variety of current and future interactive programming tools, much as various lambda calculi have guided modern language designs. Our own research will apply these principles in the design of Hazel, an experimental live lab notebook programming environment designed for data science tasks. We plan to co-design the Hazel language with the editor so that we can explore concepts such as edit-time semantic conflict resolution mechanisms and mechanisms that allow library providers to install library-specific editor services.

Subfields: Computer Networks and Communications, Information Systems, Information Systems and Management, Natural Language Processing, Program Analysis & Verification

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Networks and Communications

  1. Earl T. Barr
  2. Charles Sutton
  3. Premkumar T. Devanbu
  4. Miltiadis Allamanis
  5. Uri Alon
  6. Eran Yahav

In Information Systems

  1. Charles Sutton
  2. Miltiadis Allamanis
  3. Earl T. Barr
  4. Premkumar T. Devanbu
  5. Michael Pradel
  6. Rishabh Singh
  7. Rafael-Michael Karampatsis
  8. Eran Yahav

In Information Systems and Management

  1. Premkumar T. Devanbu
  2. Miltiadis Allamanis
  3. Charles Sutton

In Natural Language Processing

  1. Charles Sutton
  2. Premkumar T. Devanbu
  3. Miltiadis Allamanis
  4. Earl T. Barr
  5. Michael Pradel
  6. Rishabh Singh
  7. Rafael-Michael Karampatsis
  8. Marc Brockschmidt

In Program Analysis & Verification

  1. Miltiadis Allamanis
  2. Charles Sutton
  3. Earl T. Barr
  4. Premkumar T. Devanbu
  5. Eran Yahav
  6. Uri Alon
  7. Marc Brockschmidt
  8. Omer Levy

Citations in the corpus