by jrockway · 17y ago · 0 comments
Also, last time I checked the programming language shootout, Perl 5.10 is slightly faster than Python 3.
So with that in mind, the logical "step up" from Perl would be something like Haskell. Python is pretty much Perl with different syntax, less features, and the impression that it's "cleaner" because nobody ever bothered using it for "quick and dirty" scripting.
I can't read my Perl code from six months ago like I can read my Python code ages ago.
There are far too many ways to do the same thing in Perl, not every one of them obvious. And I disagree with my past self a lot.
unreadable for the claimants not for you.
"Go find me perl I can't read .. Where is it?"
Any language, no matter how obscure, will have some practitioners who can read any code written in it.
I am sure someone can say this about APL "What do you mean APL is unreadable? I can read any APL code fragment".
To repeat, they are saying they can't read it not that you can't. Don't take it personally. Use what works for you.
Anyone who has studied those two books can understand 99%+ of the code on the CPAN.
A lot of people have made a few halfhearted attempts at using Perl and were so put off by the scary looking sigils that they gave up. Then they blame Perl to comfort themselves. It's not them that's too lazy to look past a new kind of syntax, it's the language's fault!
So you haven't seen the Malbolge language, then? http://www.lscheffer.com/malbolge.shtml
http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...
And most people are using 2.x which is even faster.
http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...
Are those Perl programs written to use multiple cores?
> And most people are using 2.x which is even faster.
All the 1/1 and 1 make them seem pretty much the same.
http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
If you want to see Python being smoked: http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...
I re-wrote the same code using python on a lark to see how bad it would be, colour me very surprised when it actually beat the original code by a considerable margin!
As for quick and dirty scripting in python: I do it all the time. Hell I just made a little "framework" [1] in python to do this better. I missed the while <> construct from perl for doing filters, so I made it easier to do in python. The funny thing is, many of my quick and dirty python scripts end up looking like more thought was put into them, and being more flexible, than they were ever intended to be.
[1] http://pypi.python.org/pypi?name=pyCLiFF&version=0.1&...
Rather unlikely.
Python, like any programming language, is not perfect. There's simply less to not be perfect.