Skip to content

Add C++ Custom Component example#4309

Merged
Wumpf merged 6 commits intomainfrom
andreas/cpp/custom-component
Nov 23, 2023
Merged

Add C++ Custom Component example#4309
Wumpf merged 6 commits intomainfrom
andreas/cpp/custom-component

Conversation

@Wumpf
Copy link
Copy Markdown
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 sdk-cpp C/C++ API specific include in changelog labels Nov 22, 2023
@nikolausWest
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
@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

examples Issues relating to the Rerun examples include in changelog 🚜 refactor Change the code, not the functionality sdk-cpp C/C++ API specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants