> JavaScript is an "untyped" language, which is an advantage and a 
disadvantage. ... Based on your question, it is an advantage, because it 
doesn't matter if you have a 32bit system or a 64 bit system. max_int is 
the same!

I'm a Perl programmer, not a JS programmer. Would you mind explaining why 
the limits for a JS counter are the same for a 32-bit vs 64-bit OS? I would 
be eager to learn something new today by tapping into your wonder fount of 
wisdom. :)

Perl comes in several variations: 16, 32, and 64-bit. Counter value limits 
are based on the lowest common denominator of the OS or Perl bit width. So 
running 16-bit Perl on a 32-bit OS would mean I'm still limited to 16-bit 
values via Perl.

Perl only has 3 basic "types" but officially, it is untyped. It has the $a 
variables (called "scalar" variables), which can hold an integer, float, 
string or even a memory address (pointer). The other basic types are array 
and hash. So Perl has limits on the value of integers it can hold in $a 
scalar based on if Perl is 16, 32 or 64-bit. Which I found out the hard way 
using a vendor version of Perl which is 16-bit, where I found that I cannot 
read a 5GB Excel file into memory on a Windows Server 2012 machine with 
32GB of RAM because the XLSX read routine must make a LOT of pointers as it 
expands the XLSX file into memory. 

(An XLSX file is actually a zip file with a bunch of stuff in it. So on 
average, just by unzipping the file, the file doubles in size.)

Thank you!


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0843d6d8-d398-4665-b2ac-636ad119abe8%40googlegroups.com.

Reply via email to