Skip to content

Document the motivation for custom transmute wrappers#243

Merged
Shnatsel merged 4 commits into
linebender:mainfrom
Shnatsel:bytemuck-at-home-motivation
Jun 16, 2026
Merged

Document the motivation for custom transmute wrappers#243
Shnatsel merged 4 commits into
linebender:mainfrom
Shnatsel:bytemuck-at-home-motivation

Conversation

@Shnatsel

Copy link
Copy Markdown
Contributor

They've grown to be more than just 'bytemuck at home'

Shnatsel added 3 commits June 16, 2026 20:58
They've grown to be more than just 'bytemuck at home'
well at least you know it's not AI slop
Comment thread fearless_simd/src/transmute.rs Outdated
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! We have bytemuck at home
//! This all serves a small set of checked transmute and cast functions.

@LaurenzV LaurenzV Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think it would be better to keep a concise top-title (like "Transmuting between SIMD types and wrappers" and then start with the description in the next paragraph.

@Shnatsel Shnatsel enabled auto-merge June 16, 2026 20:29
@Shnatsel Shnatsel added this pull request to the merge queue Jun 16, 2026
Merged via the queue into linebender:main with commit 6d9f36f Jun 16, 2026
22 checks passed
@Shnatsel Shnatsel deleted the bytemuck-at-home-motivation branch June 16, 2026 20:34
Comment on lines +10 to +11
//! Unlike bytemuck, this verifies that sizes match at compile time,
//! so we won't accidentally ship always-panicking code even if it's not covered by tests.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As I noted in #232, with bytemuck's 'must' functionality, this isn't really the case.

Shnatsel added a commit to Shnatsel/fearless_simd that referenced this pull request Jun 17, 2026
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.

3 participants