Repository navigation
feat(rust): add precompiled named modules with per-module stacks and snapshot durability - #159
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Hona
force-pushed
the
feat/rust-precompiled-modules-ts
branch
3 times, most recently
from
December 2, 2026 04:06
9023423 to
d926fa6
Compare
This was referenced Dec 2, 2026
Merged
Hona
force-pushed
the
feat/rust-persistent-session
branch
from
December 2, 2026 15:28
880f23f to
d3d3303
Compare
Hona
force-pushed
the
feat/rust-precompiled-modules-ts
branch
2 times, most recently
from
December 2, 2026 22:00
378204c to
afccce9
Compare
Hona
force-pushed
the
feat/rust-precompiled-modules-ts
branch
from
December 3, 2026 00:23
afccce9 to
814162a
Compare
…ility - Drop TypeScript stripping, CompileOptions, duplicate max_source_bytes, and unrelated super tagged-template fix - Respect Limits::max_source_bytes in compile_module / eval_module - Avoid spawning an OS thread per nested eval_module when stack budget allows inline compile - Reuse first_frame error-location helper for loaded modules - Persist loaded modules, load order (including Array.fromAsync), and per-module source metadata across Session::save / restore_session and suspend/resume snapshots - Pack CallSite into 8 bytes (Option<CallSite> == Option<u32>) to stay within 0.1% on all callgrind bench programs - Document Rust-only precompiled modules and per-module stacks/toString in rust/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Rust-only precompiled synchronous named modules with per-module
file:line:colstack traces, per-moduleFunction.prototype.toString, and full snapshot/session durability.API
CompiledModule(name(),code(),Clone + Send + Sync)Runtime::compile_module(&self, source, name)(respectsLimits::max_source_bytes)Session::eval_compiled/Session::eval_moduleHostCtx::eval_compiled/HostCtx::eval_moduleRework notes
CompileOptions, duplicatemax_source_bytes, and the unrelatedsuper.m\x`` compiler fix.Array.fromAsync), and per-module source metadata acrossSession::save/Runtime::restore_sessionand suspend/resume snapshots.HostCtx::eval_modulecalls when remaining stack budget suffices; packsOption<CallSite>into 8 bytes to stay within 0.1% on all 9 callgrind benchmarks.