8000 Newsletter 3: Ultraviolet · ozkriff/rust-gamedev.github.io@52b23ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 52b23ee

Browse files
committed
Newsletter 3: Ultraviolet
1 parent 24287f2 commit 52b23ee

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

_drafts/newsletter-003.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,31 @@ by the handle with the `Interpolation::Bezier` mode).
610610
<https://twitter.com/wodannson/status/1180871977495617536>
611611
<https://twitter.com/wodannson/status/1179698233737650176>
612612

613-
### ultraviolet
613+
### [ultraviolet]
614614

615-
**TODO**: img (benches?)
615+
![ultraviolet benchmarks table](/assets/newsletter-003/ultraviolet-benches.png)
616616

617-
<https://www.reddit.com/r/rust/comments/dpknd1/ultraviolet_a_crate_to_do_lots_of_linear_algebra>
617+
[ultraviolet] by [@termhn] is a crate to do basic, computer-graphics-related,
618+
linear algebra, but fast, by taking full advantage of [SIMD].
619+
620+
> <...> To do this, it uses an "SoA" ([Structure of Arrays][aos_soa])
621+
> architecture such that each Wec (wide-vec) actually contains the data
622+
> for 4 Vecs and will do any operation on all 4 of the vector 'lanes'
623+
> at the same time.
624+
> Doing this is potentially much (factor of 10) faster than
625+
> an "AoS" ([Array of Structs][aos_soa]) layout,
626+
> as all current Rust linear algebra libraries do, depending on your work load.
627+
> However, algorithms must be carefully architected
628+
> to take full advantage of this, and doing so can be easier said than done,
629+
> especially if your algorithm involves significant branching.
630+
631+
_Discussions:
632+
[/r/rust](https://reddit.com/r/rust/comments/dpknd1/ultraviolet_a_crate_to_do_lots_of_linear_algebra)_
633+
634+
[ultraviolet]: https://github.com/termhn/ultraviolet
635+
[@termhn]: https://twitter.com/termhn
636+
[SIMD]: https://en.wikipedia.org/wiki/SIMD
637+
[aos_soa]: https://en.wikipedia.org/wiki/AoS_and_SoA
618638

619639
### This month in rustsim #8 (August − September - October 2019)
620640

70.1 KB
Loading

0 commit comments

Comments
 (0)
0