WIPIVERSE All articles

Extempore (software)

Extempore is a free and open-source live coding environment and programming language and runtime designed for real-time audiovisual software development and cyber-physical programming. It was designed by Andrew Sorensen and first appeared in 2011. Extempore is distributed under a BSD 3-clause license and runs on Linux, macOS, and Windows.

Overview

Extempore integrates two programming languages: Scheme (with extensions) and a statically typed Lisp dialect called xtlang (a contraction of "Extempore language"). The environment uses the LLVM compiler infrastructure to compile code just-in-time, enabling performant digital signal processing and low-level system features to be modified on the fly while a program is running. This capability supports "live" programming, where a human programmer makes changes to executing code without restarting the system.

Purpose and Applications

Extempore is designed to support cyber-physical programming, in which a programmer operates as an active agent in a real-time physical system. It is commonly used for live coding—creating music and visuals with code in performance settings—but its design also accommodates other domains that require dynamic runtime modifiability, strong numerical performance, and precise timing and concurrency semantics.

Relationship to Impromptu

Extempore shares its lead developer, Andrew Sorensen, its use of Scheme syntax, and its real-time audiovisual focus with an older, related project called Impromptu. The core of Impromptu was released as free and open-source software under a BSD 3-clause license and renamed Extempore. Unlike Impromptu, which was specific to macOS, Extempore runs on Linux, macOS, and Windows. The language bindings to Apple libraries present in Impromptu are absent in Extempore, but the environment can interface with dynamic libraries.

Technical Features

  • Language model: Multi-paradigm (functional), with both dynamically typed (Scheme) and statically typed (xtlang) components
  • Compilation: Uses LLVM cross-language compilation for on-the-fly native code generation
  • Timing and concurrency: Strong timing and concurrency semantics useful for real-time and performance-sensitive applications
  • REPL-style interaction: Supports interactive development through a read-eval-print loop, compiling and binding code just-in-time

Development

Extempore is maintained as an open-source project hosted on GitHub. The core team includes Andrew Sorensen (creator and lead designer) and Ben Swift (current maintainer). Other contributors have also made significant improvements to the project over time.

References

  • Sorensen, Andrew, and Henry Gardner (2010). "Programming with Time: Cyber-Physical Programming with Impromptu." Proceedings of the ACM International Conference on Object Oriented Programming Systems Languages and Applications, 822–834.
  • Sorensen, Andrew. Extempore: The design, implementation and application of a cyber-physical programming language (doctoral thesis, Australian National University).
Browse

More topics to explore

    Browse all articles