Re:Sum of 1 to 1000000000 in different programming languages
by waterhouse on Monday August 05, 2013 @05:29PM
(#6163204)
Consing sounds like it's allocating bignums. My guess is that you're using a 32-bit build of SBCL. In that case, fixnums only go up to something like 2^30, and arithmetic with larger numbers will allocate memory. Can you check?
[ Parent
| on HN ]
Re:Sum of 1 to 1000000000 in different programming languages
by gshubert17 on Monday August 05, 2013 @05:59PM
(#6163419)
You're right. I have a 32-bit build, since I get:
* (log most-positive-fixnum 2) 29.0
Thanks.