Skip to the content
Diaspar

Decision D001 · accepted

Diaspar is a standalone general-purpose language

A record of the language's design, as it stood on 2026-11-18: written for the people who build Diaspar, and kept as it was written. Its code is a sketch, not a program of the site, and an older record may show syntax that a later one changed. It names files of the language's source, which is not public yet.

Status: accepted (2026-11-14)

Decision

Diaspar is a new general-purpose language in the Lisp tradition: code as data, macros, a live REPL. It is not a companion to Ferron and does not run on Ferron's runtime: Diaspar has its own runtime, its own semantics, and its own future.

Three goals shape every other decision:

  1. Self-hosting as early as possible. The Diaspar compiler is written in Diaspar.
  2. One language all the way down. The compiler, the runtime, and the standard library are written in Diaspar, with no separate low-level dialect (D002).
  3. A live environment. A program can be changed while it runs.

The name

Diaspar is the city in Arthur C. Clarke's The City and the Stars. It has lasted a billion years because the Central Computer keeps the city and its people in the Memory Banks and recreates them. It is an image of a living system that stores and rebuilds itself.

As of 2026-11-14 the name was free: no language by that name in PLDB, and the name is unclaimed on crates.io, npm, and PyPI. Domains and trademarks were not checked.

Why not a Ferron companion

  • A companion would inherit Ferron's runtime: about 55k lines of Rust and about 400k lines of third-party crates. That runtime could not move into the language without a separate "systems subset" (Ferron, D92).
  • A standalone language can choose its memory model, backend, and bootstrap from day one so that little low-level code is needed (D004).

Rejected alternatives

  • A companion on Ferron's runtime. Cheap, but it inherits the Rust runtime and all its weight.
  • Another Scheme or Common Lisp. There is no reason for a new language that repeats an existing one.

Basis

Research: reports/Modern Lisps and self-hosting.md.