MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/e5kj81/so_many_things_wrong/f9mckuj/?context=3
r/badcode • u/[deleted] • Dec 03 '19
106 comments sorted by
View all comments
Show parent comments
33
But this way, it eventually runs you out of RAM.
4 u/botle Dec 04 '19 Why would it run out of RAM? I'm not too familiar with Python, but in C it wouldn't happen. 8 u/hiimsoba Dec 04 '19 Simply put, x will get smaller and smaller, and it will take up more and more RAM to be represented in memory. Python has no limits for the number values, unlike C. Correct me if I'm wrong. :) 5 u/NathaanTFM Dec 04 '19 AFAIK Py2 has limits.
4
Why would it run out of RAM? I'm not too familiar with Python, but in C it wouldn't happen.
8 u/hiimsoba Dec 04 '19 Simply put, x will get smaller and smaller, and it will take up more and more RAM to be represented in memory. Python has no limits for the number values, unlike C. Correct me if I'm wrong. :) 5 u/NathaanTFM Dec 04 '19 AFAIK Py2 has limits.
8
Simply put, x will get smaller and smaller, and it will take up more and more RAM to be represented in memory. Python has no limits for the number values, unlike C. Correct me if I'm wrong. :)
5 u/NathaanTFM Dec 04 '19 AFAIK Py2 has limits.
5
AFAIK Py2 has limits.
33
u/kkjdroid Dec 04 '19
But this way, it eventually runs you out of RAM.