this post was submitted on 26 Nov 2025
349 points (100.0% liked)

Programmer Humor

27488 readers
1365 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
top 21 comments
sorted by: hot top controversial new old
[–] ns1@feddit.uk 15 points 3 hours ago

At the risk of explaining what everyone here already gets: I like how the bottom picture could literally be a diagram of a 4-way deadlock where the buses are threads of execution and the roundabout exits are object locks.

Whereas in top picture there are no passengers and I'm fairly sure the buses aren't moving. Which probably says something about the state of the documentation

[–] Warl0k3@lemmy.world 39 points 4 hours ago (2 children)

hang on, that first image is everything on a single thread...

[–] SpaceNoodle@lemmy.world 2 points 1 hour ago

Each bus is a timeslice

[–] ZILtoid1991@lemmy.world 20 points 4 hours ago (2 children)

Nah, those are double deckers.

[–] JeeBaiChow@lemmy.world 7 points 3 hours ago

You sure they're not dwords on a single bus?

[–] Warl0k3@lemmy.world 12 points 3 hours ago* (last edited 3 hours ago) (1 children)

Making the word bigger doesn't mean there's more threads per, it just reduces the number of calls to complete some kinds of ops (and something about RAMing busses into each other and... cache locations? idk I'm sleepy)

[–] ZILtoid1991@lemmy.world 3 points 3 hours ago (1 children)

The double deckers are an example of a ready-made solution in the original language's standard library, the lower one is getting multithreading working through the C ABI bindings, using some 3rd party solution, all while multithreading a lot of other tasks in the application.

[–] Warl0k3@lemmy.world 4 points 3 hours ago

Yeah, I can live with that. Well done!

[–] rizzothesmall@sh.itjust.works 33 points 5 hours ago (2 children)

The tasks are all awaiting each other

[–] Warl0k3@lemmy.world 10 points 4 hours ago

"Save us, SuperScheduler! Doctor resource-locking has us trapped!"

[–] Prunebutt@slrpnk.net 3 points 5 hours ago (1 children)
[–] rizzothesmall@sh.itjust.works 12 points 5 hours ago (1 children)

Would you believe me if I said no?

Also, why?

[–] Prunebutt@slrpnk.net 8 points 4 hours ago (1 children)

Because you've got a lot of comments simply describing the images of the posts you comment on. I've seen obvious bot accounts with that behavior.

[–] tetris11@feddit.uk 6 points 3 hours ago

That's because they're using Little Endian in the first picture, and Big Endian in the second picture.

No wonder they've got unpatched race conditions if they used the wrong flag at compile time

[–] JeeBaiChow@lemmy.world 15 points 5 hours ago (1 children)

Serial parralelization...?

[–] atomicbocks@sh.itjust.works 1 points 22 minutes ago

I think that’s when you watch two shows at the same time.

[–] panda_abyss@lemmy.ca 7 points 4 hours ago

All I wanted was to call ‘read’ while I listen on a socket!

Where did it all go so wrong!?

[–] Nomad@infosec.pub 7 points 4 hours ago

That's why they stack the buses instead of linking them.

[–] Codpiece@feddit.uk 5 points 4 hours ago

You didn’t read the documentation correctly. You’ve switched road side.

[–] Gladaed@feddit.org 3 points 4 hours ago

Locky, not lock free!