Skip to content

poc(runtime): real node lib path/buffer/fs (sync+async) via internalBinding shims + wasm simdutf#1726

Closed
NathanFlurry wants to merge 1 commit into
stack/docs-internal-node-stdlib-replacement-spec-v3-review-hardened-user-decisions-wyqxqylofrom
stack/poc-runtime-real-node-lib-path-buffer-fs-sync-async-via-internalbinding-shims-wasm-simdutf-ulxrmvqv
Closed

poc(runtime): real node lib path/buffer/fs (sync+async) via internalBinding shims + wasm simdutf#1726
NathanFlurry wants to merge 1 commit into
stack/docs-internal-node-stdlib-replacement-spec-v3-review-hardened-user-decisions-wyqxqylofrom
stack/poc-runtime-real-node-lib-path-buffer-fs-sync-async-via-internalbinding-shims-wasm-simdutf-ulxrmvqv

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member

Stage 1: node v26 lib/path.js + lib/buffer.js load unmodified in the embedded
V8 runtime via node's real realm.js loader and JS binding shims.
Stage 2: lib/fs.js sync ops pass against an in-memory backend AND the real
kernel/ChunkedVFS in a full sidecar VM via the _fs* sync bridge globals.
Stage 2.5: buffer validation/length codecs backed by upstream simdutf compiled
to wasm32-wasip1 with the patched sysroot, running in V8's own wasm engine.
Stage 3: async fs end to end - FSReqCallback/kUsePromises adapter, real
lib/timers.js wired to a POC scheduler (getTimerCallbacks/setupTimers),
callback+promise APIs, node-exact completion ordering (sync,tick,micro,fs),
and fs.createReadStream/createWriteStream/pipe over 1MB through the real
internal/streams stack; bridge backend completes via _fs*Async events.

@NathanFlurry

NathanFlurry commented Jul 10, 2026

Copy link
Copy Markdown
Member Author

Stack for rivet-dev/agentos

Get stack: forklift get 1726
Push local edits: forklift submit
Merge when ready: forklift merge 1726

…inding shims + wasm simdutf

Stage 1: node v26 lib/path.js + lib/buffer.js load unmodified in the embedded
V8 runtime via node's real realm.js loader and JS binding shims.
Stage 2: lib/fs.js sync ops pass against an in-memory backend AND the real
kernel/ChunkedVFS in a full sidecar VM via the _fs* sync bridge globals.
Stage 2.5: buffer validation/length codecs backed by upstream simdutf compiled
to wasm32-wasip1 with the patched sysroot, running in V8's own wasm engine.
Stage 3: async fs end to end - FSReqCallback/kUsePromises adapter, real
lib/timers.js wired to a POC scheduler (getTimerCallbacks/setupTimers),
callback+promise APIs, node-exact completion ordering (sync,tick,micro,fs),
and fs.createReadStream/createWriteStream/pipe over 1MB through the real
internal/streams stack; bridge backend completes via _fs*Async events.
@railway-app

railway-app Bot commented Jul 10, 2026

Copy link
Copy Markdown

🚅 Deployed to the agentos-pr-1726 environment in agentos

Service Status Web Updated (UTC)
agentos 😴 Sleeping (View Logs) Web Jul 10, 2026 at 6:14 am

@NathanFlurry NathanFlurry force-pushed the stack/docs-internal-node-stdlib-replacement-spec-v3-review-hardened-user-decisions-wyqxqylo branch from 7915149 to 5b4b67f Compare July 10, 2026 06:00
@NathanFlurry NathanFlurry force-pushed the stack/poc-runtime-real-node-lib-path-buffer-fs-sync-async-via-internalbinding-shims-wasm-simdutf-ulxrmvqv branch from 623f9f8 to cdd38cb Compare July 10, 2026 06:01
@railway-app railway-app Bot temporarily deployed to agentos / agentos-pr-1726 July 10, 2026 06:01 Destroyed
This was referenced Jul 10, 2026
@NathanFlurry NathanFlurry deleted the branch stack/docs-internal-node-stdlib-replacement-spec-v3-review-hardened-user-decisions-wyqxqylo July 10, 2026 11:35
@NathanFlurry NathanFlurry deleted the stack/poc-runtime-real-node-lib-path-buffer-fs-sync-async-via-internalbinding-shims-wasm-simdutf-ulxrmvqv branch July 10, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant