Compose with OSV calls
Use value |> function, (args) function, or () function. Function-first calls are intentionally outside the language.
v0.0.1 · first public release
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.
fun increment: (value: Int32) -> Int32 = {
value + 1
}
export fun score: () -> Int32 = {
41 |> increment
}
Available today
Learn the syntax, see every compiler stage, and verify the boundary without installing a toolchain.
Use value |> function, (args) function, or () function. Function-first calls are intentionally outside the language.
Affine checks reject accidental reuse of moved values while copyable scalars remain ergonomic.
Read the language introductionGive generic functions explicit of bounds, adopt forms on records, and keep every method call statically selected.
The idea
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
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.
Build notes