Don: > OTOH looks like this is a case where it'd be much faster to use fixed > length integers rather than BigInt
There's a fixed length integers version too: http://rosettacode.org/wiki/Count_the_coins#128-bit_version But it's slower than the Java code still, maybe because of the DMD back-end :-) > I think these are toy examples, though, they're completely > unrepresentative of real-world code. It's a toy example, but I have seen several times the low performance of D BigInts compared to Python flexible ints, so I think this toy example shows a more general pattern. Bye, bearophile
