650
you are viewing a single comment's thread
view the rest of the comments
[-] Hirom@beehaw.org 31 points 2 weeks ago

The compiler will optimize it anyway. /s

[-] Dumhuvud@programming.dev 17 points 2 weeks ago* (last edited 2 weeks ago)

You jest, but you aren't wrong. At least if we are talking about C, C++ or Rust. https://godbolt.org/z/oPPfdfcf5

.NET compiler is weak when it comes to optimizing your code; I assume Go's is as bad.

[-] yggstyle@lemmy.world 4 points 2 weeks ago

Technically yes... But I think he was more making the excuse for the gore "from the goresmith's perspective."

And I'm not sure if the compiler in any language would change a random check function... The others are a possibility.

load more comments (5 replies)
this post was submitted on 13 Dec 2025
650 points (97.7% liked)

Programmer Humor

28098 readers
1959 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS