Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.5.1239 — stdlib `full` drops external-http-client-pump: ext-http link lockstep restored

#5831 added `external-http-client-pump` to perry-stdlib's `full` feature, but the pump cfg declares externs (`js_ext_http_agent_*`, `js_ext_http_client_*`, `js_http_has_pending`, …) defined only in perry-ext-http — which the compile driver links per-program, never stdlib's own artifacts. `cargo test -p perry-stdlib` could not link (red since 45e67736d) and cache-warm's heavy-crates step failed on every run, blocking the v0.5.1233 smoke variant priming. The feature was never needed in `full`: `optimized_libs/driver.rs` activates the pump exactly when a program imports node:http/https with perry-ext-http in the link surface. Verified via stdlib test link + unit suite + an http client/server round-trip e2e through the driver-activated path.

## v0.5.1238 — array higher-order methods re-derive element pointers through rooted handles

Every callback-looping array method (forEach/map/map_discard/filter/find/findIndex/findLast/findLastIndex/some/every/flatMap/reduce/reduceRight) hoisted `elements_ptr` before the loop — and map/filter/flatMap additionally cached result pointers, reduce/reduceRight the accumulator, flatMap the callback-returned sub-array — across user callbacks that can trigger a MOVING collection. Elements live inline after the header, so a moved array left the hoisted pointer reading from-space garbage; a moved result array took writes through a stale pointer; a heap-valued accumulator went stale in a Rust local (an exotic getter's GC exposes that even without the callback). New `RootedIterArray` helper: the receiver (and each result/accumulator/sub-array) is held in a `RuntimeHandleScope` root and re-derived per access. E2e `gc_array_iter_rooted` runs 11 methods with `gc()` inside EVERY callback under allocation pressure — byte-for-byte with `node --expose-gc`. Closes the 2026-07-02 audit's GC deep set. (Metadata folded post-merge: the #5981 squash landed code-only.)
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

Perry is a native TypeScript compiler written in Rust that compiles TypeScript source code directly to native executables. It uses SWC for TypeScript parsing and LLVM for code generation.

**Current Version:** 0.5.1238
**Current Version:** 0.5.1239


## TypeScript Parity Status
Expand Down
Loading
Loading