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

Port the examples from packed_simd #110

Open
3 of 11 tasks
workingjubilee opened this issue Apr 30, 2021 · 3 comments
Open
3 of 11 tasks

Port the examples from packed_simd #110

workingjubilee opened this issue Apr 30, 2021 · 3 comments
Labels
C-feature-request Category: a feature request, i.e. not implemented / a PR C-tracking-issue Ongoing issue with checkboxes for partial progress and such

Comments

@workingjubilee
Copy link
Member

workingjubilee commented Apr 30, 2021

packed_simd hosts various examples in its repo, featuring classics like

  • Aobench
  • Dot Product
  • Fannkuch Redux
  • Mandelbrot
  • Matrix Inverse
  • N-Body
  • Options Pricing
  • Slice Sum
  • Spectral Norm
  • Stencil
  • Triangle Xform

We've already had users come up with code (in spite of not even being published to crates.io), so obviously we're doing something right in terms of making a decently intuitive API, but we should port some of these to the current API to provide more practical working examples, and also tacitly a bench suite, in this repo or another. That or we should figure out why we're not doing so.

@workingjubilee workingjubilee added C-tracking-issue Ongoing issue with checkboxes for partial progress and such C-feature-request Category: a feature request, i.e. not implemented / a PR labels Apr 30, 2021
@calebzulawski
Copy link
Member

calebzulawski commented Apr 30, 2021

Great idea, definitely a good way to ensure our API is actually usable.

@miguelraz
Copy link
Contributor

Should every example be packaged in a mini-crate? or would a single runnable for Rust Playground be a better idea?

@calebzulawski
Copy link
Member

Cargo supports examples in the examples/ directory, which can be automatically built and tested: https://doc.rust-lang.org/cargo/guide/project-layout.html)

I would put them each in their own file in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: a feature request, i.e. not implemented / a PR C-tracking-issue Ongoing issue with checkboxes for partial progress and such
Projects
None yet
Development

No branches or pull requests

3 participants