v0.0.1 · first public release

Values first.
Ownership clear.

Restrict is a programming language designed for WebAssembly, where data comes before the operation. Its OSV syntax, typed scopes, and affine checks make value flow explicit before compilation.

  • Runs locally in your browser
  • MIT licensed
  • Release contract documented
score.rl release surface
fun increment: (value: Int32) -> Int32 = {
    value + 1
}

export fun score: () -> Int32 = {
    41 |> increment
}
typecheck · ok score() → i32
OSV-onlyarguments lead, verbs finish
Affine by defaultvalues are used at most once
WebAssembly targetscalar host ABI in v0.0.1

Available today

A deliberate surface you can inspect end to end.

Learn the syntax, see every compiler stage, and verify the boundary without installing a toolchain.

01

Compose with OSV calls

Use value |> function, (args) function, or () function. Function-first calls are intentionally outside the language.

Read the syntax guide
02

Track value ownership

Affine checks reject accidental reuse of moved values while copyable scalars remain ergonomic.

Read the language introduction
03

Compose with static forms

Give generic functions explicit of bounds, adopt forms on records, and keep every method call statically selected.

Read the forms guide

The idea

Make data flow read in the direction it moves.

Restrict puts objects and arguments before verbs. Pipes are not an alternate style layered onto conventional calls; they are part of one consistent calling model.

val answer = 41
    |> increment
    |> double

A deliberate first release

v0.0.1 is the line we move forward from.

The first release includes closed enums, qualified OSV constructors, and a narrow, statically dispatched form/takes system. Generic and composite values work inside Restrict programs, while the default host boundary stays deliberately scalar until its record, collection, and generic ABI is designed.

Review the release contract

Build notes

From the compiler workbench.

All posts
Language and release · 14 min Restrict Language v0.0.1: values first, ownership clear

The ideas, language features, toolchain, and deliberate boundaries behind the first release.