rust-lang / rust-lang/portable-simd

Add "common" shuffles

Open
#93 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.1k
Forks
108
Avg merge
22h 53m
Merged PRs (30d)
3

Description

The shuffle API in #62 can handle nearly any hardware shuffle, but it's a bit clumsy to use (and the API requires full const generics).
A few common cases of shuffles should be provided as a simpler API:

  • reverse
  • rotate
  • shift (like rotate but insert 0s)
  • align (or maybe rotate2?) see #78
  • interleave/deinterleave

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the shuffle API described in #62 and the discussion in #78, with particular attention to the proposed align or rotate2 behavior. Determine the intended semantics for shift and align, then verify that the common shuffle API covers the unchecked items in the issue and has appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.