Repository navigation
feat(typescript): support grids and modularize the runtime - #401
Merged
Merged
Conversation
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.
Assert that the class decoded for the reuse test is present before inspecting its grid.
The runtime A/B workflow generates and runs fixtures with each revision. Include both harnesses when checking whether an A/B measures a change.
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.
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 module lives in src/runtime/ like the others; the map listed it one level up.
JasonXuDeveloper
added a commit
that referenced
this pull request
Nov 19, 2026
Merges `origin/main` (06cbf9a) into `feat/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: - #401: TypeScript grids, and the runtime split into modules - #414: skills record why Rust, Go and TypeScript keep their standard block copies - #418: Go runtime and nino-gen prepare duplicate-key checks once per key type - #419: Rust `impls` codec files kept in one module through ordered `include!` fragments, and their rustfmt check in CI - the other main commits since the last sync: Go, Rust and TypeScript runtimes, nino-gen templates and fixtures, `Directory.Packages.props` bumps, skills and docs None of them touches Nino.Core or Nino.Generator. On the .NET side only Nino.Codegen, its tests, the GeneratorBenchmark project and `Directory.Packages.props` change. Checked locally: `dotnet build` (0 warnings), `Nino.UnitTests` on net10.0 (1,233 passed, 1 skipped), `tools/agents.sh --check`. --- _Generated by [Claude Code](https://claude.ai/code)_
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.
Changes
NinoGrid<TData>codecs for rectangular arrays of rank 2 to 4. Numeric grids use typed storage, and raw nullable elements retain their slot encoding.Verification
tools/agents.sh --checkCloses #299
Closes #247
Refs #400
Generated by Codex