Re:Evolution of a Python programmer
by alec on Friday January 29, 2010 @06:14PM
(#1087812)
Where's the one where the Python programmer has to make something go fast and needs to write a C module?
[ Parent
| on HN ]
That would be trickier than it looks. Run this in your python interpreter:
reduce(lambda x, y: x * y, range(1, 100))
Replicating that in C is certainly possible but you're probably not going to do it quickly, unless you're already pretty deep into that sort of thing.Clearly the answer is -1818210304. My C program told me that really quickly!