Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

packed_simd versus portable-simd? (This one is now std::simd!) #170

Open
fzyzcjy opened this issue Sep 29, 2021 · 7 comments
Open

packed_simd versus portable-simd? (This one is now std::simd!) #170

fzyzcjy opened this issue Sep 29, 2021 · 7 comments

Comments

@fzyzcjy
Copy link

fzyzcjy commented Sep 29, 2021

Hi thanks for the Rust language and the two libraries! I wonder which one should I use now? They seems to have similar features and one even links to the other.

@Lokathor
Copy link
Contributor

The intent is to move to portable-simd. It's "soon" going to be in the standard library in Nightly even.

packed_simd is the legacy API that is no longer developed.

@fzyzcjy
Copy link
Author

fzyzcjy commented Sep 29, 2021

Ok so I guess I should stick to portable-simd. Thanks!

@workingjubilee workingjubilee changed the title Difference between packed_simd and portable-simd, and which one should I use? Difference between packed_simd and portable-simd, and which one should I use? (Yes, this one.) Sep 29, 2021
@workingjubilee workingjubilee pinned this issue Sep 29, 2021
@workingjubilee
Copy link
Contributor

This crate is now no longer truly a crate: It is a module in nightly, and can be used via

#![feature(portable_simd)]
use std::simd::f32x4;

@workingjubilee workingjubilee changed the title Difference between packed_simd and portable-simd, and which one should I use? (Yes, this one.) Difference between packed_simd and portable-simd? (This one is now std::simd!) Nov 16, 2021
@workingjubilee workingjubilee changed the title Difference between packed_simd and portable-simd? (This one is now std::simd!) packed_simd versus portable-simd? (This one is now std::simd!) Nov 16, 2021
@fzyzcjy
Copy link
Author

fzyzcjy commented Nov 16, 2021

@workingjubilee Congrats! I wonder whether it is useable in production environments? (despite the name "nightly" - since I know sometimes a nightly feature is quite stable)

@calebzulawski
Copy link
Member

I would suggest against it, but I don't think it would be any worse than using packed_simd. The API is subject to change, though.

@workingjubilee
Copy link
Contributor

...Yeah uh... I appreciate your vote of confidence, but I would Probably Not. 😄
It's probably fine for simple integer arithmetic, but I can't say anything about more than that.

@fzyzcjy
Copy link
Author

fzyzcjy commented Nov 16, 2021

Thank you!

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

No branches or pull requests

4 participants