Skip to content

Conversation

@jennybc
Copy link
Member

@jennybc jennybc commented Dec 5, 2025

Closes #561

This is the last move to get into C API compliance 🎉

@jennybc jennybc requested a review from DavisVaughan December 5, 2025 20:59
@jennybc
Copy link
Member Author

jennybc commented Dec 5, 2025

@DavisVaughan I don't think there's anything that interesting to see here, just recruiting a fellow human.

@jennybc
Copy link
Member Author

jennybc commented Dec 5, 2025

I guess there is some question about where to put the backport. It's not really about altrep but that's where I stuck it.

Comment on lines 102 to 107
cpp11::writable::list res(num_cols + add_filename);
cpp11::writable::list res(
R_allocResizableVector(VECSXP, num_cols + add_filename));

cpp11::writable::strings res_nms(num_cols + add_filename);
cpp11::writable::strings res_nms(
R_allocResizableVector(STRSXP, num_cols + add_filename));
Copy link
Member

Choose a reason for hiding this comment

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

I am honestly quite nervous about what putting these in a cpp11::writable::list or cpp11::writable::strings will do. It...probably...works fine, but this is so experimental it is hard to know.

Would it be possible to put them in a cpp11::sexp instead? I would feel more comfortable with that even though it will require more code changes below, because you'll need SET_VECTOR_ELT() and friends.

@DavisVaughan
Copy link
Member

The main thing I am worried about is the fact that this is still so up in the air. Luke can change it at any time right now, forcing another release on you.

@jennybc
Copy link
Member Author

jennybc commented Dec 10, 2025

@DavisVaughan Will you take a quick glance just to make sure that I interpreted your feedback correctly? I also decided to move the (updated) backports into columns.h, since that's the only place they are used.

@jennybc jennybc merged commit 6b71045 into main Dec 11, 2025
16 checks passed
@jennybc jennybc deleted the moar-c-api-compliance branch December 11, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C API compliance

3 participants