Repository navigation
Releases
v0.2.13
Programs that used to compile and no longer do
- None yet.
Language
- None yet.
Diagnostics
- None yet.
Standard library
- None yet.
Tools
- Cargo packages, release archives and the VS Code extension are available
under MIT or Apache-2.0, at the user's option.
Measurements
- None yet.
v0.2.12
Programs that used to compile and no longer do
- None yet.
Language
- None yet.
Diagnostics
- None yet.
Standard library
- None yet.
Tools
- The declared minimum Rust toolchain is now 1.88, matching the let-chain
syntax already used by the parser and resolver. Rust 1.87 and older failed
beforedeed-langcould compile. CI now builds the workspace with 1.88 so
the declaration cannot silently fall behind the source again. - The
deed-langpackage now carries its README and the ownership marker used
by the official MCP Registry. Rootserver.jsondescribesdeed mcpas a
Cargo-installed stdio server.
Measurements
- None yet.
v0.2.11
Programs that used to compile and no longer do
- None yet.
Language
-
A call can be written through something other than a name. Both engines used
to refuse it, and both accepted the same value one line earlier:let held = Holder { step: twice } let f = held.step f(2) // ran held.step(2) // "the interpreter cannot run this call" chooser()(2) // the samedeed checksaid nothing about either, which is what made the refusal a bug
rather than a rule: the type checker accepts a function value wherever a
function type fits, and where the callee was written is not something a type
is about. The interpreter looked at what the callee resolved to and a value
resolves to nothing; the backend refused to lower anything but a name.This also settles which of the callee and the arguments runs first, because
until now the callee could not be an expression with anything in it to run.
It is the callee, in the order the two are written, and both engines are held
to it by a program inagreement.rswhose answer says which order it took.
Diagnostics
-
deed test --compiledruns the properties contracts generate, rather than
stopping after written test blocks. The corpus now reports 118 compiled
passes instead of 111: the same seven generated properties the interpreter
runs, alongside the blocks the backend can compile. The remaining difference
is written code the backend names in its six existing skip records.Generated inputs use the same generator and precondition filtering as the
interpreter. Each accepted value is written into the compiled module's own
memory using the MIR layout, the export is called, and its answer is decoded
from that memory and compared structurally with the reference answer. The
interpreter remains the one implementation of contract evaluation, so this
does not create a secondensuresevaluator that could drift from the first.
A wrong contract still fails the property, and a backend answer that differs
from the interpreter fails it independently. -
deed test --compiledsays what it did not compile. It ran a hundred and
eleven results where the interpreter reported a hundred and thirty-eight,
and printed111 passed, 0 failed, which is what a complete run looks like.
A file the backend refused outright saidno tests found in the compiled backendand exited zero, which is what a file with no tests in it says.Skipping is right — the backend compiles a subset of the language on purpose
— and staying quiet about it was not. Every block that is dropped is now
named along with what stopped it:111 passed, 0 failed 6 not compiled, so they were not run examples/kv_store.deed: a literal missing a field is not lowered yet examples/transfer.deed: test "moves the money and conserves the total": a shorthand field naming something that is not a local is not lowered yetThree of the six are in the running example.
corpus_backend.rspins how
many there are, in both directions: fewer is the backend catching up and
worth reading, more is a shape that used to compile and no longer does. -
resultis checked wherever in a contract it is written. It used to be
checked only where a hand-written walk went looking for it, and that walk
matched expressions with a wildcard, so the same clause was rejected in one
position and accepted two characters away:fn twice(n: Int) -> Int ensures ok => result == "text", // rejected, DEED4001 { n + n } fn twice(n: Int) -> Int ensures ok => use_it(|x: Int| result == "text"), // was silent { n + n }Everything the wildcard swallowed — a closure, a list, a branch, a match arm,
a block, a walk — leftresultwith no type at all, and an unknown type
agrees with everything, so the clause went throughdeed checkin silence and
failed at run time as a broken promise instead. The failure named the
postcondition, which is the wrong thing to go and read.The lookup now lives in
deed-resolveand is written ondeed_ast::children,
which matches without a wildcard. The interpreter had already been fixed for
this once and the checker's copy had not, which is what having two of them
cost. -
An obligation nobody could ever prove no longer reads like one nobody has got
round to. Everyensuresclause that came backGuardedsaid "nothing tries
to prove this one ahead of time"; seven of the nine inexamples/are about
an effect, and those are not waiting on anything:fn peek() -> Int uses Counter.value, ensures ok => unchanged(Counter), { .. }A function is checked once. The
withblock deciding whatCountermeans is
written by whoever calls it, and a different caller may install a different
handler, so no pass on this side settles that clause however hard it tries.
Those now say the caller installs the handler that answers it, which is the
one reason here whose answer to "what would make this Proven" is nothing.The two left saying "nothing tries" are
transfer'sresult.from == from
andresult.amount == amount, which really are obligations a checker could
one day discharge. Splitting the count is what makes the difference visible:
design/02-syntax.mdnow reports both rows separately. -
A refinement written on a record's field survives reading the field back.
A parameter of typePositivewas already known to be positive; a field
declaredPositivewas not, and the two say the same thing:record Held { by: Positive } fn needs(n: Positive) -> Int where n > 0, { n } fn through(h: Held) -> Int { needs(h.by) } // was Guarded, is ProvenThe value has no name at that call for anything to have narrowed, and no
contract answered for it, so the only thing that knew anything was the type
the record was declared with — and nothing asked it. The comment in
facts.rssaid so: "every other field read is a value nothing here knows".It knows now, and only that. A field declared plainly is still a value
nothing knows, and a refinement the interval machinery cannot hold still
carries nothing either way:value != 0admits everything but one number,
which is two intervals and not one. That is a limit of whatFactskeeps
rather than of fields, and it is the half that still stopsstd/ratiofrom
provingsimplified'sbottom != 0at its call sites — along with the
product of two numbers, which no interval bounds.No obligation in the corpus moves: the records there are declared with plain
Int. What moved is that the compiler stopped losing something it had. -
deed explainshowed programs that do not produce the code being explained.
Forty-three of the eighty-nine pages carrying an example, measured by
checking each one and running its tests. The example was "the first
deed-looking string in a test that mentions this code", which is a different
claim from "a program that produces it", and the gap had two shapes: the
extractor read a test from its#[test]to the next#[test], so it
swallowed the banner introducing the following test and every code named in
a banner was offered the previous test's program; and where a test carried
two modules or a passing control arm, the first string was the wrong half.
deed explain DEED2011, "there is no range in this language", printed
Int n = 1.This is read by
deed explain, by thedeed_explainMCP tool, and by the
error index the site builds from the same artefact, so an agent asking what a
code means was being handed a program about a different one.The example is now the first candidate that produces the code, asked of the
compiler: checked, and run when the code is one that only appears at run
time. Seventy-five pages carry one and every one of them is verified; the
other twenty-nine carry none, which is what a page with nothing true to show
should carry. The generator moved tocrates/deed-driver/tests/explain_pages.rs,
because deciding this needs a checker anddeed-explaindeliberately depends
on nothing — making it depend on the compiler to test itself would put two
published crates in a cyclecargo publishcannot order. -
A
deed.manifestor adeed.locksaved with a byte order mark is read.
design/06-grammar.mdsays a mark at the start of a file is silently
discarded, and the lexer has always done that for source, so a.deedfile
written by a Windows editor checks. The manifest parser did not, and the
refusal was the worst shape a refusal has:unknown manifest directive `module`, whose own note listsmodule <url> sha256:<digest>as one of
the two directives that exist. Three bytes with no glyph, and a message
arguing with itself. A lock file had the same gap, where it read asnot a deed lock file.The mark is skipped rather than deleted, so every caret after it still lands
on the bytes the file has. That half has a test of its own, because stripping
without moving the offset would point three bytes early at every line.how-to/depend-on-another-module.mdalso now says how to get the digest a
moduleline needs, which nothing had said: three per-platform commands, or
write a hash you know is wrong and readDEED7006, which names both the one
the bytes have and the one the manifest claims.
Standard library
- Nothing yet.
Tools
deed review --before <path> --after <path>gives a patch an evidence
receipt. It checks both module sets through the same import and shipped-module
path asdeed check, then reports effect-row entries added to each stable
module/declarationidentity and obligations whose tier regressed, such as
proven -> guarded. A newly added effectful function or handler counts as new authority,
imported effects retain the module tha...
v0.2.10
Programs that used to compile and no longer do
- None yet.
Fixed
-
A compiled program that joins strings past the memory it started with no
longer writes them past the end of it. Eleven of the twelve runtime helpers
that reserve room grow the memory while doing it;str_concatmoved the bump
pointer itself and skipped the growth, so text crossing the sixteen pages a
module starts with went out of bounds and the program stopped with "reached
past the end of memory".That is the sentence a program which has genuinely run out produces, so
examples/logs.deeddying compiled was read for two releases as the limit
design/decisions/2026-07-31-compiled-memory-reclamation.mdmeasures, and
raising the runner's ceiling not helping was taken as confirmation. It never
tried to grow. The program now runs compiled and prints the same 69,680 bytes
the interpreter prints, byte for byte.Nothing about reclamation changes: a compiled program still gives nothing
back, and a keyed update is still quadratic. What changed is that one program
counted as evidence for that limit was not evidence for anything.
Language
-
A comparison with the name written second now settles as much as the same
comparison the other way round.if 0 < n - 5proved nothing while
if n - 5 > 0proved the refinement below it, because turning the clause
into a linear form gives the name a count of minus one, and dividing an open
bound by that overflows:i64::MIN / -1. The bound was dropped instead of
staying open. Two spellings of one claim answering differently is the same
defect #929 fixed for!=, in a different place. -
The checker has one function that bounds a name from a comparison rather than
two.narrow_sideandnarrow_scaledboth answered "what does this
comparison say about this name", and which of them owned it had been written
down as an open question, with a measurement attached: disabling three of
narrow_side's arms changed nothing across the suite and disabling the
fourth broke eighteen tests. The asymmetry was the overflow above, not the
shape of the corpus. With that fixed, all four ordering arms are dead across
2394 tests and are gone. What is left of that function is the question only
it can ask, ruling a single value out at an edge of what is known, and it is
named for it.
Diagnostics
- Nothing yet.
Standard library
- Nothing yet.
Tools
-
deed build --componentwrites a component binary. Until now it wrote a core
module and a.witworld, and handing that core module to
wasm-tools component newproduced a component exporting nothing, which
design/decisions/2026-08-07-a-wit-world-is-not-a-component.mdmeasured and
wrote down as the gap.<name>.component.wasmis that gap closed for the
exports that cross the boundary unchanged: a number is ans64on both sides
and a boolean is aboolon both sides, so lifting one needs no adapter.Anything wider than a word does not get one. A string crosses as a pointer
and a length into memory the caller helped allocate throughcabi_realloc,
and this backend passes one address in its own layout, so a module carrying
text gets the core module, the world, and a line naming the export and what
it needs. A component that answered wrongly would be worse than one that is
not written.The core module and the
.witare unchanged and are still written, so
nothing that reads them has to know about any of this.Measured rather than asserted:
crates/deed-codegen/component.mjsnow reads
the component's world with the Bytecode Alliance's own tooling, transpiles
it, calls both exports and checks the answers, because reading a world is not
running one. The encoder is incrates/deed-codegen/src/component.rsand has
no dependency; every constant in it was read out of a component that
toolchain built. -
cargo install deed-langworks. The compiler is on crates.io as of 0.2.9,
as twenty crates, and the install instructions say so.deedon crates.io
belongs to somebody else, so the package isdeed-langand the binary it
installs isdeed.Verified the way a stranger does it rather than by watching the upload
succeed: installed from crates.io into an empty root, thendeed explain DEED4025,deed new,deed test, and a program that importsstd/list.
The first two are exactly what this version's two packaging bugs would have
broken, and one of them would have broken quietly.
Measurements
-
benchmarks/RESULTS.md: what five runs of one model against one build said,
as its own document rather than a section at the bottom of the harness's
README. Six tasks, five runs, a control arm with the compiler taken away, the
hundred and two tool calls it made, and a list of what it does not establish. -
The scorer stops reporting
provenandguardedfor an answer the compiler
rejected.benchmarks/README.mdalready said "anything else, and nothing
further is measured", and the tool measured further: four blind runs came
back0 checkwith a proven obligation printed beside them, which reads as
the arm that wrote nothing compilable proving as much as the arm that did.
Those columns now print-, the way the tests column already did, so a zero
that was measured is distinguishable from one that was not. -
deed_testis not one of the tools a benchmark task leaves with nothing to
do, and the README said it was. Three of the eightdeed_testcalls across
those runs came back with a property the compiler generated from the contract
in the answer, a hundred cases each, in tasks whose prompts say "no tests".
v0.2.9
Programs that used to compile and no longer do
- None yet.
Language
-
Fixed: a contract that mentions
resultorold(...)inside a closure now
runs.deed checkaccepted it and running it answeredDEED6006, whose own
note says either the file was not checked or the check has a hole; it was the
hole. The interpreter decides whether an obligation needsresultbound, and
whether it needs an entry snapshot, by walking the clause, and neither walk
went into a closure body.So
ensures ok => any(numbers, |n: Int| n == result)— the natural way to
say the answer came out of the list — was the one shape a contract could not
be written in. The two walks are now one, matched without a wildcard, so a
new kind of expression is a build error rather than a contract that quietly
stops being checked.
Diagnostics
-
Changed: importing a name the language already provides now says so. Five
benchmark runs of one model against one build all wroteuse std/string.{join}, and the compiler answered with two messages: an error
thatstd/stringdeclares nojoin, and a warning thatjoinhides a
builtin. Both were true and both pointed at the module, which is the one
place the answer was not.It is now one error saying the name is already in scope, with a
machine-applicable repair that deletes the import. Nothing is declared for
the refused name either, so the call in the body binds the builtin and the
rest of the file goes on being checked instead of cascading. Importing a
name a module really does declare is unchanged and still warns.
Standard library
- Nothing yet.
Tools
-
The command line crate is published as
deed-lang, socargo install deed-langis a thing that will work.deedon crates.io belongs to somebody
else, and the name a reader would guess is the org's. The binary is still
deedand nothing anyone types changes.Its directory stays
crates/deed-cli: every decision record and changelog
entry that points into this crate points at that path, and moving it would
rewrite sentences that were true when they were written.Cargo.tomlsays
so where the two names sit next to each other.Nothing in the tree spells a package name, so a rename is invisible until a
workflow fails on a tag.the_workflows_build_packages_that_existreads
every-pin.github/workflowsand asks whether that crate is here. -
The workspace can be published. Internal dependencies were paths with no
version, whichcargo publishrefuses, and putting a version next to each of
twenty paths would have made the release checklist nineteen lines longer. They
are declared once in[workspace.dependencies]and inherited, and
crates/deed-driver/tests/publishing.rscompares that table to
workspace.package.versionso the two cannot drift apart quietly.cargo publish --workspace --dry-runpackages all twenty crates and builds
each one out of its own archive, and CI runs it on every commit as "it could
be published". Both of the packaging bugs above were found by hand; this is
the question being asked automatically instead. -
The shipped library travels inside the crate that carries it.
SHIPPED
read the ninestd/*.deedmodules withinclude_str!through three parent
directories, andcargo package -p deed-driver --listcarries none of them,
so a compiler installed from crates.io would not have built at all. The text
is generated intocrates/deed-driver/generated/shipped_sources.rsnow, and
held against the files by a test that names the command that rewrites it.The order the library is listed in moved into the open while doing it. It was
a side effect of how the table happened to be written, and three documents
read in it, so it is a declared list now and the generated part is only text. -
New rule, held for every package: nothing a crate compiles may read above
its own root.crates/deed-driver/tests/packaging.rswalks everysrc/for
include!,include_str!andinclude_bytes!and measures how far each
path climbs, and asks the same of any build script. Both ways this workspace
had broken it are the two entries above, and they failed differently: one
would not compile, the other compiled and went silent. -
Fixed, before anybody could hit it:
deed explainwould have printed
nothing at all, for every code, in a compiler installed from crates.io. The
pages were produced by a build script that read everycodes.rsin the
workspace and the whole test corpus. A published.cratecarries one
package directory and no workspace, so that script would have found an empty
tree, generated zero pages, and compiled. Measured, not guessed:
cargo package -p deed-explain --listlistsbuild.rsandsrc/lib.rs.The pages are generated, committed as
crates/deed-explain/generated/pages.rs,
and shipped as source. The reading of the tree happens in a test now, where
the tree is: one test fails when the committed file has drifted from the
codes.rsfiles it is made of, and an ignored one rewrites it. A third holds
the rule the bug broke, which is that whateversrc/lib.rsincludes has to be
a file the package carries. -
install.shandinstall.ps1: one line to get the binary, and no Rust.
Four release artifacts have existed for eight versions and nothing pointed at
them, so the shortest honest instruction was still "clone this and install a
toolchain". The scripts pick the asset for the machine, refuse it if its hash
is not the one the release published, and write one file inside your own
profile, so neither of them ever needs a password.Releases now carry
deed-<tag>-checksums.txt, which is what makes that
refusal possible. It comes from the same release as the binary, so it catches
a corrupted download and not a compromised release, and both scripts say so
rather than implying more.crates/deed-driver/tests/install.rsbuilds a release, serves it to the real
script, and asks it to install a binary and then to refuse the same binary
with one byte changed. It also holds the platform list in the two scripts
against the build matrix in.github/workflows/release.yml, in both
directions. -
deed new <name>writes a project. Until now the tool could check, test,
run, compile, format, document, explain and answer an editor, and the one
thing it could not do was produce a file to point any of that at, so
somebody trying the language had to work the module header and the file
layout out of this repository first.It writes a directory holding a library module with a contract and its
tests, and a program that imports it. Two files, because themoduleline
and theuseline are the whole of how a project splits in two and seeing
it once beats reading about it. No manifest: a manifest here says where code
outside your tree lives, and a new project has none, so writing an empty one
would be text nothing reads.crates/deed-cli/tests/new.rsruns the command into a temporary directory
and then checks, tests, runs and format-checks what came out. The scaffold
lives in a Rust string literal where none of the corpus ratchets reach it,
so the claim that it works is held end to end rather than described. -
Fixed: a compiled program called its host with the wrong arguments when one
of them was computed.Io.write(sys.console, to_string(n))declared an
import taking one argument, because the signature was built from a
function that recognised literals and capabilities and answered nothing for
anything else, and "nothing" was dropped from the parameter list rather than
refused. The host was then handed the text where the console belonged.Nothing could see it before there was a host: the runner reached the import
and stopped without reading what it had been passed. The check that a
capability is one the host handed out is what found it.The signature is the argument types the program actually produces now.
-
A module's memory grows. The sixteen pages it starts with were a starting
point and never a decision, and until now they were a ceiling: a compiled
walk building a list stopped at about sixty-five thousand elements with
"reached past the end of memory", which says nothing about the program.
It runs to two million now, and what stops it there is the host.This changes only where the ceiling is. Nothing is given back, so total
allocation is still peak memory:examples/logs.deedover one file
finishes and over two does not, and raising the runner's limit to four
gigabytes — the whole of a thirty-two bit address space — does not change
that. Reclamation is still the question, and
design/decisions/2026-07-31-compiled-memory-reclamation.mdis still where
it is asked. -
deed build --componentsays what it writes. It produces a core module and
the.witworld its exports describe, and the help text used to say it
"produces a component". Handing that core module towasm-tools component newproduces a component whose world is empty, because the exports cross
the boundary in this backend's own layout rather than the canonical ABI and
nothing writes the component-type section.Measured on every commit now rather than assumed, with the Bytecode
Alliance's own tooling. The day the component stops being empty is the day
that job fails and somebody says why. See
design/decisions/2026-08-07-a-wit-world-is-not-a-component.md
for the three things that are missing. -
New guide: how-to/embed-a-compiled-program.md,
which is what a host has to know. The memory layout it reads and writes
lived inlayout.rs's doc comments, so somebody embedding a compiled
program had to open the compiler's source to find out where a string keeps
its byte c...
v0.2.8
0.2.7 said a compiled Deed program can act. That was true of the host inside
deed and not of anybody else's, and this is the difference.
Programs that used to compile and no longer do
- None.
Language
- Nothing.
Diagnostics
- Nothing.
Standard library
- Nothing.
Tools
-
deed buildexports the module's memory, so a host that is not this one can
read what a compiled program hands it.A capability crosses the boundary as a number, but a string does not:
Io.write(console, text)passes an address into the module's own memory.
The host insidedeedshares an address space with the module and is handed
that memory directly, so nothing here noticed that a module which does not
export it can only be answered from inside this workspace.Measured in the engine Node ships, before the export existed: the module
compiled, it instantiated, its import section was exactly the row,
twice(21)answered42— and every operation carrying text was
unreachable.crates/deed-codegen/smoke.mjsis that measurement kept, and
CI runs it, because an artifact that was built and weighed and never run is
a mistake this repository has already paid for once.This grants a program nothing. A module could always read and write its own
memory; the export is about what the host may look at.
Measurements
- Nothing.
v0.2.7
A compiled Deed program can act now.
The backend has said for months that a program's import section is its
capability requirements, and the tests have held that claim from both sides:
a module that does not name an operation has no index to call it through, and
a module that names one the host cannot answer is refused before it runs.
Nothing crossed the boundary. A compiled examples/hello.deed stopped with
`deed:sys.console` is the host's to answer, and this is not one while
the interpreted one printed "hello, world".
The obstacle was one line of a type. A host implementation was handed the
call's arguments and nothing else, and a string argument is an address into
the module's own memory, so no host was writable for any operation carrying
something other than a number.
deed run --compiled now grants what deed run grants, and six of the seven
corpus programs with a main print exactly what the interpreted ones print.
The seventh runs out of the module's memory, which is a question about value
reclamation rather than about hosts and is the clearest thing this release
leaves open.
Two smaller things came out of measuring the model against a real transcript:
deed fix was writing an import that made a file worse, and
deed build --component crashed on the one shape design/04-capabilities.md
rests on being impossible.
Programs that used to compile and no longer do
- None.
Language
-
Io.env(sys, name)reads one environment variable, and only the ones the
run was told to hand over.deed run --env NAMEgrants a name, repeatably,
and everything else reads as absent.That is the
--allowshape rather than the--dirone, and the difference
is the point. The arguments were typed on the line that started the program;
the environment is whatever the machine happened to be carrying, which
routinely includes credentials nobody meant to pass on. So a program sees a
list of names somebody decided on rather than all of it, and a name that was
not granted is reported as not granted rather than as unset, because those
are different facts and only one of them is about the machine.It takes the whole
System, for the reasonIo.argsdoes: reading the
outside belongs nearmain, and everything below is handed the value rather
than the means to read it again.--envis refused anywhere butdeed run,
because a test whose answer depended on what the machine was carrying would
be a test of that machine. -
Io.line(console)reads what somebody typed, one line at a time. It is the
read/savesplit applied to the console: the same capability, a separate
entry in the row, so a function handed aConsoleto write to still cannot
find out what was typed unless its signature says so. The line comes back
without its terminator and without a carriage return in front of it, because
which of those a line ends with is a fact about the machine it was typed on.Running out of input is
errrather than an empty string. A program that
cannot tell "somebody typed nothing" from "there is nothing left" either
loops forever or stops early, and both of those are silent.deed runreads standard input when, and only when,main's row says
Io.line. There is no flag and no guess about whether a terminal is
attached: the row is already the list of what a program does with the
outside, so it is what decides what the outside hands over, and a program
that never mentions input cannot be left waiting for it. Everywhere else —
deed test, the playground, the agent server — hands over nothing, for the
reason they hand over no arguments and no directory: a test whose answer
depended on what somebody typed would be a test of the typing. -
Ruling a value out at the edge of what is known narrows the other branch.
if n == Int.min { .. } else { .. }andif n <= Int.min { .. } else { .. }
say the same thing about the else branch, and only the second one used to
prove an obligation below it:!=narrowed nothing, on the grounds that a
range cannot say "not this one". That is true in the middle and false at
either end, and the end is where the case turned out to be, found by writing
contracts forstd/ratioin 0.2.6. A value ruled out in the middle still
settles nothing, because what is left of the range is two of them.
Diagnostics
-
A walk's accumulator read underneath its walk is told where the value is,
rather than offered an import.for n in ns with sum = 0 { .. }followed by
sumis a name spelled exactly right, declared a statement ago and out of
scope, andsumis also a function instd/list, so the answer was a
machine-applicable fix writing an import for a different function entirely,
whichdeed fixapplied. The diagnostic now names where the accumulator was
declared, what the walk ended up as, and that what reads it is
let sum = for ... { ... }. The general rule behind it: a name this file
declares somewhere is a question about scope, so the shipped library stops
offering to import it. -
point.x = 1isDEED2027rather than two messages about neither half of
it. The name form of assignment is one this language has, because a handler's
state can be written to, so the field form used to arrive as an expression
statement followed by a stray=and the reader was told "expected an
expression, found=". The measured shape is
state.entries = state.entries + [entry], somebody reaching for a handler's
state through a receiver, and that one gets a second sentence saying where
the state is named. No repair either way: a record with one field changed is
another record literal, which is a rewrite of the line rather than an edit to
it, and takingstate.off would be wrong for anybody who bound a record to
that name. -
export,pubandpublicin front of a declaration offer to come out. The
word already carried the reason there is no visibility modifier here, and a
reason with no repair is something a reader agrees with and then writes
again: across three benchmark runs one task met that message twenty-four
times. Taking a word out is not substituting one, which is why this can be
machine-applicable, and it is offered only when a declaration really follows. -
perform,state,append,rest,update,mutate,changeandput
are answered rather than run through the edit-distance table. Each is a word
another language would have had, and a name that is not a typo used to come
back with whatever short name happened to be nearby, or with nothing at all. -
text.to_upper()says there are no methods and names the module that has
the function. The type checker already said that for prelude names, because
it can ask whether a name is a builtin; it cannot ask aboutstd/string,
which arrives through imports the file did not write. The sentence is
finished in the driver, off the same table that writes theuseline. No
repair: adding the import leaves the call as broken as it was.
Tools
-
deed run --compiledwrites lines and reads a clock, because there is a
host now. A compiledexamples/hello.deedused to stop with`deed:sys.console` is the host's to answer, and this is not one: the
interpreted program printed "hello, world" and the compiled one could not
say anything at all.What was missing was not the wiring. A host implementation was handed the
call's arguments and nothing else, andIo.write(console, text)passes the
text as an address into the module's own memory, so no host could be
written for any operation carrying something other than a number. A host is
handed the call now — its arguments and the module's memory — and can read
a string out of it or allocate one back into it.A capability crosses the boundary as an index into a table the host keeps,
and the table records what each handle is. So a number the host never gave
out is not a capability, and a console passed where a clock belongs is
refused. Neither is reachable from a checked Deed program; the check is
there because a host is handed modules rather than programs.Each grant offers exactly the imports it can answer, so a program asking
for one that was not granted is turned down at link time by name —the host does not offer `wasi:random/random.roll`— rather than at the first
call.deed run --compiledgrants whatdeed rungrants: a console, a
clock, the directory--dirnamed, the hosts--allownamed, the
variables--envnamed, the arguments, and standard input when and only
whenmain's row says the program reads it. Six of the seven corpus
programs with amainnow print exactly what the interpreted ones print;
the seventh runs out of the module's memory, which is the reclamation
questiondesign/05-backend.mdalready names.What a
Dirreaches, what aNetreaches, and what an HTTP status outside
the two hundreds means aredeed-rt's in both engines rather than written
twice. What is left unanswered is an interface a program declared for
itself witheffect ... from, because nothing here can know what one
means. See
design/decisions/2026-08-07-what-a-host-hands-a-compiled-program.md. -
deed run --compiledhands the program its arguments, and no longer
refuses to start when it was given any. -
Fixed:
deed build --componentpanicked on a signature holding a capability
or a function value one field down.record Holder { dir: Dir }walked past
the refusal and reached anunreachable!while the WIT world was being
written, so the compiler crashed on the one shape
design/04-capabilities.mdrests on being impossible. The refusal was a
list written beside the WIT printer and it did not look inside a record or a
choice.It asks the canonical ABI now. `crates/deed-code...
v0.2.6
This release is about the edges of what the language can say and what the
backend can compile, and both were found by asking a question the corpus could
not answer.
The smallest Int has a literal now. It never had one, because negation is an
operator and the digits of that number are one past the largest, so a clause
about the edge had to be spelled 0 - 9223372036854775807 - 1.
The backend compiles two shapes it had always been handed and never lowered.
Nothing had noticed, because a program the backend cannot lower and a program
with no tests in it produce the same silence. The suite that said the backend
refuses nothing was measuring examples/, which is the shapes one author
happened to write; every case in conformance/ is now held to being lowerable,
because those exist to cover the language, which is the question that was
actually being asked.
std/ratio writes contracts, which is the threshold
design/fractional-values.md had been watching for. Writing them found an
overflow nothing else had.
Programs that used to compile and no longer do
- None.
Language
-
The smallest
Intcan be written down:-9223372036854775808is one
literal. Negation is an operator everywhere else, and the digits of the
smallestIntare one past the largest, so a literal alone could never say
it and a clause about the edge had to spell it0 - 9223372036854775807 - 1.
The lexer now hands those digits over without judging them, because whether
the minus in front is the unary one is a question about the grammar, and the
parser reads the pair as one number. Anywhere else the digits are still the
literal that does not fit, reported once, by the pass that knows. -
The backend compiles two shapes the checker had always accepted: a pattern
inside a record pattern,Box { size: Inner { depth } }, and aletthat
takes a value apart,let Point { x, y } = point. Both checked, both ran
under the interpreter, and neither could be lowered, sodeed buildand
deed test --compiledquietly had nothing to say about a file that used
one. Nothing had noticed because a program the backend cannot lower and a
program with no tests in it produce the same silence.Every case in
conformance/that the checker accepts is now held to being
lowerable. The suite that already said the backend refuses nothing was
measuringexamples/, which is the shapes one author happened to write; the
conformance cases exist to cover the language, which is the question that
was actually being asked.
Standard library
std/ratiowrites contracts.absolutepromises a number that is not
negative and asks for one that is not the smallestInt, because that one
has no positive counterpart and0 - noverflowed for it;ratioturns it
away at the door so everything below is proven rather than checked again.
simplifiedpromises a positive denominator. Ninety-two of that module's
obligations are proven, three are tested by generated inputs and eleven are
guarded, and every guarded one is a call whose arguments are arithmetic.
This is the thresholddesign/fractional-values.mdwas watching for: the
page has been reread and the answer did not change, because a clause about a
fraction made of twoInts is a clause about integers.- Fixed:
ratio(Int.min, 1)stopped the program instead of answering. Nothing
had noticed, because nothing had been asked to say whatabsolutepromises.
Measurements
- The corpus and the shipped library carry 167 proven obligations, 11 tested
and 23 guarded, against 75, 8 and 12 beforestd/ratiohad contracts. An
unattemptedensuresclause is no longer the majority of what is guarded,
which was never what the page rested on; that nothing settles one ahead of
time is, and it still holds. - Of the twenty-nine calls to
atin the library and the corpus, twelve pay
for a failure with amatchor a?, and exactly one of those is a bound
the checker could discharge today. Every other one indexes a list that came
back from a call, andlength(f(x))is not a term the prover holds, so the
caller could not prove the bound even if there were somewhere to spend it.
That moves the open question about a total indexing form rather than
answering it: what is in the way is not the prelude name.
v0.2.5
This release is about what a compiled program does with memory, and about the
last things a reader could not see.
A walk that builds a list now builds one block rather than one a turn in three
more shapes than it did: one that reads its own length, one that stops on a
while clause, and one that starts from a list it was handed. That last one is
concat and prepend, so joining two lists of 512 went from running out of
memory to allocating twenty-four kilobytes. A compiled hash map reached two to
three hundred keys and now reaches three to four hundred, which is the ceiling
design/hash-map-requirements.md has been watching move.
One of those changes closed a hole rather than opening a door. The rule read a
walk's body and a while clause is not in the body, so a walk that handed its
accumulator to something that kept it there was compiled as though nothing
could reach the list. crates/deed-driver/tests/agreement.rs carries the
program: it answered 4 interpreted and 404 compiled.
Two questions that had been open were answered by building the thing and
measuring it, and one of the answers is no. Property tests still do not cover
effectful functions, and the reason is now written down rather than assumed: a
handler with state is a model with a starting point, and generated arguments
take it outside the world it models.
The library gained a set, and the calendar gained the years before 1970. The
language server answers semantic tokens, which is the last capability on its
advertised list and the one an editor cannot work out for itself.
Programs that used to compile and no longer do
- None.
Language
hash(value) -> Intis a prelude function. Structural, with no trait bound,
which is what #617 decided. It is the equality walk with a different
accumulator: whatever==compares,hashabsorbs, in the same order, which
is whya == bimplieshash(a) == hash(b)by construction rather than by
care. One algorithm, written down once indeed_rt::hashingand read by both
engines, because a hash is anInta program can assert on and two engines
computing it differently would be two engines disagreeing about what a
program means. It refuses a function value and a capability withDEED4032:
both are equal to another when they are the same one, so there is nothing to
read. Not cryptographic and not seeded, with the reasons in
design/decisions/2026-08-05-a-hash-is-the-equality-walk.md.<can be bound to a function, and one binding answers all four comparisons:
a > bisb < a, anda <= bis notb < a. Binding four separately would
let them disagree about the same two values with nothing to say so. An order
answers with aBoolrather than with the type it was given, which is the
one place a bound operator's shape differs from the arithmetic three. This is
notation and not dispatch:<on a type parameter is still refused and
sortstill takes a comparison, so the trait threshold has not moved.
Decision record:design/decisions/2026-08-04-one-binding-for-an-order.md.- An effect may name the interface its operations come from:
effect Random from "wasi:random/random" { .. }. Without the clause an
effect is its own interface and an unhandled operation is imported as
deed:<effect>, which is the right default for one a program invented and
useless for one that already exists somewhere else.fromis a soft keyword,
sofn from(from: Int)still compiles.
Diagnostics
DEED7003,DEED7004andDEED7005: amoduledirective with nothing
after it, one with a location and no hash, and a hash that is not sixty-four
lowercase hexadecimal digits aftersha256:.DEED7006: bytes that could
not be retrieved, or that did not hash to what the manifest said.DEED2026: an interface name with nothing in it. Leaving the clause off is
how an effect says it is its own interface, and that is a different thing
from writing one and leaving it blank.
Standard library
std/setis a set, written as the hash map with the values hidden.none,
one,including,has,count,items,without,union,
intersection,difference,withinandentries_of. Notwith, because
that is how a handler is installed and the grammar has the word already, and
noEmpty, because an empty list takes its element type from where it is
used and there is nowhere here to take one from, so every constructor takes a
sample the waystd/hashmap'semptydoes.std/dateanswers for a clock set before 1970. The only thing in the way was
that/rounds toward zero, so the millisecond before the epoch landed on
day zero and read as the first of January 1970;days_since_epochfloors
now.date_ofstill refuses, but only before year zero, which is where the
shiftcivil_from_daysapplies runs out rather than where the calendar
starts.std/ratiobinds<tois_below, so two ratios compare the way twoInts
do.is_belowandis_aboveare unchanged and still exported, because a
comparison is whatsorttakes.
Tools
deed lspanswerstextDocument/semanticTokens/full, so an editor can
colour from what the compiler concluded rather than from a grammar that
guesses at spelling. The split between a keyword and a name is the lexer's
own, and what a name stands for is the resolver's: a name that resolves to a
function is a function, one that resolves to a record is a type, a variant is
an enum member and a parameter is a parameter. Punctuation carries no colour,
because an editor already draws brackets. A file that does not check is still
painted, since that is when a reader most wants it.deed debugspeaks the Debug Adapter Protocol on stdin and stdout, so an
editor can set breakpoints, step in, over and out, and read the stack and the
bindings of every active call. The program is held still by a hook the
interpreter calls before each statement: a watcher stops by not returning, so
the host stack is the program's stack and nothing is re-run or simulated.
What a breakpoint is and what a step means live indeed-dapand not in the
interpreter, which knows nothing about lines. There is nopauseand no
evaluate, both stated with their reasons in
design/decisions/2026-08-04-a-place-to-stand.md.- A
deed.manifestcan declare a module by where its bytes are and what they
hash to:module https://example.com/list.deed sha256:9f2c.... The bytes are
fetched when the cache does not already hold them, refused outright when they
do not hash to what the manifest says, and never stored when they do not. A
location may also be a path, because a dependency being developed alongside
its user is the ordinary case and the hash is checked either way.
The directive does not say what the module is called: a fetched module is
named by its ownmoduleline, so two projects fetching the same bytes from
two mirrors get one module. This makesdeed-fetchreachable for the first
time; only its SHA-256 helper had a caller before. Decision record:
design/decisions/2026-08-04-a-dependency-is-a-location-and-a-hash.md. deed build --componentnow writes what a component needs as well as what
it offers. An effect the program performs and never handles becomes an
importin the world and a WebAssembly import in the module, and the call
goes to the host instead of walking off the end of the handler list. Before
this a component that performed an unhandled effect produced a world claiming
it was self-contained and a module with no import section at all, and it
trapped when the export was called. Decision record:
design/decisions/2026-08-04-a-component-asks-for-what-it-needs.md.- Fixed: a compiled walk that pushed onto its accumulator twice in a turn, with
the second push away from the value the turn hands back, was read as the
shape that builds one list. It grew the list by two a turn into room reserved
for one, so it wrote past the end and answered with a list of a length the
interpreter never produced. The same gap admitted a branch that kept the
accumulator somewhere else in the body. Both are refused now, and neither
shape appears in the shipped library or the corpus, so nothing that used to
take the fast path stopped taking it. - Fixed: the same rule never looked at a walk's
whileclause, which is read
before each turn with the accumulator in scope. A walk that handed its
accumulator to something that kept it there was still compiled as though
nothing could reach the list, and went on writing into a block the program
was holding.crates/deed-driver/tests/agreement.rscarries the program:
it answered 4 interpreted and 404 compiled. - A walk may start from a list it was handed and still build one block.
concatandprependinstd/listare that shape, and they used to copy
the whole accumulator every turn. The block is reserved as long as what the
walk started from plus the list it walks, and the walk copies what it started
from into it once, because whoever handed that list over is still holding it.
Joining two lists of 128 allocated 202272 bytes and now allocates 6184; two
of 512 ran out of memory and now allocate 24616. Decision record:
design/decisions/2026-08-05-a-walk-may-start-from-a-list.md. - A walk may read its accumulator's own length.
push(out, length(out))builds
one list rather than one a turn now, so a walk can number what it is building
without carrying the position beside it. Reading a length keeps nothing, and
the length of a reserved block is written as the walk goes, so every read
answers what a walk that copied would have answered.std/hashmap'srange
is written the obvious way again and the record it carried to work around the
refusal is gone; a compiled map now stops between three and four hundred keys
rather than between two and three. De...
v0.2.4
Most of this release is one question asked properly: what does a compiled
program do with memory. The answer was that building a list of 256 allocated
129 times what the answer was worth, and that a list of 1024 could not be
built at all, because every turn of a walk copied the accumulator to append
one item. Nothing about that was visible from a clock, which is why it went
unnoticed for four releases: what makes it visible is counting instructions
and bytes rather than timing them, and a count is the same on every machine
and can therefore be held to a ratchet.
Two things came out of the counting. A handler's state was allocated where a
handler was installed and never given back, so a program that installs one in
a loop grew without bound; it goes on the frame stack now and installing one
is free. And a walk whose accumulator is only ever pushed onto builds one
list, which is not reuse analysis and does not stand in for it: it asks
nothing about whether a value is unshared, it arranges for there to be nothing
to share. That works because for is the only loop and a for is a fold, so
the intermediate lists exist only as values of one name.
The rest is notation. 1/2 + 1/3 is written the way arithmetic is written,
Int.max is a number rather than nineteen digits, and an effect takes row
variables, which is what a scheduler needed before it could be shipped.
Programs that used to compile and no longer do
- None yet.
Language
- An operator can be bound to a function a module declares:
operator + = added
says that+, written between two values of the type that function takes,
means it.+,-and*, and nothing else: an operator answers with the
type it was handed, and/is partial, which this language spells with a
Result. A binding rather than a definition, so the function keeps its name
and can still be passed. The binding travels with the type, so a module that
importsRatioimports what+means on one.std/ratiobinds all three,
and1/2 + 1/3is now written the way arithmetic is written rather than as
added(half, third). Ordering is deliberately left out:<on a user type
meetssort, which is the trait question rather than a question about
notation. Int.maxandInt.minare numbers.Intis a signed 64-bit integer and a
program had no way to say so: awhereclause keeping a sum inside the type
had to carry nineteen digits, and the smallestInthad to be written
0 - 9223372036854775807 - 1because negation is an operator rather than
part of a literal. Both are folded where they are written, so a clause
bounded by one is settled at check time rather than guarded.- An effect takes row variables:
effect Task<uses r>. They are in scope in
its operation signatures and in the state of any handler implementing it, so
a handler can hold aList<Fn() uses r -> ()>, and each call to an operation
fills the variable in from the value it was passed. A program that forks a
task which logs is charged with logging. Before this a scheduler's queue had
to name every effect its tasks might perform, which only the program knows,
so a scheduler could be written and not shipped. - A function value written into a handler's state at a
withis charged to
whoever wrote it there. The state is the one way into a handler that does
not go through an operation, sowith RoundRobin { queue: [noisy] }used to
put a task in that nobody answered for. - A record pattern binds what it names.
err(OverLimit { limit })bound
nothing whenOverLimitwas a record rather than a variant of a choice, and
the name it did not bind was reported missing where it was used rather than
where it was written. The same pattern on a variant has always worked, and
the two are one shape.
Diagnostics
- A digit run one past the largest
Intsays what to write instead. It is the
number somebody reaches for when they want the smallest one, and the answer
isInt.minrather than digits. DEED4031, which used to answerInt.max
with the digits and ask for them to be written out, is gone: the name is a
value now. - A refinement that fails at runtime says which refinement in the sentence and
which value in the label under the source line, rather than putting the value
in the sentence. Both engines stop on one now and only one of them can write
an arbitrary value into a sentence, so the value in it would have been a
second dialect of the same failure. - An outcome written on a
whereclause gets DEED2023 and the condition under
it is still read.where ok => n + n <= 10is what somebody writes after
reading theensuresbeside it, and it used to end the contract at the=>,
so the answer was a block that was expected and, separately, thatokis a
builtin rather than a value. - A number or a string the lexer cannot read is one message rather than two.
It used to hand the parser an invalid token, which then said an expression
was expected in the same column the lexer had just written in. What was
written stands in for it instead, the way a decimal point already did: the
digits before the bad one, the largestIntfor a number too big, and what
was read before the line ended for a string with no closing quote. a and banda or bare read as&&and||, with DEED2020 naming the
operator anddeed fixwriting it. The words are ordinary names here, so a
whereclause holding one used to stop at the word and answer with the block
that did not follow it. The resolver has had the answer since #213 and never
got to give it: across eighteen recorded model runs the word reached the
parser seventeen times and the resolver none.- A function body written without braces gets DEED2021, which says a body is a
block and offers the braces, and the body is read to the next declaration so
the function is still a function. It used to be a message about a brace, then
a message about the first line of the body not being a declaration, then a
return type that matched nothing. Thirty-two of the six hundred programs in
the recorded model runs were written this way. - A contract written before the return type gets DEED2022, and the return type
is read where it was written.fn f(n: Int) where n > 0 -> Intused to put
the arrow where the body should have begun, so the message was about a brace
and the function went on to have no return type and a body that did not match
the one it was missing. Int.maxandInt.minget DEED4031, which names the number and writes it.
The answer used to be thatIntis a type and not a value, which is true and
is not the question. Ten of the recorded model turns reached for one of the
two, all of them writing awhereclause that had to keep a sum inside the
type.
Standard library
std/taskships: a cooperative scheduler withTask.fork,Task.more,
Task.step, andrunandrun_up_toover them. Tasks are function values
and run to completion in the order they were forked; a task that wants to
leave room for another forks the rest of itself. There are no resumptions,
so nothing suspends in the middle.examples/tasks.deeduses it and
examples/scheduler.deedis the same scheduler written by hand, kept for
the comparison.
Tools
- The compiled backend runs the whole shipped library. It ran 59 of the 91
tests those modules carry, andstd/mapwas twenty of which two ran. A
module's generic functions are lowered once per set of type arguments, so a
module full of them builds cleanly with no generic body ever put through the
backend at all, and "the backend compiles the corpus" said nothing about
them.crates/deed-driver/tests/shipped.rsruns every one now, and
examples/tree.deedjoined the corpus files whose test blocks run compiled. - Two copies of a generic function that differ only in the order of their type
arguments are two copies. The name a copy was cached under sorted them, so
keys<Int, Str>andkeys<Str, Int>were one entry and the second call
reached the first call's body. - A
usethat asks for a function gets the types in its signature too.
use std/table.{set}is the whole of what a program writes, andsethands
back aTable<K, V>over anEntry<K, V>; neither name appears on the
importing side, so the backend refused the program over a type it had never
been told about. - A function from another module can be named as a value. The keyed libraries
take a comparator and the one a program passes is one of theirs, so
insert(m, k, v, cmp_string)was refused. - A type parameter no argument says anything about, and a variant of a generic
choice written where nothing says which one, stand in as numbers.
holds([], key)over aTable<K, V>has no example ofV, andEmpty
carries none of either half of aMap<K, V>; both still need a layout for a
value that holds nothing. - A closure whose body lifts anything points at itself. The compiled backend
reserved the closure's place before lowering its body, and a body that
lifted a function of its own, another closure, a copy of a generic function,
a wrapper for a function named as a value, took that place first. So
|| Task.fork(step)compiled to a value pointing at the wrapper forstep,
and calling it ran the wrong code with no diagnostic anywhere. - A handler declared in another module is lowered against that module's
tables. Installing one only needs the declaration, so awithnaming an
imported handler got that far and then read its operation bodies with the
wrong resolutions, where every name resolved to nothing. - A call inside an imported module reaches the function it names. A
DefIdis
an index into one module's table, and the table of functions in the module
being compiled was consulted for definitions from anywhere, so a recursive
function in a library reached whatever ...