tom_d4rt_host 0.1.0
tom_d4rt_host: ^0.1.0 copied to clipboard
Hosting the D4rt interpreter in an application: a resident worker isolate that serves runs one at a time, one interpreter per set of registered bridges, a parsed-program cache keyed by source hash, a [...]
0.1.0 #
D4rtHost: one resident worker isolate serving runs one at a time, with a deadline and a cancellation that kill the worker, an application message channel whose handler runs in the caller's zone and may refuse a message, live output in the root zone, andworkerSpawnCount,programParseCount,disposeandisDisposed.D4rtWorker,D4rtWorkerDelegate,D4rtWorkerRunandd4rtWorkerMain: the worker body the application furnishes — its bridges, its per-run state, the failures it recognises.D4rtInterpreterPool: one interpreter per bridge set, released after every run.D4rtProgramCache: a bounded LRU of parsed programs keyed by source hash, withparseCount.d4rtRunCapturingandD4rtCapturedStdout:print,stdoutandstderrinto one emitter.D4rtRunRequest,D4rtRunOutcome,D4rtRunStatus,D4rtRunError,D4rtFrameandD4rtWorkerMessage: what crosses the port.