The point that several people have already made is that speed is not the sole reason for choosing a language. If that were true everybody would be coding in assembler.
If writing out those integers needs to be done faster than perl can do it, then you obviously use a language faster than perl.
If it doesn't - I'll pick perl out of the above three languages since I only have to write and maintain 6 lines of code. Compared to C's 15 and Java's 19.
Most of the time programmer efficiency, robustness, maintainability, portability, etc. are far more important than raw speed when it comes to language choice. Especially since many programs have their speed bound by external factors (disk, network, database, etc.) rather than by CPU.
Speed in meaningless tasks like the above is not an issue for most people, most of the time.
In reply to Re^2: Teach him a lesson with facts
by adrianh
in thread Teach him a lesson with facts
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |