Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ubuntu terminal directory



On Sun, Mar 28, 2010 at 3:19 PM, Jerry Feldman <gaf-mNDKBlG2WHs at public.gmane.org> wrote:
> The initial Perl version ran very, very slow,
[...]
> Much faster than Perl,
[...]
> The Python version runs in about 10 seconds, the C++
> version in about 30 seconds without copying to the other server, and the
> Perl took an hour.

It sounds like you're dealing with some very poorly written Perl code.
 Perl excels at parsing and is actually more suited to this task than
Python is.  Performance-wise Perl and Python compare favorably in this
regard and in many cases Perl wins out.

> I also find that Python files are more readable than Perl, bash or Cshell scripts.

IMHO, readability is less about the language and more about coding
style.  You can write very readable code in any language.  I
personally dislike Python's reliance on indentation level, and the
silly double underscore name mangling for class-private members, among
other things, but in general I think both Perl and Python are great
languages.

One should use the language that is suited to the task.  For anything
having to do with parsing and text processing, I'd use Perl.  For a
quick UI or admin interface, I'd use Python.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org