Repository navigation
chore: merge main into feat/storage-layer - #422
Merged
Merged
Conversation
Bumps coverlet.collector from 10.1.0 to 10.1.1 Bumps Microsoft.CodeAnalysis.Analyzers from 3.3.3 to 5.12.0 Bumps PolySharp from 1.17.0 to 1.17.1 --- updated-dependencies: - dependency-name: coverlet.collector dependency-version: 10.1.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: nuget - dependency-name: Microsoft.CodeAnalysis.Analyzers dependency-version: 5.12.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: nuget - dependency-name: PolySharp dependency-version: 1.17.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: nuget ... Signed-off-by: dependabot[bot] <support@github.com>
Refer to the single-value decoder as code so public documentation does not link to a private method. Closes #250
Hide Unity caches, benchmark results and fuzz findings left at old project locations after the .NET projects moved. Keep the rules scoped to known generated files.
Use the same model traversal in inspect and all targets. Let each target filter candidates by its supported type set. Closes #237
Compute the positional minimum from the struct members and the closed argument sizes. This lets collection readers check the claimed count before reserving elements. Refs #246 Fixed: Go codecs generated for collections of closed generic structs check their element count against the minimum encoded size.
Generate TypeScript codecs for flattened row-major grids. Check dimensions before allocating and use typed storage for fixed-size numbers, while preserving nullable slot encoding. Refs #299 Added: nino-gen generates TypeScript codecs for rectangular arrays of rank 2 to 4, with typed storage for numeric grids.
Generate one runtime from named modules for the npm build and the nino-gen resource. Keep the checked-in bundle and its import path so .NET builds and generated consumers retain their existing requirements. Check the bundle in the npm build and tests, and rebuild it after embedding Wasm. Refs #247
Record the bundle requirement and the V8 bytecode and inlining checks used for the runtime split.
Keep fixed-block helpers in the shared module and move standard codecs into their owning modules. Preserve the crate-visible map macro. Refs #248
Assert that the class decoded for the reuse test is present before inspecting its grid.
Reserve the length and element bytes together for standard and ordered sets with a fixed encoder. Preserve iteration order so the wire bytes are unchanged. Refs #354 Performance: Rust writes sets of fixed-size values into one reserved block.
Record per-CPU runner results for reserving one block for fixed-size set writes.
The runtime A/B workflow generates and runs fixtures with each revision. Include both harnesses when checking whether an A/B measures a change.
Convert each pair in a single checked wire block when its Go layout includes padding or needs a byte-order conversion. Keep the bulk copy on matching layouts. Refs #353
Cache the Go key classification and reuse the seeded reader table for packed keys whose equality compares all their bytes. Keep the existing comparer for padding, floating-point members, pointers, and noncanonical representations. Refs #353
The same-revision controls and the comparison show that the modular source bundle retains MixedStrings throughput on both architectures.
Collections is now generated because its rectangular member has a codec. Exercise its valid and truncated payloads through both array modes.
Use the wire stride for fixed-width pairs, sets, grids, and DateTimeOffset sequences. Share primitive block copies and write the raw layout fallback with direct generated calls. Exercise the generated paths against scalar bytes and invalid values. Refs #353
Validate the numeric NaN in the newly enabled Collections fixture and compare the surrounding bytes exactly. Leave exact comparison enabled for typed-array fixtures and all grid cases.
The generated value wrappers escape when the decoder returns an interface. Keep the dynamic type available to callers that assert a concrete value case. Capture the escape-analysis command to distinguish boxing from the direct pointer cases. Refs #387
Return the new enum from its read and use the default read_into implementation to replace the old value. Track deferred class bodies only in cases that can introduce them, while retaining the union depth check on every nonempty value. Refs #387 Performance: Generated Rust codecs read union cases directly and record deferred bodies only for cases that can contain them.
Record the runner evidence and the nesting and deferral invariants for the generated union path.
Combine the type ID with a fixed-size payload in a single reservation. Emit the payload through the existing offset writers, including zeroing when the shape has padding. Refs #387 Performance: Generated TypeScript unions reserve the type ID and fixed-size payload together.
Record the Node runner evidence for folding a union tag and its fixed payload into one reservation.
The same Go 1.26.11 test binary fails in QEMU 7.2.22 and passes repeatedly with asynchronous preemption on under 10.0.13.
Independent harness branches need history-only merges of both commits. Verify each SHA is an ancestor of the request branch before pushing.
Record the sizes, CPU splits and legacy glibc threshold evidence before interpreting the results in complete codec calls.
Include the staging cost for ordinary arrays and record the range for views already in Wasm memory.
Restore the existing scalar dispatch and text probe. Cache structural bytewise equality only for composite keys, which use the same seeded reader storage and bounded probing. Refs #353
Walk fixed map entries by index and take their address so that encoding large keys and values avoids range-value and stack temporaries. Refs #353
## Changes - Fix the private rustdoc link in the fixed-value reader documentation. - Ignore known Unity, benchmark and fuzz output left at the old .NET project paths. ## Verification - `RUSTDOCFLAGS="-D warnings" cargo doc -p nino-serialization --no-deps --all-features` - `tools/agents.sh --check` - `git check-ignore -v` on examples from each ignored output directory Closes #250 --- _Generated by [Codex](https://openai.com/codex/)_
Updated [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 10.1.0 to 10.1.1. <details> <summary>Release notes</summary> _Sourced from [coverlet.collector's releases](https://github.com/coverlet-coverage/coverlet/releases)._ ## 10.1.1 ### Improvements - Add `IsReachable` to branch points, computed from the method's control-flow graph, and exclude unreachable branches from branch-coverage totals and from branch details in Cobertura, LCOV and OpenCover reports [#2056](coverlet-coverage/coverlet#2056) by @pcshrosbree - coverlet.MTP: Narrow Dynamic Exclude Filters for Loaded Assemblies [#2069](coverlet-coverage/coverlet#2069) ### Fixed - Fix Regression Prevent invalid IL from branch trampolines [#2067](coverlet-coverage/coverlet#2067) - Fix Regression coverlet.MTP does not instrument local functions [#2046](coverlet-coverage/coverlet#2046) ## Maintenance - Update NuGet package versions [#2050](coverlet-coverage/coverlet#2050) [Diff between 10.1.0 and 10.1.1](coverlet-coverage/coverlet@v10.1.0...v10.1.1) Commits viewable in [compare view](coverlet-coverage/coverlet@v10.1.0...v10.1.1). </details> Pinned [Microsoft.CodeAnalysis.Analyzers](https://github.com/dotnet/roslyn) at 5.12.0. <details> <summary>Release notes</summary> _Sourced from [Microsoft.CodeAnalysis.Analyzers's releases](https://github.com/dotnet/roslyn/releases)._ ## 5.0.4 [Release](https://github.com/dotnet/core/releases/tag/v5.0.4) ## 5.0.2 [Release Notes](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0.2/5.0.2.md) [Install Instructions](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0.2/5.0.2-install-instructions.md) # Repos * [Core](https://github.com/dotnet/core/releases/tag/v5.0.2) ## 5.0.1 [Release Notes](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0.1/5.0.1.md) [Install Instructions](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0.1/5.0.1-install-instructions.md) # Repo * [Core](https://github.com/dotnet/core/releases/tag/v5.0.1) ## 4.2.0-4.22266.5 [Release](https://github.com/dotnet/core/releases/tag/v7.0.0-preview.5) ## 4.2.0-3.22151.16 [Release](https://github.com/dotnet/core/releases/tag/v7.0.0-preview.2) ## 4.2.0-1.22108.11 [Release](https://github.com/dotnet/core/releases/tag/v7.0.0-preview.1) ## 4.0.0-2.21354.7 [Release](https://github.com/dotnet/core/releases/tag/v6.0.0-preview.6) ## 4.0.0-2.21254.26 [Release](https://github.com/dotnet/core/releases/tag/v6.0.0-preview.4) ## 4.0.0-1.21277.15 [Release](https://github.com/dotnet/core/releases/tag/v6.0.0-preview.5) ## 3.10.0-3.21201.20 [Release](https://github.com/dotnet/core/releases/tag/v6.0.0-preview.3) ## 3.10.0-2.21153.36 [Release](https://github.com/dotnet/core/releases/tag/v6.0.0-preview.2) ## 3.10.0-1.21102.26 [Release](https://github.com/dotnet/core/releases/tag/v6.0.0-preview.1) ## 3.7.0-3.20312.3 [Release Notes](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.6.md) [Install Instructions](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.6-install-instructions.md) # Repos * [Installer](https://github.com/dotnet/installer/releases/tag/v5.0.100-preview.6.20318.15) * [Windowsdesktop](https://github.com/dotnet/windowsdesktop/releases/tag/v5.0.0-preview.6.20308.1) * [Runtime](https://github.com/dotnet/runtime/releases/tag/v5.0.0-preview.6.20305.6) * [Aspnetcore](https://github.com/dotnet/aspnetcore/releases/tag/v5.0.0-preview.6.20312.15) * [templating](https://github.com/dotnet/templating/releases/tag/v5.0.0-preview.6.20309.2) * [SDK](https://github.com/dotnet/sdk/releases/tag/v5.0.100-preview.6.20318.5) * [winforms](https://github.com/dotnet/winforms/releases/tag/v5.0.0-preview.6.20306.1) * [WPF](https://github.com/dotnet/wpf/releases/tag/v5.0.0-preview.6.20306.1) * [Extensions](https://github.com/dotnet/extensions/releases/tag/v5.0.0-preview.6.20312.15) * [EF Core](https://github.com/dotnet/efcore/releases/tag/v5.0.0-preview.6.20312.4) * [Roslyn](https://github.com/dotnet/roslyn/releases/tag/v3.7.0-3.20312.3) * [Fsharp](https://github.com/dotnet/fsharp/releases/tag/v10.10.0-beta.20312.5) * [WebSDK](https://github.com/dotnet/websdk/releases/tag/v5.0.100-preview.6.20314.1) ## 3.7.0-3.20269.11 [Release Notes](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.8.md) [Install Instructions](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.8-install-instructions.md) # Repos * [Installer](https://github.com/dotnet/installer/releases/tag/v5.0.100-preview.8.20417.9) * [Windowsdesktop](https://github.com/dotnet/windowsdesktop/releases/tag/v5.0.0-preview.8.20411.6) * [Runtime](https://github.com/dotnet/runtime/releases/tag/v5.0.0-preview.8.20407.11) * [Aspnetcore](https://github.com/dotnet/aspnetcore/releases/tag/v5.0.0-preview.8.20414.8) * [templating](https://github.com/dotnet/templating/releases/tag/v5.0.0-preview.8.20371.3) * [SDK](https://github.com/dotnet/sdk/releases/tag/v5.0.100-preview.8.20417.14) * [winforms](https://github.com/dotnet/winforms/releases/tag/v5.0.0-preview.8.20410.2) * [WPF](https://github.com/dotnet/wpf/releases/tag/v5.0.0-preview.8.20411.7) * [WCF](https://github.com/dotnet/wcf/releases/tag/v1.2.0-preview1.20412.3) * [Extensions](https://github.com/dotnet/extensions/releases/tag/v5.0.0-preview.8.20414.8) * [EF Core](https://github.com/dotnet/efcore/releases/tag/v5.0.0-preview.8.20407.4) * [Roslyn](https://github.com/dotnet/roslyn/releases/tag/v3.7.0-3.20269.11) * [Fsharp](https://github.com/dotnet/fsharp/releases/tag/v11.0.0-beta.20417.1) * [MSBuild](https://github.com/dotnet/msbuild/releases/tag/v16.8.0-preview-20414-02) ## 3.7.0-2.20277.1 [Release Notes](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.5.md) [Install Instructions](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.5-install-instructions.md) # Repos * [Windowsdesktop](https://github.com/dotnet/windowsdesktop/releases/tag/v5.0.0-preview.5.20278.3) * [Runtime](https://github.com/dotnet/runtime/releases/tag/v5.0.0-preview.5.20278.1) * [Aspnetcore](https://github.com/dotnet/aspnetcore/releases/tag/v5.0.0-preview.5.20279.2) * [templating](https://github.com/dotnet/templating/releases/tag/v5.0.0-preview.6.20262.2) * [SDK](https://github.com/dotnet/sdk/releases/tag/v5.0.100-preview.5.20279.7) * [winforms](https://github.com/dotnet/winforms/releases/tag/v5.0.0-preview.5.20278.1) * [WPF](https://github.com/dotnet/wpf/releases/tag/v5.0.0-preview.5.20278.3) * [ASPNETCORE-Tooling](https://github.com/dotnet/aspnetcore-tooling/releases/tag/v5.0.0-preview.5.20278.2) * [Extensions](https://github.com/dotnet/extensions/releases/tag/v5.0.0-preview.5.20279.2) * [EF Core](https://github.com/dotnet/efcore/releases/tag/v5.0.0-preview.5.20278.2) * [Roslyn](https://github.com/dotnet/roslyn/releases/tag/v3.7.0-2.20277.1) * [Fsharp](https://github.com/dotnet/fsharp/releases/tag/v11.0.0-beta.20263.4) ## 3.6.0 [Release Notes](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.2.md) [Install Instructions](https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.2-install-instructions.md) * [Installer](https://github.com/dotnet/installer/releases/tag/v5.0.100-preview.2.20176.6) * [Windowsdesktop](https://github.com/dotnet/windowsdesktop/releases/tag/v5.0.0-preview.2.20160.6) * [Runtime](https://github.com/dotnet/runtime/releases/tag/v5.0.0-preview.2.20160.6) * [Aspnetcore](https://github.com/dotnet/aspnetcore/releases/tag/v5.0.0-preview.2.20167.3) * [templating](https://github.com/dotnet/templating/releases/tag/v5.0.0-preview.2.20174.1) * [SDK](https://github.com/dotnet/sdk/releases/tag/v5.0.100-preview.2.20176.4) * [winforms](https://github.com/dotnet/winforms/releases/tag/v5.0.0-preview.2.20155.3) * [WPF](https://github.com/dotnet/wpf/releases/tag/v5.0.0-preview.2.20156.7) * [WCF](https://github.com/dotnet/wcf/releases/tag/v1.2.0-preview1.20104.1) * [standard](https://github.com/dotnet/standard/releases/tag/v2.2.0-prerelease.19564.1) * [blazor](https://github.com/dotnet/blazor/releases/tag/v3.2.0-preview1.20067.1) * [ASPNETCORE-Tooling](https://github.com/dotnet/aspnetcore-tooling/releases/tag/v5.0.0-preview.2.20160.3) * [EF Core](https://github.com/dotnet/efcore/releases/tag/v5.0.0-preview.2.20159.4) * [Extensions](https://github.com/dotnet/extensions/releases/tag/v5.0.0-preview.2.20160.3) * [roslyn](https://github.com/dotnet/roslyn/releases/tag/v3.6.0) * [fsharp ](https://github.com/dotnet/fsharp/releases/tag/v11.0.0) * [WebSDK](https://github.com/aspnet/websdk/releases/tag/v5.0.100-preview.2.20167.4) Commits viewable in [compare view](https://github.com/dotnet/roslyn/commits). </details> Updated [PolySharp](https://github.com/Sergio0694/PolySharp/) from 1.17.0 to 1.17.1. <details> <summary>Release notes</summary> _Sourced from [PolySharp's releases](https://github.com/Sergio0694/PolySharp//releases)._ No release notes found for this version range. Commits viewable in [compare view](https://github.com/Sergio0694/PolySharp//commits). </details>
## Changes - Move recursive struct detection into the codegen model. Each target passes its support filter. - Use closed generic struct arguments to calculate the minimum Go collection element size before the reader reserves storage. ## Verification - Regenerated the Go, Rust and TypeScript fixtures with SDK 11.0.100. Regeneration after the recursive struct refactor alone was byte-identical. - `Nino.Codegen.Tests` passed 99 tests and `Nino.Codegen.Integration.Tests` passed 16 tests. - The closed `Pair<int, int>` fixture now emits `r.Length(9)` for a string-keyed map. This is the only fixture diff from the minimum-size fix. - Go vet, race and purego suites passed, including the generated corpus and malformed-input tests. - `tools/agents.sh --check` Closes #237 Closes #246 --- _Generated by [Codex](https://openai.com/codex/)_
## Changes - Move the standard Rust codecs into modules by value kind. Keep the shared helpers and the crate-visible map macro available to their existing callers. - Reserve the count and payload together for fixed-size set writes, visiting elements in the existing iteration order. ## Verification - Rust fmt, Clippy, all-feature Release workspace tests, corpus tests and the default-feature lib, spec and values suites passed. - [Runner A/B](https://github.com/JasonXuDeveloper/Nino/actions/runs/44329792122) reduced the 1,000-element `i32` hash-set write time by 33–43% on the sampled x64 CPUs and by 58% on Neoverse-N2. The GUID hash-set case fell 26–44% on x64 and 58% on Neoverse-N2. The ordered set write was on par or improved. - Compared the aligned `compare`, `text` and `blocks` disassembly of the module split in isolation on macOS Arm64. `text` matches. `compare` and `blocks` have remaining codegen differences in date constructors. Moving `Error::of` into their codegen unit lets LLVM fold part of the result. The targeted [DateOnly runner comparison](https://github.com/JasonXuDeveloper/Nino/actions/runs/44333395182) finished on both architectures. The median shift for each measured CPU was within 0.5%. - `tools/agents.sh --check` Closes #354 Refs #248 --- _Generated by [Codex](https://openai.com/codex/)_
## Changes - Have generated Rust readers construct the union variant directly. Record deferred trails only for cases that can open deferred bodies, and keep depth accounting around each non-null case. - Reserve the type ID and fixed-size payload together for generated TypeScript union writes. Reuse the existing offset writers and padding policy. ## Verification - SDK 11.0.100 Codegen and integration tests passed (98 and 16 tests). Regeneration is clean. - Rust fmt, Clippy and the generated corpus, truncation and mutational fuzz suite passed. Two short cargo-fuzz runs completed for the hand-written and generated corpus readers. - TypeScript's three test modes each passed 830 tests with zero failures. - [Runner A/B](https://github.com/JasonXuDeveloper/Nino/actions/runs/44333395182) lowered Rust's median `UnionArray` / `TaggedUnionArray` deserialize time by 38% / 51% on EPYC 9V74, 43% / 55% on Xeon 6975P-C and 33% / 44% on Neoverse-N2. The Rust serialization controls stayed on par. - The same run lowered TypeScript's median `UnionArray` / `TaggedUnionArray` serialize time by 17% / 22% on Neoverse-N2 and 10–14% / 17–23% across the sampled x64 CPUs. The Arm64 plain union measured 37.1 µs against JSON's 38.8 µs, within 5%. Go value wrappers escape when returned through the union interface. Returning pointers would change the concrete dynamic types callers can assert. The Go allocation item remains open. Refs #387 --- _Generated by [Codex](https://openai.com/codex/)_
…410) Closes #397 I started from #397 and checked it against the code. `runtimes/rust/fuzz` is its own workspace, and its `Cargo.lock` pins the path dependency `nino-serialization` at `4.0.0-rc.7`, the version it had when the fuzz workspace was added. `.github/scripts/bump_version.py` sets the version in `runtimes/rust/Cargo.lock` but not in this file, so it stayed at rc.7 through the rc.8, rc.9 and rc.10 releases. This change: - `bump_version.py` also sets the `nino-serialization` version in `runtimes/rust/fuzz/Cargo.lock`, with the same `sub()` call as the main lockfile, so a release fails if the entry is missing. The path is printed with the others, so `release.yml` adds it to the release commit. - `runtimes/rust/fuzz/Cargo.lock` is brought up to rc.10. That is the one line cargo itself changes there (`cargo metadata` in the fuzz workspace without `--locked`). ## How I found it I compared the `nino-serialization` entries in the two lockfiles with `runtimes/rust/Cargo.toml`, then read `bump_version.py` and the "Commit and tag" step of `release.yml` to see which files a release writes. ## Where this can show up in practice Anyone who runs the Rust fuzzers from a checkout of `main` (`cargo +nightly fuzz run`, as `runtimes/rust/README.md` and `fuzz/Cargo.toml` describe) gets a modified `Cargo.lock` in their working tree, and a build with `--locked` in that workspace fails. This is my estimate beyond the report in #397. ## Testing - On `main`, `cargo metadata --locked` in `runtimes/rust/fuzz` fails with `cannot update the lock file ... because --locked was passed`. With this change it passes, and `cargo check --locked --bins` there builds without touching the lockfile (Rust 1.96.0, macOS arm64). - On a copy of the tree, `python3 .github/scripts/bump_version.py 4.0.0-rc.11 4.0.0-rc.11` exits 0, lists `runtimes/rust/fuzz/Cargo.lock` among the written files, and afterwards `cargo metadata --locked` passes in both `runtimes/rust` and `runtimes/rust/fuzz`. - Not run: `cargo +nightly fuzz run`, and the release workflow itself.
…tions # Conflicts: # runtimes/go/internal/generated/shapes/nino_types.go
The module lives in src/runtime/ like the others; the map listed it one level up.
## Changes - Encode padded primitive pairs from one checked wire block at fixed offsets. - Generate fixed-stride paths for maps, sets, grids and DateTimeOffset sequences. Raw-layout fallbacks call each element codec directly. - Cache structural classification for composite keys and share the reader's bounded probe table. Scalar and string keys use their existing comparison loops. - Encode fixed map entries through their addresses. On x64 the GUID map write loop reduces ten `MOVUPS` instructions per entry to two and retains the stride guard. ## Verification - SDK 11.0.100 Codegen and integration tests passed (98 and 16 tests). Regenerated the conformance fixtures and Go benchmark model. - Go 1.22 vet, race and purego suites and all four short fuzz targets passed. - The full Go suites passed on 386, Arm32 and s390x in QEMU 10.0.13 with async preemption enabled. - Rust's related generated fixtures passed the corpus, truncation and mutational fuzz checks. - The [first valid x64 and Arm64 A/B](https://github.com/JasonXuDeveloper/Nino/actions/runs/44339615693) showed sizable gains for padded pairs, byte grids and DateTimeOffset sequences. It also found regressions in small integer and string key checks and some x64 GUID map writes. The last two functional commits address those paths. - The [narrow rerun and noise floor](https://github.com/JasonXuDeveloper/Nino/actions/runs/44347813411) passed on x64 and Arm64. GUID map writes improved by 82–85% on the sampled x64 CPUs and 81% on Neoverse-N2. On Neoverse-N2, the eight-integer and string checks were within 2% by median. Generated codecs use direct calls on the raw-layout fallback. The exported `ReadRaw` and `WriteRaw` helpers still accept caller-supplied callbacks, and scalar/string dispatch keeps its existing cheap type lookup. Composite key field classification is cached. Refs #353 --- _Generated by [Codex](https://openai.com/codex/)_
## Changes - Generate row-major `NinoGrid<TData>` codecs for rectangular arrays of rank 2 to 4. Numeric grids use typed storage, and raw nullable elements retain their slot encoding. - Split the TypeScript runtime into source modules. Npm and nino-gen still ship one runtime file at the existing import paths. - Run the grids, raw nullable slots and newly generated Collections type through the corpus. In the plain number-array fixture, compare the one JavaScript NaN semantically and compare the surrounding bytes exactly. Typed-array fixtures keep their byte checks. ## Verification - SDK 11.0.100 regenerated the fixtures. Codegen passed 98 tests and integration passed 16. - Node, browser simulation and browser without Wasm each passed 862 tests with 96 existing skips and zero failures. - wasm-tools rebuilt the same 1,280-byte module. Rebuilding the bundle produced the same file. - The grid-enabled builds before and after modularization match hot-function bytecode lengths, opcode sequences and TurboFan inlining decisions in all three environments. - [MixedStrings A/B and noise floor](https://github.com/JasonXuDeveloper/Nino/actions/runs/44329792122) placed all three operations within 5% by median on each measured x64 CPU and Neoverse-N2. - `tools/agents.sh --check` Closes #299 Closes #247 Refs #400 --- _Generated by [Codex](https://openai.com/codex/)_
Record the repeatable legacy-threshold gains and the unresolved default fallback control. Keep the standard copy in production. Refs #263
Use the full runner medians and show that the larger write case moves even between identical binaries.
Cargo fmt follows module declarations. Check files loaded through include! explicitly and document both commands for local runs.
Document how to preserve the Rust module and item order for source-only splits, isolate existing optimizations in the baseline, and verify formatting coverage.
The broader writer workload stayed on par under default glibc and overlapped same-revision variation with the forced threshold. Stable-branch backports make the glibc version an unreliable dispatch proxy.
The tested megabyte AVX2 copy did not survive the rotating-input codec comparison. Keep the compiler-fused standard copy and document the matching control.
Keep the bulk copy for matching layouts and use fixed-stride calls on the portable path. Mirror the generated codecs while keeping the callback helpers available to their existing callers. Refs #353
Share a typed duplicate check across generated collections with the same key type. Resolve the comparison metadata at package initialization, and select the primitive-entry comparison from the generic key type. Refs #353 Performance: On sampled GitHub x64 runners, generated eight-element Guid sets took 6–10% less time and eight-entry Guid maps took 5–7% less time. Arm64 and the large-map, integer, and string controls were on par.
Record where generated codecs prepare key metadata and how the primitive entry path selects its comparison.
Record the Arm32 runtime fault reproduced under QEMU 10.0.13 and the retry settings that passed the Go suite.
Keep the per-architecture checks and explain the measured impact of preparing key metadata before decoding.
## Results Keep the standard block copies in Rust, Go, and TypeScript. The runner measurements cover x64 and Arm64, including the historical glibc lower-threshold simulation. - **Rust.** AVX2, AVX-512, and NEON microbenchmarks were followed by counted byte-vector codecs. The isolated AVX2 writer took 19–31% less time for reused, page-aligned 2,113-byte writes on the sampled AMD CPUs under the forced 2,112-byte threshold. The mixed lengths and alignments stayed on par with the default loader. On EPYC 9V74 with the forced threshold, the apparent mixed gains overlapped the same-revision variation. [Isolated writer](https://github.com/JasonXuDeveloper/Nino/actions/runs/44443778134) · [Mixed writer](https://github.com/JasonXuDeveloper/Nino/actions/runs/44447481096) - **Go.** The end-to-end Arm64 reader took 5–9% more time with hot data and 24–26% more with a 64 MiB input rotation at 2–4 KiB. The x64 follow-up at 1 MiB took 17–122% more time on the sampled CPUs with the rotating input. On 9V45, the matching same-revision result moved 1.5%. The stock allocation and copy compile to `runtime.makeslicecopy`. [Arm64 reader](https://github.com/JasonXuDeveloper/Nino/actions/runs/44347813411) · [1 MiB reader](https://github.com/JasonXuDeveloper/Nino/actions/runs/44451141322) - **TypeScript.** A Wasm copy staged through linear memory took 82–339% more time than `TypedArray.set`. Views already in Wasm memory had mixed results. [TypeScript runner comparison](https://github.com/JasonXuDeveloper/Nino/actions/runs/44339615693) The measured changes stay on the benchmark branch. This records which candidates were tested and why the standard paths stay in production. Closes #263 --- _Generated by [Codex](https://openai.com/codex/)_
## Changes - Prepare duplicate-key metadata once per generated Go key type and share it across sets and dictionaries. Eligible composite keys continue to use the reader's seeded, bounded table. - Select the primitive-entry comparer by type width and floating-point shape at compile time. The existing fixed-width map, set, grid, and DateTimeOffset collection paths use their direct codecs. - Follow the generated raw-memory fallback in the hand-written samples, with direct element codec calls. Preserve the exported callback APIs for their existing callers. ## Verification - .NET SDK 11.0.100 Codegen and Integration passed 99 and 16 tests. Regenerated Go fixtures and benchmark model pass. - Go corpus, race, purego, Go 1.22.12 vet and tests, four fuzz targets, and QEMU 386, Arm32, and s390x passed. Arm32 needed the documented async-preemption retry. - x64 and Arm64 disassembly shows the static primitive comparison and direct raw fallbacks. [Runner A/B](https://github.com/JasonXuDeveloper/Nino/actions/runs/44451141322) measured eight-element Guid sets and eight-entry Guid maps taking 6–10% and 5–7% less time on the sampled x64 CPUs. Neoverse-N2 was on par. The 1,024-entry Guid map, scalar, and string controls stayed within 2% by CPU median. The pre-existing Half and DateTime key-equality discrepancies are tracked in #417. Closes #353 --- _Generated by [Codex](https://openai.com/codex/)_
## Changes - Keep the Rust codec files grouped by value kind and include them in their original order in one `impls` module. This preserves the original macro scope and codegen-unit assignment. - Check the included files directly with rustfmt in CI and document the local command. Cargo fmt follows module declarations and skips `include!`. - Keep the fixed-width set writer from #354. ## Verification - Built `compare`, `text`, and `blocks` on macOS Arm64 with `RUSTFLAGS=-Cllvm-args=-align-all-functions=6` from the same checkout path. The flattened control retained current runtime logic, including #354, and the same benchmark sources. After normalizing symbol hashes and addresses, all 10,313 `compare`, 67 `text`, and 428 `blocks` symbols matched, including the timed closures. - Cross-linked the same Linux x64 binaries with Zig and kept the ELF symbol table for normalization. The flattened control matched all 10,327 `compare`, 81 `text`, and 428 `blocks` symbols. Compared with live main on x64, three drop-glue instantiations differed in `compare`. The `text` and `blocks` symbols matched. - Compared separately with current main (`63ef558b`), which already contained the initial split. Normalized code differs in five `compare` symbols and two `blocks` symbols. These are the date constructors, the DateTime decode fallback, and drop glue. Timed closure bodies and `text` match. The earlier [runner A/B](https://github.com/JasonXuDeveloper/Nino/actions/runs/44333395182) put the median shift of the valid DateOnly block-read case within 0.5% on each sampled CPU. - Cargo fmt, direct fragment rustfmt, all-target and all-feature Clippy, the Release workspace with the required corpus, default-feature lib/spec/values, scoped actionlint, and the repository instruction checks passed. Closes #248 --- _Generated by [Codex](https://openai.com/codex/)_
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.
Merges
origin/main(06cbf9a) intofeat/storage-layer. That brings in 62 commits main has gained since the last sync, so the storage layer's final PR into main has fewer conflicts. The merge had no conflicts.What came in:
implscodec files kept in one module through orderedinclude!fragments, and their rustfmt check in CIDirectory.Packages.propsbumps, skills and docsNone of them touches Nino.Core or Nino.Generator. On the .NET side only Nino.Codegen, its tests, the GeneratorBenchmark project and
Directory.Packages.propschange.Checked locally:
dotnet build(0 warnings),Nino.UnitTestson net10.0 (1,233 passed, 1 skipped),tools/agents.sh --check.Generated by Claude Code