repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

wasi sandbox

0134f3db316bad0de56095fe7ee3a8f711c976cd

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

+3 / −0 text lines

Diff layout

.system/specs/SMH-SPEC-WASM0001-wasm-plugin-runtime/index.md

Modified

+1 / −0 text lines

1818- Fuel metering is on; fuel exhaustion is an explicit plugin error and leaves the runtime usable.
1919- No ambient WASI: clocks, randomness, filesystem, network, and environment never reach the guest uncontrolled from the host OS. Where a guest needs such semantics, Smith provides controlled substitutes through granted interfaces — deterministic, recorded, replayable (a smith clock is injected and replayed; a smith RNG is seeded and recorded).
2020- Time enters the guest only as explicit host-provided arguments.
21- WASI interfaces that guest-language std runtimes import for standard functionality (environment, poll, and peers) are satisfied on demand by Smith implementations with smith-controlled semantics: sealed by default, manifest-granted values, recorded and replayable. Standard guest code stays painless — no smith-specific surface is required for ordinary std usage.
2122- Components are validated before instantiation: typecheck against the pinned smith world, memories and tables declared with max equal to min, runtime limiter rejects growth.
2324## Capabilities

TO_DISCUSS.md

Modified

+2 / −0 text lines

1717## Rethinks
19- Guest std ergonomics: sandboxed wasi shims (environment, poll, clocks) land on demand per spec; cargo-component adapters versus smith implementations decided at the tooling slice (`smith plugin build`).
1921- Benchmarking: regression detection + learning, relative comparisons, in-repo baselines, no machine-specific numbers. Trigger: RELS planning.
2022- SDK-layer bindings: deferred past 1.0; world must stay comfortable through raw wit-bindgen. Trigger: 1.0 stabilization.