James Long
2cdf6a67e8
refactor(codemode): write iterator helpers and Iterator.from as prelude generators; drop the Helper cursor and its kinds
2026-11-05 16:17:17 +00:00
James Long
9cc8ec9b86
refactor(codemode): move iterator consumers, Iterator.from, the JSON reviver, and string replace callbacks to the prelude; drop Drain and consumers
2026-11-05 15:28:31 +00:00
James Long
d8504a97b0
refactor(codemode): move collection constructors, groupBy, forEach, getOrInsertComputed, and Set methods to the prelude
2026-11-05 15:20:57 +00:00
James Long
0bff057313
refactor(codemode): keep array callbacks and sort native, move Array.from iterables and toLocaleString to the prelude
2026-11-05 15:17:00 +00:00
James Long
1acdf4b478
refactor(codemode): add a Code Mode prelude for built-ins that call program code, starting with array callbacks
2026-11-05 15:11:36 +00:00
James Long
5ad0d06ab2
feat(codemode): save and restore a run's state as a snapshot, with a round-trip test mode
2026-11-05 00:53:15 +00:00
James Long
a9d9cb7a8d
refactor(codemode): run JSON, Date, tool calls, search and extension calls as data frames and drop the host generator bridge
2026-11-05 00:53:14 +00:00
James Long
cd0478a46f
test(codemode): check suspended generators and for await state is data
2026-11-05 00:53:14 +00:00
James Long
ad4fd72c55
refactor(codemode): run every job on the machine and drive it from a thin Effect loop
...
The machine now owns the scheduler: job queue, inbox, parked awaits, unhandled
rejections, and promise operations. An await cuts the stack at the innermost
async boundary (the program's frame or an async function's call frame) and
parks the frames on the promise as data. Host calls are HostCall records the
machine hands to the driver at its stops; blocking host work is a blocking
HostCall. The generator evaluator, runner.ts, and CODEMODE_EVALUATOR are gone.
2026-11-05 00:53:14 +00:00
James Long
1dd74883d6
refactor(codemode): keep the machine's hot paths free of per-evaluation closures
2026-11-05 00:53:14 +00:00
James Long
8a4479e1ef
test(codemode): run the suite on both evaluators
2026-11-05 00:53:14 +00:00