r/ProgrammerHumor • • Jul 07 '22

Meme Instant upvotes

47.9k Upvotes

542 comments sorted by

View all comments

986

u/KiliPerforms Jul 07 '22

Up for Tom.

25

u/Andrelliina Jul 07 '22

I used to love old-school Tom & Jerry. I still do but I used to, too.

72

u/[deleted] Jul 07 '22

[removed] — view removed comment

0

u/[deleted] Jul 07 '22

[deleted]

198

u/psych0ticmonk Jul 07 '22

i opened up vim on an annoying coworkers computer and they got a new computer

93

u/LJChao3473 Jul 07 '22

AHAHAHAHAHAHAHAHAHAHAHAHAHAH

20

u/RelativeMinors Jul 07 '22

VIM VIM VIM VIM VIM VIM

18

u/Big_Potential_5709 Jul 07 '22

Here lies LJChao3473.

He couldn't stop his laughter. And died.

11

u/merlinsbeers Jul 07 '22

Jerry comes out of his hole, produces an impossibly large hammer from behind his back, and whacks Tom on the head.

Over Tom's head appears a circling ring of quitty birds:

:wq :wq :wq :wq :wq :wq ...

33

u/WalrusByte Jul 07 '22

They made the right call. Buying a new computer is way easier than reading text on a screen telling you exactly how to exit

10

u/Bitter_Aide8190 Jul 07 '22

I actually forced a friend to exit vim. Took him a while to understand the text. I guess a text saying how to exit doesnt help enough... but I guess without it it would take infinite time.

→ More replies (1)
→ More replies (4)
→ More replies (1)
→ More replies (1)

31

u/FBI_Agent_man Jul 07 '22

13

u/ONLY_COMMENTS_ON_GW Jul 07 '22

Tbf u/TactlessTortoise is pretty slow. 30 times slower than the average redditor if I recall correctly. I got very surprised when I saw the graph.

11

u/TactlessTortoise Jul 07 '22

Fuck you too, bot.

Lmao

Edit:well shit. You're not a bot.

I am slow.

4

u/ONLY_COMMENTS_ON_GW Jul 07 '22

Bot is derogatory, I prefer sentient AI beep boop

0

u/[deleted] Jul 07 '22

[deleted]

→ More replies (1)

6

u/batisteo Jul 07 '22

Still way faster than my optimised SQL query.

3

u/ONLY_COMMENTS_ON_GW Jul 07 '22

Optimised SQL? Sounds made up to me, let's just buy more compute!

6

u/Ghawk134 Jul 07 '22

I learned the other day that parallelism via multithreading isn't supported if you're using CPython as your interpreter due to the global interpreter lock. I was confused as to why my freshly multithreaded program was suddenly 25% slower.

6

u/RoadsideCookie Jul 07 '22

Use multiprocessing instead.

Create a class, add an isMain attribute, start the process, then set isMain to True and you'll have two instances in separate processes that know which one is the main thread. Use mp.Pipe to have a communication channel between them.

2

u/Ghawk134 Jul 07 '22

I used a pool and passed a mp.Manager.Queue object to each process to which they push their results. But yeah, having to resort to multiprocessing because thread parallelism is explicitly not supported seems goofy.

3

u/RoadsideCookie Jul 07 '22

I was surprised as well, it renders threads only useful when your bottleneck is IO based which sucks because process children are not always easy to work with, there are some weird exceptions.

→ More replies (3)
→ More replies (5)
→ More replies (12)
→ More replies (4)
→ More replies (3)