Skip to content

feat(encoding): Add initial version of ALP encoding implementation for handling floats (#680)#680

Open
srsuryadev wants to merge 1 commit into
facebookincubator:mainfrom
srsuryadev:export-D100475601
Open

feat(encoding): Add initial version of ALP encoding implementation for handling floats (#680)#680
srsuryadev wants to merge 1 commit into
facebookincubator:mainfrom
srsuryadev:export-D100475601

Conversation

@srsuryadev
Copy link
Copy Markdown
Contributor

@srsuryadev srsuryadev commented Apr 28, 2026

Summary:

Add the ALP (Adaptive Lossless floating-Point) encoding implementation and tests. This encoding was registered in the previous commit; this commit adds the actual implementation

We need this for floating point values for handling tensors

files:

  • ALPEncoding.h: Full implementation with encode/decode, skip, reset, readWithVisitor
  • EncodingIdentifier.h: Nested encoding identifiers for ALP sub-streams (EncodedValues, ExceptionIndices, ExceptionValues)
  • ALPEncodingTest.cpp: 7 test cases x 2 types (float, double) covering limited-precision integers, decimal values, prices, constants, exceptions, skip+materialize, and reset+reread

Will

Differential Revision: D100475601

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 28, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 28, 2026

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

srsuryadev added a commit to srsuryadev/nimble that referenced this pull request Apr 28, 2026
…for handling floats (facebookincubator#680)

Summary:
Pull Request resolved: facebookincubator#680

Add the ALP (Adaptive Lossless floating-Point) encoding implementation and tests. This encoding was registered in the previous commit; this commit adds the actual implementation

We need this for floating point values for handling tensors

files:

- ALPEncoding.h: Full implementation with encode/decode, skip, reset, readWithVisitor
- EncodingIdentifier.h: Nested encoding identifiers for ALP sub-streams (EncodedValues, ExceptionIndices, ExceptionValues)
- ALPEncodingTest.cpp: 7 test cases x 2 types (float, double) covering limited-precision integers, decimal values, prices, constants, exceptions, skip+materialize, and reset+reread

Will

Differential Revision: D100475601
@meta-codesync meta-codesync Bot changed the title feat(encoding): Add "initial version" of ALP encoding implementation for handling floats feat(encoding): Add "initial version" of ALP encoding implementation for handling floats (#680) Apr 28, 2026
srsuryadev added a commit to srsuryadev/nimble that referenced this pull request May 4, 2026
…for handling floats (facebookincubator#680)

Summary:
Pull Request resolved: facebookincubator#680

Add the ALP (Adaptive Lossless floating-Point) encoding implementation and tests. This encoding was registered in the previous commit; this commit adds the actual implementation

We need this for floating point values for handling tensors

files:

- ALPEncoding.h: Full implementation with encode/decode, skip, reset, readWithVisitor
- EncodingIdentifier.h: Nested encoding identifiers for ALP sub-streams (EncodedValues, ExceptionIndices, ExceptionValues)
- ALPEncodingTest.cpp: 7 test cases x 2 types (float, double) covering limited-precision integers, decimal values, prices, constants, exceptions, skip+materialize, and reset+reread

Will

Differential Revision: D100475601
@srsuryadev srsuryadev force-pushed the export-D100475601 branch from 1c28891 to 454d66b Compare May 4, 2026 22:16
srsuryadev added a commit to srsuryadev/nimble that referenced this pull request May 4, 2026
…for handling floats (facebookincubator#680)

Summary:
Pull Request resolved: facebookincubator#680

Add the ALP (Adaptive Lossless floating-Point) encoding implementation and tests. This encoding was registered in the previous commit; this commit adds the actual implementation

We need this for floating point values for handling tensors

files:

- ALPEncoding.h: Full implementation with encode/decode, skip, reset, readWithVisitor
- EncodingIdentifier.h: Nested encoding identifiers for ALP sub-streams (EncodedValues, ExceptionIndices, ExceptionValues)
- ALPEncodingTest.cpp: 7 test cases x 2 types (float, double) covering limited-precision integers, decimal values, prices, constants, exceptions, skip+materialize, and reset+reread

Will

Differential Revision: D100475601
@srsuryadev srsuryadev force-pushed the export-D100475601 branch from 454d66b to bd8ffaf Compare May 4, 2026 22:22
srsuryadev added a commit to srsuryadev/nimble that referenced this pull request May 4, 2026
…for handling floats (facebookincubator#680)

Summary:
Pull Request resolved: facebookincubator#680

Add the ALP (Adaptive Lossless floating-Point) encoding implementation and tests. This encoding was registered in the previous commit; this commit adds the actual implementation

We need this for floating point values for handling tensors

files:

- ALPEncoding.h: Full implementation with encode/decode, skip, reset, readWithVisitor
- EncodingIdentifier.h: Nested encoding identifiers for ALP sub-streams (EncodedValues, ExceptionIndices, ExceptionValues)
- ALPEncodingTest.cpp: 7 test cases x 2 types (float, double) covering limited-precision integers, decimal values, prices, constants, exceptions, skip+materialize, and reset+reread

Will

Differential Revision: D100475601
@srsuryadev srsuryadev force-pushed the export-D100475601 branch from bd8ffaf to 09cc18c Compare May 4, 2026 22:29
…r handling floats (facebookincubator#680)

Summary:

Add the ALP (Adaptive Lossless floating-Point) encoding implementation and tests. This encoding was registered in the previous commit; this commit adds the actual implementation 

We need this for floating point values for handling tensors

files:

- ALPEncoding.h: Full implementation with encode/decode, skip, reset, readWithVisitor
- EncodingIdentifier.h: Nested encoding identifiers for ALP sub-streams (EncodedValues, ExceptionIndices, ExceptionValues)
- ALPEncodingTest.cpp: 7 test cases x 2 types (float, double) covering limited-precision integers, decimal values, prices, constants, exceptions, skip+materialize, and reset+reread



Will

Differential Revision: D100475601
@meta-codesync meta-codesync Bot changed the title feat(encoding): Add "initial version" of ALP encoding implementation for handling floats (#680) feat(encoding): Add initial version of ALP encoding implementation for handling floats (#680) May 12, 2026
@srsuryadev srsuryadev force-pushed the export-D100475601 branch from 09cc18c to 7c48dc9 Compare May 12, 2026 08:03
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 Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant