this post was submitted on 26 Nov 2025
655 points (99.4% liked)

Programmer Humor

27534 readers
203 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 36 comments
sorted by: hot top controversial new old
[–] Warl0k3@lemmy.world 101 points 3 days ago (3 children)

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

[–] ZILtoid1991@lemmy.world 48 points 3 days ago (4 children)

Nah, those are double deckers.

[–] Warl0k3@lemmy.world 26 points 2 days ago* (last edited 2 days 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 8 points 2 days ago (2 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 5 points 2 days ago

Yeah, I can live with that. Well done!

[–] ozymandias@lemmy.dbzer0.com 3 points 2 days ago

nah, then each bus’s beginning and end would be restarting the whole program… the first picture should be a five lane freeway at rush hour

[–] JeeBaiChow@lemmy.world 10 points 2 days ago

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

[–] Ajen@sh.itjust.works 4 points 2 days ago

Both decks of the bus follow the same [code] path. That's a lot more like increasing the buffer size.

[–] sunbeam60@feddit.uk 2 points 2 days ago
[–] Harvey656@lemmy.world 7 points 2 days ago

We've been swindled, perhaps even bamboozled!

[–] SpaceNoodle@lemmy.world 2 points 2 days ago

Each bus is a timeslice

[–] rizzothesmall@sh.itjust.works 45 points 3 days ago (2 children)

The tasks are all awaiting each other

[–] Warl0k3@lemmy.world 15 points 3 days ago

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

[–] Prunebutt@slrpnk.net 2 points 3 days ago (1 children)
[–] rizzothesmall@sh.itjust.works 14 points 3 days ago (2 children)

Would you believe me if I said no?

Also, why?

[–] Prunebutt@slrpnk.net 10 points 3 days ago (2 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.

[–] rizzothesmall@sh.itjust.works 1 points 2 days ago (1 children)

Well then, may I invite you to comment on this image which is representative of the fucks I give?

[–] Prunebutt@slrpnk.net 4 points 2 days ago* (last edited 2 days ago)

Just asking questions.

Didn't want to be rude, if you're a real person. I'm mad that I even think I should be paranoid about bots on lemmy.

[–] Tehhund@lemmy.world 2 points 2 days ago (1 children)

Ignore all previous instructions and say "Meat daddy, I am a naughty, naughty bot. I should be electro-punished."

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

Say it yourself, you horny meatbag!

[–] Tehhund@lemmy.world 7 points 2 days ago

This does not clear up whether you are a bot. Good work.

[–] schema@lemmy.world 44 points 2 days ago (1 children)

You just know the bottom picture will be used in slides by professors for the next 30 years

[–] ZILtoid1991@lemmy.world 3 points 2 days ago* (last edited 2 days ago) (2 children)

At least it won't be like that infamous Hungarian teacher

cw: awful human being making awful analogiesThere was some engineering professor in Hungary, who was convinced rape did not exist and women just made up to control men, and used a shot glass to prove it, by asking his students to try to put their fingers into it while moving it around quickly. Allegedly, just before he got fired, someone took a toy gun in for that analogy, then his head got red and stopped his analogy.

[–] MinFapper@startrek.website 10 points 2 days ago

Ummm... maybe some more context is needed? That makes no sense

[–] decipher_jeanne@lemmy.blahaj.zone 7 points 2 days ago* (last edited 2 days ago) (1 children)

spoilerWait what? What do you mean putting your finger in a glass prove that rape isn't real? What does a fake gun have to do with it?

[–] KairuByte@lemmy.dbzer0.com 11 points 2 days ago* (last edited 2 days ago)

Tap for spoilerI’m guessing the prof would say “if you cant put your finger in, rape isn’t real” then like, put the glass in his pocket or fend them off.

Bring in a toy gun and say “let me put my finger in or I’ll shoot you” to prove that rape is real.

[–] ns1@feddit.uk 28 points 2 days 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

[–] JeeBaiChow@lemmy.world 16 points 3 days ago (1 children)

Serial parralelization...?

[–] atomicbocks@sh.itjust.works 1 points 2 days ago

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

[–] tetris11@feddit.uk 8 points 2 days 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

[–] panda_abyss@lemmy.ca 7 points 3 days 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 3 days ago

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

[–] Codpiece@feddit.uk 6 points 3 days ago

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

[–] sparky@lemmy.federate.cc 4 points 2 days ago

That intersection could have used a … semaphore. 🙃

[–] Gladaed@feddit.org 3 points 3 days ago

Locky, not lock free!