7

lane -> element for `core::simd::Simd` by workingjubilee · Pull Request #338...

 1 year ago
source link: https://github.com/rust-lang/portable-simd/pull/338
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Conversation

Contributor

A while ago we began saying T, N instead of T, LANES in reference to Simd. At some point that leaked in to us checking in code with const N: usize. After a while, we had a discussion and agreed that "lanes", while common, is unnecessary jargon for Rust learners who aren't familiar with SIMD, and is fully interchangeable with terms for arrays like element and index.

But we never acted on that. Let's update the main type's docs, at least. VL has been proposed here because Simd appears beside [T; N] often, so getting ahead on assigning a name to Simd's specific N may help? The example tweaks enable removing a slated-for-removal nightly fn.

I have the rest of this as it would go across the rest of the module's API docs waiting in the wings, but I figured that any kibitzing over how this should be done should be handled on Simd's docs because it's pretty procedurally applied elsewhere. There's basically "how we talk about Simd" and "how we talk about Mask" as the two major points of interest, so once both of those are done, and they can be mostly-separate discussions, it's robotic.

scottmcm reacted with heart emoji

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK