Skip to content

The design record.

There is no compiler yet, so these 21 documents are the only authority on what Elp is. Each one records a decision and the reasoning that forced it, tested against a corpus of real programs — an HTTP server, a SQLite binding, a Vulkan triangle, a real-time audio playhead, a tree-walking interpreter. They are rendered here from the language repository at a pinned revision, so this is what was committed rather than a copy of it.

Last change to the record

Memory and ownership

  • Memory model

    Ownership with var, const and references, scoped release, Buffer<T>, and how it all lowers to Rust.

  • Aliasing

    Shared, Confined and Synchronized cells, Copy, Duplicate and Move, and crossing threads safely.

Types

  • Generics

    Mandatory type arguments, overloading, conditional conformance and variance.

  • Interfaces

    Method-only, nominal conformance and interface dependencies.

  • Dispatch

    What an interface in a type position means, and when it is existential or universal.

  • Patterns

    Destructuring, match, Optional narrowing and the pattern grammar.

Functions and errors

  • Functions

    The call model, methods and receivers, extension interfaces and C function pointers.

  • Operators

    Operators as interface methods, precedence, and narrowing through && and ||.

  • Control flow

    Loops: while, break and continue, why there is no loop and no labels, and what a markup for's by key means.

  • Error handling

    Errors as Either<T, E> values. No exceptions, no catch.

Modules and the standard library

  • Modules

    Packages, imports, the prelude, the manifest and native library allow-lists.

  • Standard library boundary

    What is language, what is a privileged library, and what is plain Elp.

  • Collections

    Hashing, insertion-ordered Map, the iteration protocol and mutating receivers.

  • Strings

    UTF-8 strings, char as a scalar value, literals, escapes and why s[i] doesn't exist.

UI and metaprogramming

  • Reactivity

    Components run once, reads subscribe and writes patch.

  • Macros

    Macros as pure functions run at compile time over the AST.

Tooling and process

  • Diagnostics

    Noisy by default, filtered by configuration, with a soundness floor that can't be turned off.

  • Core language probes

    Real programs, from an HTTP server to a Vulkan triangle, that test the design and log its gaps.

  • Grammar notes

    Intentional gaps, use-site rules and open questions in the grammar.

  • Trade-offs

    Where several decisions solve one problem, which decisions cost another program, and the check that would have caught every defect.

  • Open questions

    One register of every live question, naming the doc that owns it, so nothing is asked in four places at once.

Everything is open to argument

The most useful contribution right now is disagreement. If a decision here looks wrong, the reasoning that produced it is on the page — argue with that.