The Crystal Programming Language Forum

Int32 limit for the number of Array elements

I know this has been discussed some years ago

But does it really make sense to limit the array size to Int32::MAX?
Applications in bioinfomatics, data sciences, and High-performance
computing do need larger arrays (and large memory). Int32 limit in
2020 sounds too much like “640K ought to be enough for anybody” in
1981…

1 Like

Can you do an Array of Int64s?

Yes, this has been discussed in the past. I recently made an attempt to make Int be a type that varies depending on the platform, and then making collections have that size. But it’s a huge task and, most importantly, it’s a huge breaking change.

Nothing of this is going to change for 1.0. For 2.0? Maybe, but it’s not clear.