This question has been asked so many times for so many different languages, with some fascinating answers. I propose compiling the answers here so we can compare them side by side.
Also, how is it done in the languages not yet "covered" by a question on SO?
One programming language or idiom per answer, please.