TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Learning SIMD with Rust by Finding Planets (2018)

112 pointsby btashtonover 5 years ago

4 comments

gameswithgoover 5 years ago
You may enjoy my video tutorial on SIMD Intrinsics as well:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4Gs_CA_vm3o" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4Gs_CA_vm3o</a><p>I also use Rust but its perfectly fine for learning about intrinsics in C&#x2F;C++ or .NET as well. I cover some of the fundamental strategies for using them well, how to lay out data in memory, how to deal with branches, etc.
pixelpoetover 5 years ago
&gt; After running benchmarks with all the variants and planets, the improvement is about 9% to 12%.<p>Pretty weak speedup, maybe a straight up n-body implementation would see closer to the 8x theoretical speedup.
评论 #20827733 未加载
qiqitoriover 5 years ago
&gt; AVX functions start with _mm256_<p>I don&#x27;t know anything about Rust, but a nicer word is probably &quot;intrinsics&quot;. They usually compile to a single instruction.
评论 #20828031 未加载
kraphtover 5 years ago
This looks kinda gross to me. Do the rust developers not want to emulate what ipsc and cuda do? Writing intrinsics by hand is not what I expect from a 2019 language.
评论 #20828083 未加载
评论 #20828006 未加载
评论 #20828228 未加载
评论 #20827961 未加载
评论 #20830071 未加载
评论 #20828490 未加载
评论 #20827912 未加载