programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lysdexic to ProgrammingEnglish · 2 years ago

Push Ifs Up And Fors Down

matklad.github.io

external-link
message-square
22
link
fedilink
  • cross-posted to:
  • [email protected]
50
external-link

Push Ifs Up And Fors Down

matklad.github.io

lysdexic to ProgrammingEnglish · 2 years ago
message-square
22
link
fedilink
  • cross-posted to:
  • [email protected]
A short note on two related rules of thumb.
  • Lmaydev
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    2 years ago

    They’re talking about moving the calculation of the if condition outside of the loop. Which the original commenter mentioned. https://en.m.wikipedia.org/wiki/Loop-invariant_code_motion

    You are the one that brought up dead code elimination.

Programming

programming

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 main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



Visibility: Public
globe

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

  • 578 users / day
  • 1.87K users / week
  • 3.4K users / month
  • 7.48K users / 6 months
  • 2.73K local subscribers
  • 20.3K subscribers
  • 2.21K Posts
  • 35.7K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • MaungaHikoi@lemmy.nz
  • UlrikHD
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org