Skip to content

Add native token-stream writer and readable maps (#59627) - #59627

Open
javache wants to merge 1 commit into
react:mainfrom
javache:export-D128313426
Open

javache wants to merge 1 commit into
react:mainfrom
javache:export-D128313426

Conversation

@javache

@javache javache commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Add paired native writer and typed Java readers for structured data transfers without a JavaScript runtime. One document shares its name/value string table across values, with stable ranges and independent out-of-order map and array access.

The writer accepts folly::dynamic by reference, validates Unicode, preserves native numbers and rolls back failed appends. The reader uses an indexed shared context without eagerly materialising values. Both support explicit ownership transfer, and generated C++ API snapshots accompany the native API. Mounting transport integration remains separate.

Changelog: [General][Added] - Add native token-stream serialization and typed readable maps

Differential Revision: D128313426

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2026
@meta-codesync

meta-codesync Bot commented Oct 29, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D128313426.

Summary:

Add paired native writer and typed Java readers for structured data transfers without a JavaScript runtime. One document shares its name/value string table across values, with stable ranges and independent out-of-order map and array access.

The writer accepts `folly::dynamic` by reference, validates Unicode, preserves native numbers and rolls back failed appends. The reader uses an indexed shared context without eagerly materialising values. Both support explicit ownership transfer, and generated C++ API snapshots accompany the native API. Mounting transport integration remains separate.

Changelog: [General][Added] - Add native token-stream serialization and typed readable maps

Differential Revision: D128313426
@meta-codesync meta-codesync Bot changed the title Add token-stream readable maps with a shared context Add native token-stream writer and readable maps (#59627) Nov 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant