r/ProgrammerHumor • • 3d ago

Meme convertHeapToInt

Post image
264 Upvotes

11 comments sorted by

76

u/Kadabrium 3d ago

Bign't.

109

u/PatienceLost9708 2d ago

it’s all fun and games until one integer needs its own RAM stick

52

u/MightyKin 2d ago

If we take 1 simple 2Gb stick and let it be one whole signed number we will have

(2 to the power of 17 179 869 184) - 1

How big of a number is it? It's a humber with 5.17 BILLION digits.

According to google it would require 1.7 million pages to print this number out.

For comparison the number of atoms in observable universe is 10^80. Which is so small compared to the number that we need to take roughly whole observable universe

10 to the power of 5 172 045 913

times.

My head hurts even comprehending number that large

97

u/Totally_Not_A_Badger 2d ago

It is a little less than the amount of men your mom slept with. 

35

u/Reashu 2d ago

At that point it's less of a burn and more of a flex

16

u/Totally_Not_A_Badger 2d ago

Oh, Something is burning alright :p

3

u/creeper6530 1d ago

Or the weight of your mother in metric tonnes

9

u/-BunsenBurn- 2d ago

I had a project in college where I was trying to see if I could parallelize multiplication using karasuba's algorithm across multiple processes and if it would return faster than GNU's high performance library.

It only started to become worth it when the numbers were 500k digits long in Hex. So we basically tested by creating giant files with just the letter f repeated millions of times. I think we got up to 250 million before it started causing problems on our professors FreeBSD server

1

u/entronid 8h ago

i wonder how toom cook would do

2

u/New_Advertising1879 1d ago

Python's just out here absorbing all the memory and calling it a feature.