Nearly all of its test262 group
djs passes 39,325 of the 39,365 test262 tests in its active group, of 53,597 in all; the rest are skipped by design.
Source:djs guide, status
djs is the engine closest to what tinyscript is for: model-written code, run deterministically, on fuel, in a sandbox. It is also ahead of tinyscript on the language today. Here is where each one fits.
An agent's code mode needs an engine that runs what a model wrote, stops it on a budget and never touches the host on its own.
djs is a JavaScript and TypeScript engine in no_std Rust, built mainly for WebAssembly, made to replace QuickJS in the pi coding agent's code mode. Each sandbox is its own WebAssembly instance.
It covers nearly the whole current language in strict mode, erases TypeScript while parsing, and charges fuel per instruction so a budget always stops at the same place. Its sandboxes start in tens of microseconds.
I read its guide expecting a prototype. It is not one: it publishes its test262 numbers, its start-up times and its memory per sandbox.
djs passes 39,325 of the 39,365 test262 tests in its active group, of 53,597 in all; the rest are skipped by design.
Source:djs guide, status
A sandbox is made in 62.2 µs and runs its first program in 85.7 µs, after the module compiles once per process in about 5 ms.
Two engines with the same goals still make different bets, and the bets decide where each one fits.
djs bets on WebAssembly around the interpreter: the host's engine is the boundary, and any JavaScript host can load it. tinyscript bets on WebAssembly as the bytecode: a C library in your process, compiling ahead of time.
| Question | djs | tinyscript |
|---|---|---|
| Language today | 39,325 of 39,365 in its test262 group | 62.9% of test262 in strict mode |
| Bounding a call | Deterministic fuel; a sliced run continues | Exact fuel; a run continues where it stopped |
| Saving a run | Heap images in a process; waiting runs across processes | Sessions saved as their values |
| Where it runs | Node.js, Bun, Deno, browsers, Workers, native Rust | A C library and a command-line tool |
| Boundary | One WebAssembly instance per sandbox | A message interface in your process |
Speed is open: both are interpreters, and nobody has run them on the same workloads yet. tinyscript's answer is to emit one WebAssembly module of your whole program, which a host's JIT then compiles.
Most readers need one answer: which engine to try first.