PLG Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
chrs@programming.dev to Rust@programming.devEnglish · 1 year ago

"Clean" Code, Horrible Performance in Rust

chrs.dev

external-link
message-square
20
link
fedilink
55
external-link

"Clean" Code, Horrible Performance in Rust

chrs.dev

chrs@programming.dev to Rust@programming.devEnglish · 1 year ago
message-square
20
link
fedilink
I was just recently going through some old episodes from Software Engineering Radio when I came across this one episode featuring Casey Muratori, where he goes through some of his thoughts around his video from February 2023, titled "‘Clean’ Code, Horrible Performance". I was actually already aware of the video by this time, but listening through the episode gave me an itch to see these concepts in my reality, experiment them by myself.
  • onlinepersona@programming.devBanned
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    8 months ago

    Removed by mod

    • arendjr@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      I think they meant using for accumulating, like this:

      shapes.iter().map(Shape::area).sum()
      
      • Turun@feddit.de
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Yes. That’s what I meant.

        Though I heavily expect the rust compiler to produce identical assembly for both types of iteration.

      • onlinepersona@programming.devBanned
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        8 months ago

        Removed by mod

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          1 year ago

          Anti Commercial AI thingy

          Off-topic, but does that actually work? I would assume OpenAI would just ignore it and you’d have to prove that they did so.

          • onlinepersona@programming.devBanned
            link
            fedilink
            English
            arrow-up
            5
            ·
            edit-2
            8 months ago

            Removed by mod

            • sugar_in_your_tea@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              Maybe I’ll join you. :)

              • onlinepersona@programming.devBanned
                link
                fedilink
                English
                arrow-up
                3
                ·
                edit-2
                8 months ago

                Removed by mod

                • sugar_in_your_tea@sh.itjust.works
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  1 year ago

                  I’m on Wayland, but I’m sure I can figure something out.

                  I do most of my lemmy-ing on mobile, so I’ll probably make a bot to auto-edit my posts or something.

                  • onlinepersona@programming.devBanned
                    link
                    fedilink
                    English
                    arrow-up
                    3
                    ·
                    edit-2
                    8 months ago

                    Removed by mod

Rust@programming.dev

rust@programming.dev

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: !rust@programming.dev

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

Wormhole

!performance@programming.dev

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.

  • 15 users / day
  • 85 users / week
  • 254 users / month
  • 2.34K users / 6 months
  • 1 local subscriber
  • 7.13K subscribers
  • 921 Posts
  • 3.87K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • kahnclusions@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org