this post was submitted on 12 Feb 2024
1142 points (99.1% liked)

Programmer Humor

38016 readers
138 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] PM_ME_VINTAGE_30S@lemmy.sdf.org 21 points 2 years ago (5 children)

What are you doing in assembly?

[–] herrvogel@lemmy.world 66 points 2 years ago (2 children)

Manually optimizing the code I wrote in C, so that it runs noticeably slower and has all sorts of stupid bugs that weren't there before. All in a good night's work.

[–] Coreidan@lemmy.world 7 points 2 years ago (3 children)

That doesn’t sound like optimization.

[–] Freesoftwareenjoyer@lemmy.world 17 points 2 years ago (1 children)

No worries, he can optimize it later.

[–] TheGreenGolem@lemmy.dbzer0.com 13 points 2 years ago (1 children)

Put a refactor ticket in the backlog. We'll get to it eventually, right?

[–] Freesoftwareenjoyer@lemmy.world 13 points 2 years ago

// TODO: fix this code

[–] herrvogel@lemmy.world 9 points 2 years ago

To you, maybe.

[–] Hellstormy@lemmy.world 5 points 2 years ago

It's just reverse optimizing!

[–] marcos@lemmy.world 6 points 2 years ago

Well, I guess it's either writing a device driver or that.

And the device driver will always end-up with most code in C or Rust.

[–] ikidd@lemmy.world 40 points 2 years ago
[–] guiguinofake@sh.itjust.works 7 points 2 years ago

Pretending I was born 40 years earlier

[–] jol@discuss.tchncs.de 6 points 2 years ago
[–] embed_me@programming.dev 2 points 2 years ago

Doing vector operations because the MCU vendor didn't provide APIs for it.

(did not actually do that but was preparing to before we came to our senses and ditched that MCU)