Skip to content

Removed need for generic_const_expr in bitmask #238

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from
Closed

Removed need for generic_const_expr in bitmask #238

wants to merge 2 commits into from

Conversation

jorgecarleitao
Copy link
Contributor

Closes #223

@workingjubilee
Copy link
Member

Problem is: GitHub itself. Cool.
https://www.githubstatus.com/

@calebzulawski
Copy link
Member

I should mention I took a stab at a more complete solution for this in the feature/better-bitmask branch, but was blocked by an unusual const generics issue at the time (no clue if that's still the case)

@calebzulawski
Copy link
Member

I just posted #239 with the changes I was talking about, we can compare these two PRs.

@jorgecarleitao
Copy link
Contributor Author

fwiw, I am fine with any. This is hopefully the last blocking issue forbiding arrow2 from adopting portable-simd. So either PR is fine - I would just like to give this a spin without the major performance regression vs packed_simd.

workingjubilee added a commit that referenced this pull request Feb 26, 2022
Another approach that fixes #223, as an alternative to #238.

This adds the `ToBitMask` trait, which is implemented on a vector for each bitmask type it supports.  This includes all unsigned integers with enough bits to contain it.  The byte array variant has been separated out for now into #246 and still requires `generic_const_exprs`, but the integer variants no longer require it and can make it to nightly.
@workingjubilee
Copy link
Member

Resolved in #239.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make from/to_bitmask not depend on generic_const_exprs
3 participants