r/ProgrammerHumor • • Oct 30 '26

Meme convertHeapToInt

Post image
405 Upvotes

13 comments sorted by

114

u/Kadabrium Oct 30 '26

Bign't.

163

u/PatienceLost9708 Oct 30 '26

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

82

u/MightyKin Oct 30 '26

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

146

u/Totally_Not_A_Badger Oct 30 '26

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

45

u/Reashu Oct 30 '26

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

25

u/Totally_Not_A_Badger Oct 30 '26

Oh, Something is burning alright :p

5

u/creeper6530 Oct 31 '26

Or the weight of your mother in metric tonnes

2

u/Leifbron Nov 03 '26

5 billion digits ain't that much in the grand scheme of things

15

u/-BunsenBurn- Oct 30 '26

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 Nov 01 '26

i wonder how toom cook would do

3

u/[deleted] Oct 31 '26

[removed] — view removed comment

2

u/ubergeek801 Nov 03 '26

It will have to start fighting Sam Altman for it...