Safely access Numpy v2 StringDType array data
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 141
- Avg merge
- 16m
- Merged PRs (30d)
- 3
Description
Numpy v2 added a new variable-width string data type. This is much more performant than variable-width string arrays in Numpy v1 because those stored a Python str for every element.
It would be great to have a safe way to access this data. It looks like currently the only APIs are in the unsafe npyffi module.
cc @ngoldbaum
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with NumPy's variable-width StringDType documentation and the unsafe APIs in the npyffi module mentioned in the issue. Determine the safe access API needed for StringDType array data, then verify that callers can use it without relying directly on npyffi.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, rust
- Domain
- api, data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100