Hacker News new | ask | show | jobs
by tyingq 1310 days ago
>And Perl seems slower than Python now

Do you have some examples? Outside of some specific python extensions that are written in C, Perl is almost always faster than Python for me.

1 comments

I don't have good ones offhand, but whenever I write a script that spends a long time looping and doing a mix of numerical calculations and text processing, CPython beats Perl. I think this is partly due to how Perl treats numbers as a kind of second class data type.

However Perl handily beats CPython in startup time, so it's much faster for short-lived programs.