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

Codegen'd Rust/Arrow: wip buffer #2520

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Jun 26, 2023

ignore this, it's a trap


PR Build Summary: https://build.rerun.io/pr/2520

Docs preview: https://rerun.io/preview/0421e0d/docs
Examples preview: https://rerun.io/preview/0421e0d/examples

@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch 3 times, most recently from 4c68bbd to 730ef29 Compare June 28, 2023 09:15
@teh-cmc teh-cmc changed the title Codegen'd Rust/Arrow (de)ser 4: autogenerated serialization routines Codegen'd Rust/Arrow: wip buffer Jun 28, 2023
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch from 730ef29 to c727698 Compare June 28, 2023 12:34
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch from c727698 to 0421e0d Compare June 28, 2023 16:47
@teh-cmc teh-cmc closed this Jun 28, 2023
emilk pushed a commit that referenced this pull request Jun 29, 2023
…2484)

**Best reviewed on a commit-by-commit basis; in particular the `rerun
codegen` commit is nothing but generated code.**

This PR upgrades the Rust code generator to make use of actual
`TokenStream`s (i.e. `syn` & `quote`) rather than manipulating raw
strings; because what's coming in the following PRs puts us way past the
complexity threshold for using simple strings.

Interestingly, while `syn` & `quote` were obviously designed with Rust
in mind, they aren't specific to Rust so much as they are made to work
with bracket-base languages.
I.e. the Rust code generator becomes a nice starting point for a C or
C++ one.

---

- #2484
- #2485 
- #2487 
- #2520 

---

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2484

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/cf52fbc/docs
Examples preview: https://rerun.io/preview/cf52fbc/examples
<!-- pr-link-docs:end -->
emilk pushed a commit that referenced this pull request Jun 29, 2023
**Best reviewed on a commit-by-commit basis; in particular the `rerun
codegen` commit is nothing but generated code.**

This PR updates (or rather, downdates?) the IDL definitions of
`Points2D` and its components to make sure they match the legacy ones
(e.g. `Point2D` is back to being a `struct { x, y }` rather than a
`[f32; 2]`).

We'll revert that once we're done with the backporting/migration and get
rid of the legacy stuff.

UPDATE: This now also includes the `attr.rerun.legacy_fqname` attribute,
which does what you think it does.

---

- #2484
- #2485 
- #2487 
- #2520 

---

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2485

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/41e265f/docs
Examples preview: https://rerun.io/preview/41e265f/examples
<!-- pr-link-docs:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant