Skip to content

Proof-of-concept: holy grail of multiversioning - #375

Draft
Shnatsel wants to merge 1 commit into
linebender:mainfrom
Shnatsel:multiversioning-macro
Draft

Proof-of-concept: holy grail of multiversioning#375
Shnatsel wants to merge 1 commit into
linebender:mainfrom
Shnatsel:multiversioning-macro

Conversation

@Shnatsel

@Shnatsel Shnatsel commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This is a proof-of-concept adaptation of https://github.com/Shnatsel/multiversion-research to fearless_simd v1.0 public API.

This is the holy grail of multiversioning because:

  1. It is entirely transparent to the callers. No boilerplate other than #[simd] (probably should be named #[multiversion]), not even a top-level dispatch! is necessary
  2. No overhead when calling a #[simd] function from another #[simd] function

I feel this is too magical for explicit SIMD, but may be the perfect match for autovectorization - it's just https://crates.io/crates/multiversion but better.

This does not require any changes to the fearless_simd crate and can be built on top of it after v1.0

This PoC is entirely implemented by Astra; it is purely for exploring the design space and is not going to be merged as-is.

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.

1 participant