feat(encoding): Add initial version of ALP encoding implementation for handling floats (#680)#680
Open
srsuryadev wants to merge 1 commit into
Open
Conversation
|
@srsuryadev has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100475601. |
d1cbf0a to
a40d557
Compare
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
a40d557 to
1c28891
Compare
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
1c28891 to
454d66b
Compare
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
454d66b to
bd8ffaf
Compare
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
bd8ffaf to
09cc18c
Compare
…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
09cc18c to
7c48dc9
Compare
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.
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:
Will
Differential Revision: D100475601