-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static data 3: static-aware C & C++ SDKs #5537
Merged
Merged
Conversation
This file contains 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
teh-cmc
added
do-not-merge
Do not merge this PR
🌊 C++ API
C/C++ API specific
include in changelog
🔩 data model
labels
Mar 15, 2024
teh-cmc
changed the title
Static data 3: static-aware C & C++ SDKs
Static data 4: static-aware C & C++ SDKs
Mar 15, 2024
teh-cmc
changed the title
Static data 4: static-aware C & C++ SDKs
Static data 3: static-aware C & C++ SDKs
Mar 15, 2024
This was referenced Mar 15, 2024
teh-cmc
force-pushed
the
cmc/static_1_store
branch
from
March 15, 2024 16:52
6f14a59
to
e23c89a
Compare
teh-cmc
force-pushed
the
cmc/static_3_sdk_cpp
branch
2 times, most recently
from
March 15, 2024 17:07
a383c29
to
a43f291
Compare
teh-cmc
force-pushed
the
cmc/static_1_store
branch
2 times, most recently
from
March 18, 2024 10:05
42c201b
to
5b699f2
Compare
teh-cmc
force-pushed
the
cmc/static_3_sdk_cpp
branch
from
March 18, 2024 10:22
a43f291
to
6cc9bb3
Compare
teh-cmc
force-pushed
the
cmc/static_3_sdk_cpp
branch
from
March 18, 2024 10:25
6cc9bb3
to
b86592f
Compare
teh-cmc
force-pushed
the
cmc/static_2_sdk_py
branch
from
March 19, 2024 16:28
4b5b04d
to
7d9d8d3
Compare
teh-cmc
force-pushed
the
cmc/static_3_sdk_cpp
branch
from
March 19, 2024 16:29
b86592f
to
7d9e4be
Compare
emilk
approved these changes
Mar 21, 2024
crates/rerun_c/src/lib.rs
Outdated
@@ -732,15 +732,15 @@ fn rr_log_file_from_path_impl( | |||
stream: CRecordingStream, | |||
filepath: CStringView, | |||
entity_path_prefix: CStringView, | |||
timeless: bool, | |||
statically: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we call this static_
instead here and everywhere. A suffix _
would communicate to me that it's only there to prevent a keywaord clash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
teh-cmc
added a commit
that referenced
this pull request
Apr 5, 2024
_Commits make no sense, review the final changelog directly._ _All the interesting bits happen in `re_log_types/time_point` & `re_sdk` -- everything else is just change propagation._ - `TimeInt` now ranges from `i64:MIN + 1` to `i64::MAX`. - `TimeInt::STATIC`, which takes the place of the now illegal `TimeInt(i64::MIN)`, is now _the only way_ of identifying static data. - It is impossible to create `TimeInt::STATIC` inadvertently -- users of the SDK cannot set the clock to that value. - Similarly, it is impossible to create a `TimeRange`, a `TimePoint`, a `LatestAtQuery` or a `RangeQuery` that includes `TimeInt::STATIC`. If static data exists, that's what will be returned, unconditionally -- there's no such thing as querying for it explicitely. - `TimePoint::timeless` is gone -- we already have `TimePoint::default` that we use all over the place, we don't need two ways of doing the same thing. There still exists a logical mapping between an empty `TimePoint` and static data, as that is how one represents static data on the wire -- terminology wise: "a timeless timepoint results in static data". Similar to the "ensure `RowId`s are unique" refactor from back when, this seemingly tiny change on the surface will vastly simplify downstream code that finally has some invariants to rely on. - Fixes #4832 - Related to #5264 --- Part of a PR series that removes the concept of timeless data in favor of the much simpler concept of static data: - #5534 - #5535 - #5536 - #5537 - #5540
teh-cmc
added a commit
that referenced
this pull request
Apr 5, 2024
Introduces the concept of static data into the data APIs. Static data is a on a per-entity per-component basis. If it exists, it unconditionally shadows any temporal data of the same type. It is never garbage collected. When static data is returned, it is indicated via `TimeInt::STATIC`. The terminology has been normalized all over the place: data is either static or temporal, and nothing else. Static data cannot have more than one cell per-entity per-component. Trying to write more than one cells will trigger last-write-wins semantics, as defined by `RowId` ordering. Timeless fallbacks just don't exist anymore, which simplifies out _a lot_ of code in the datastore and query cache. Note: static data is in many subtle ways incompatible with our legacy InstanceKey-based model, which results in a couple hacks in this PR. Those hacks will be gone as soon as the new data APIs land and instance keys go away. - Fixes #5264 - Fixes #2074 - Fixes #5447 - Fixes #1766 --- Part of a PR series that removes the concept of timeless data in favor of the much simpler concept of static data: - #5534 - #5535 - #5536 - #5537 - #5540
teh-cmc
force-pushed
the
cmc/static_2_sdk_py
branch
from
April 5, 2024 15:16
7d9d8d3
to
738ee99
Compare
teh-cmc
force-pushed
the
cmc/static_3_sdk_cpp
branch
from
April 5, 2024 15:26
7d9e4be
to
1aceb67
Compare
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.
Just exposing all the new static stuff to the C & C++ SDKs, and trying to kill the "timeless" terminology in the process.
Part of a PR series that removes the concept of timeless data in favor of the much simpler concept of static data:
TimeInt
#5534Checklist
main
build: app.rerun.ionightly
build: app.rerun.io