3 ms·
Maybe it's a Python culture thing but why on earth wouldn't "iterate and add" be the first thing you think of there?
by zimpenfish 14y ago
Maybe it's a Python culture thing but why on earth wouldn't "iterate and add" be the first thing you think of there?
- ColinWright 14y agoBecause I was, at the time, programming mostly machines with 256 processors or more, so parallel algorithms were always the first thing I looked at. Also, in these times it's always worth looking at parallel versions of algorithms because of multi-core chips. Yes, I know that doesn't help within Python because of the global lock problem, but mostly I do cross-language, multi-processor and multi-process programming. The future of computational intensive tasks is parallel - you should have parallel algorithms in your fingers. Hence thinking about the non-simplistic first in this instance. Maybe I should add a bit at the beginning to make that clear.
- zimpenfish 14y agoAh, the context makes it more sensible, definitely.