Skip to content
Proyectos

Acerca de

Un entorno de programación ciberfísico

Lenguajes y entornos de ejecución

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
0

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Extempore

Build & test Sanitizers Release

Extempore is a live-coding environment for music and audio. It pairs a Scheme interpreter with xtlang---a statically-typed lisp that compiles to LLVM IR at runtime---so you can reshape a running program while it keeps making sound. Runs on Linux (x86_64 and aarch64), macOS (Apple Silicon) and Windows (x86_64).

What's new in v0.11.0

v0.11.0 is a robustness release driven by a full-codebase review---nothing changes about the language, but a lot changes underneath it. CHANGELOG.md has the detail; the headlines:

  • A security fix worth upgrading for --- a running Extempore turned each incoming OSC message into Scheme source text with its address interpolated unescaped, so any host that could reach the OSC server could evaluate arbitrary code in the session.
  • Errors stop disappearing --- sys:load used to swallow every error in a file it loaded, so a broken library could AOT-compile "successfully". It now reports each failing form and returns #f, which surfaced (and fixed) five examples that had quietly stopped working.
  • Memory safety through the C++ runtime --- every Scheme FFI primitive is registered with its real name and arity, so a wrong call is a Scheme error rather than a segfault, and the zone allocator, OSC send path, IFF chunk scanner and a dozen fixed buffers no longer write past their ends.
  • Relocatable installs --- the binary looks for runtime/, libs/ and examples/ beside itself, so an unzipped release runs from any working directory and can be moved wherever you like.
  • Less vendored code --- the 2019 Networking TS snapshot and PCRE 8.38 are gone; sockets go through one small shim on every platform and regular expressions use PCRE2 10.49.
  • Behaviour worth knowing about before you upgrade --- pcg32_boundedrand now matches reference PCG32, so seeded streams differ; io:osc:set-integer-64bit? and io:osc:send-from-server-socket? are removed; and topclock no longer starts its network loop at load when *topclock-autostart* is #f.

Extempore's current stack came together over v0.9.0 and v0.10.0: LLVM 23.1.6 with the ORC JIT (in place of the legacy MCJIT), s7 Scheme (in place of TinyScheme), a single constraint-based type inference engine in the xtlang compiler, a C++23 runtime, first-class Linux aarch64, and an interactive --repl (Linux and macOS only). Graphics is now a lean set of WebGPU bindings (via wgpu-native, enabled with -DEXTERNAL_SHLIBS_GRAPHICS=ON); the old OpenGL stack has been retired. If you hit any breakage, please file an issue with a minimal reproducible example where you can.

Getting started

The easy way

In VSCode, install the Extempore extension and run its Extempore: Install Extempore command. The quickstart takes it from there.

From a terminal, on macOS or Linux:

curl -fsSL https://extemporelang.github.io/install.sh | sh

or on Windows, in PowerShell:

irm https://extemporelang.github.io/install.ps1 | iex

Each installs the latest release for your machine, for you alone (no administrator rights needed), and puts extempore on your PATH. Run it again to upgrade. Then set up your text editor of choice and away you go.

If you'd rather not run a script, download the archive for your platform from the releases page and unzip it anywhere: bin/extempore (bin\extempore.exe on Windows) runs from any working directory. On macOS, a browser marks the download as quarantined, and macOS won't run it ("Apple could not verify ... is free of malware") until you clear the flag:

xattr -dr com.apple.quarantine /path/to/the/unzipped/folder

The installers and the extension download with tools which don't set that flag. The binaries aren't signed with an Apple Developer ID: they're built in public from this repository by the Release workflow, and you can build them yourself from source if you'd prefer (see below).

Build from source

For more information, check out BUILDING.md.

Extempore's CMake build process downloads and builds all the dependencies you need (including LLVM). So, if you've got a C++ compiler, git, CMake >= 4.0 and Ninja, here are some one-liner build commands.

On Linux/macOS (and on Windows from a Visual Studio developer prompt):

git clone https://github.com/digego/extempore && cd extempore && cmake --preset default -DASSETS=ON && cmake --build build

--preset default is a Ninja + Release build with the tests enabled; see CMakePresets.json (and BUILDING.md) for the others.

Note on build time: the first build takes ~10-30 minutes because LLVM is compiled from source. Subsequent builds reuse the cached LLVM artifacts under build/_deps/.

Note on ASSETS: the ASSETS build-time option (boolean, default OFF) is set to ON above. This will download the Extempore binary assets --- required for many of the examples, but adds a ~250MB download to the build process. If you'd rather not do that, and are happy with some of the examples not working, then set -DASSETS=OFF instead.

Note on running: an in-tree build runs against the source tree's runtime/, libs/ and examples/, so run it in place (build/extempore). To install it instead, cmake --install build --prefix ~/.local puts extempore in ~/.local/bin and its files in ~/.local/share/extempore and ~/.local/lib/extempore --- see BUILDING.md.

Hear your first sine wave

With Extempore running and an editor connected to port 7099, evaluate this and you should hear a 440 Hz tone:

(bind-func dsp:DSP
  (lambda (in time chan data)
    (* 0.5 (sin (* STWOPI 440.0 (/ (i64tof time) SRf))))))
(dsp:set! dsp)

The full example lives at examples/core/hello-sine.xtm.

See Extempore in action

Check out these videos:

Contributors

The Extempore core team is Andrew Sorensen & Ben Swift. Andrew created Extempore and remains its BDFL; Ben is the current maintainer. For issues and questions the mailing list is the best place to start, but you can also email Ben directly. Many others have contributed to Extempore's development (see the full list) --- including Jim Kuhn, whose significant performance improvements don't show up in the commit logs but for which we're very grateful.

Docs & Community

Extempore documentation can be found at https://extemporelang.github.io/

You can also join the Extempore community:

Cite Extempore

Licence

Copyright (c) 2011-2026, Andrew Sorensen

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of the authors nor other contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Explorar proyectos relacionados

Cargando…