programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
arendjr to RustEnglish · 5 months ago

Unnecessary Optimization in Rust: Hamming Distances, SIMD, and Auto-Vectorization

emschwartz.me

external-link
message-square
3
link
fedilink
41
external-link

Unnecessary Optimization in Rust: Hamming Distances, SIMD, and Auto-Vectorization

emschwartz.me

arendjr to RustEnglish · 5 months ago
message-square
3
link
fedilink
If you're developing an application and find yourself running a benchmark whose results are measured in nanoseconds... you should probably stop and get back ...
alert-triangle
You must log in or register to comment.
  • Solon@cwb.social
    link
    fedilink
    arrow-up
    17
    ·
    5 months ago

    That was satisfying. I was expecting a hundred lines of hand-tuned code. Rust rocks!

    • nik9000
      link
      fedilink
      arrow-up
      7
      ·
      5 months ago

      Zero cost abstractions are a hell of a thing.

  • BlackRoseAmongThorns@slrpnk.net
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    Refreshing how optimized rust code is simple, coming from embedded in C, this is just * chef’s kiss *

Rust

rust

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 40 users / day
  • 180 users / week
  • 398 users / month
  • 2.9K users / 6 months
  • 1.47K local subscribers
  • 6.92K subscribers
  • 1K Posts
  • 4.74K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • EdTheLegendary
  • kahnclusions
  • torcherist
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org