3 ms·
> And if you have a line that is longer than 2GB, you only have yourself to blame. This is why I like languages like Lisp: by default, integers are only limite
by zeveb 10y ago
> And if you have a line that is longer than 2GB, you only have yourself to blame.
This is why I like languages like Lisp: by default, integers are only limited by the amount of memory available (as an example: (- (expt 2 1024) (expt 3 27)) → 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356321998626652229).
For efficiency one can of course limit things to fixnums, and in a kernel one would want to be careful not to let reading a file eat all memory — but that's all doable in a Lisp.