MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Basic/comments/xn2165/basic_anywhere_machine_new_lprint_statement/ipskjw9/
r/Basic • u/CharlieJV13 • Sep 24 '22
6 comments sorted by
View all comments
Show parent comment
1
Thanks, this makes sense. I can always concatinate the files after the basic program runs. How big can a string variable get inside my FireFox browser?
1 u/CharlieJV13 Sep 25 '22 From the MDN:In V8 (used by Chrome and Node), the maximum length is 229 - 24 (~1GB). On 32-bit systems, the maximum length is 228 - 16 (~512MB).In Firefox, the maximum length is 230 - 2 (~2GB). Before Firefox 65, the maximum length was 228 - 1 (~512MB).In Safari, the maximum length is 231 - 1 (~4GB).So a string variable can handle a pretty large aggregation of text before you need to get into the business of merging a bunch of files.
From the MDN:
In V8 (used by Chrome and Node), the maximum length is 229 - 24 (~1GB). On 32-bit systems, the maximum length is 228 - 16 (~512MB).
In Firefox, the maximum length is 230 - 2 (~2GB). Before Firefox 65, the maximum length was 228 - 1 (~512MB).
In Safari, the maximum length is 231 - 1 (~4GB).
So a string variable can handle a pretty large aggregation of text before you need to get into the business of merging a bunch of files.
View all comments
Show parent comment
1
u/[deleted] Sep 25 '22
Thanks, this makes sense. I can always concatinate the files after the basic program runs. How big can a string variable get inside my FireFox browser?