Skip to content
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

Add C++ Custom Component example #4309

Merged
merged 6 commits into from
Nov 23, 2023
Merged

Add C++ Custom Component example #4309

merged 6 commits into from
Nov 23, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Nov 22, 2023

What

& refactor rerun::Loggable to be only producing an the arrow::Array.

This further aligns Rust and C++ apis which can be best seen in the new example which looks very similar to its rust counterpart \o/

DataCell took over part of the job that rerun::Loggable had so far: type registration and putting together the DataCell - to_data_cell got renamed to to_arrow for this purpose. Everything else after that just clicked into place :).

Did a few manual runs of the log benchmark to ensure that this didn't regress anything.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@Wumpf Wumpf added examples Issues relating to the Rerun examples 🚜 refactor Change the code, not the functionality 🌊 C++ API C/C++ API specific include in changelog labels Nov 22, 2023
@nikolausWest
Copy link
Member

This looks really nice! Great job!

Base automatically changed from andreas/cpp/loggable-trait to main November 23, 2023 08:42
@Wumpf Wumpf force-pushed the andreas/cpp/custom-component branch from 49f4f9e to c5f807a Compare November 23, 2023 08:43
@teh-cmc teh-cmc self-requested a review November 23, 2023 10:50
Copy link
Member

@teh-cmc teh-cmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, looks great

@Wumpf Wumpf merged commit 78f3358 into main Nov 23, 2023
42 checks passed
@Wumpf Wumpf deleted the andreas/cpp/custom-component branch November 23, 2023 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌊 C++ API C/C++ API specific examples Issues relating to the Rerun examples include in changelog 🚜 refactor Change the code, not the functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C++: Add standalone user-defined archetype+component example
3 participants