3 ms·
Here's my favorite trivia story about how old Python is: You know JWZ's rant about how Java could have made integers first class objects by using the first bit
by ArbitraryLimits 15y ago
Here's my favorite trivia story about how old Python is:
You know JWZ's rant about how Java could have made integers first class objects by using the first bit as a flag for whether that machine word contained a primitive type or a pointer to an object, at the cost of only having a range of 2^31 instead of 2^32 (or whatever the word size was)? Python apparently had the same discussion in the early days, and made the same decision as Java (i.e. non-primitive integers, you have to box them to treat them as objects) and the reason was ... that the requisite bit twiddling was slow on DEC Alphas. (In fairness, at the time Guido was working for a government lab full of DEC Alphas.)