- This repo is only the language: compiler, VM, runtime, standard library, snapshots, the Promise API and its optional
Effect adapter (
src/effect/,psychoscript/effect). No tool-specific code; hosts expose functions throughHostand run programs withRuntime.make. - Host APIs meant for long-running scripts must survive
program.suspend()/Runtime.resume(): keep iteration or progress state as plain JSON cursors or handle IDs in VM state (for examplenotes({ after: cursor })) rather than open host async iterators or stateful host closures, which cannot be snapshotted and becomeLostNativeafter resume. Only add non-durable host streams when callers explicitly accept breaking across suspend (likeStreamingResponse.body). - Use Bun. Run one test command at a time. Run
bun run checkbefore pushing;bun run test:roundtripwhen touching the VM, snapshots or suspend. - After changing
src/prelude/or opcodes, runbun run script/prelude.tsand commitsrc/prelude/bytecode.json. - test262: sync with
bun run script/sync-test262.ts <checkout>at the revision intest/test262/manifest.json, thenbun test test/test262.test.ts. Updateskipped.txtwithbun run script/test262-report.ts --write. - Keep
interpreter-support.mdandREADME.mdin step with behavior changes. - VM code works on
Value, notunknown. Onlysrc/effect/importseffect(an optional peer dependency). rust/is a Rust implementation held to parity withsrc/by recordings made from it; seerust/README.md.- PRs go into
devand are squash-merged. Changes to.github/need Dax.