On Sun, 13 Jul 2003 19:14:36 -0700 Guy Harris mumbled:
>On Sun, Jul 13, 2003 at 05:23:45PM -0400, Dave Shawley wrote:
>> My overall goal is to reduce the dependency on the various UNIX command
>> line utils (rm, sed, mv, etc.) and replace them with the Win32 equivalents
>> or Perl where there is no Win32 equivalent.
>
>Why Perl and not Python? Python isn't a UNIX command-line utility in
>the sense of something restricted to UNIX (or even something restricted
>to UNIX or Windows-plus-Cygwin):
I think that the main reason that I chose Perl was that I knew it better
than Python. (Haven't gotten a chance to play with it much.) The other
reason is that we have a lot of utilities already written in Perl that
are required for our development. All of the engineers already have Perl
installed.
Maybe I'll take this as an opportunity to reacquaint myself with Python =-)
>>I've been running into problems
>> with other engineers where I work complaining about having the install
>> Cygnus to build ethereal. I'll take a look at ncp2222.py. I could probably
>> rewrite it in Perl as well.
>
>Perhaps, but you should take a look at it before you endeavor to do so;
>it's a 14,619-line Python script, and most of it consists of Python
>statements that amount to describing the contents of various NCP
>packets, which means that as bugs are fixed, new NCPs are dissected,
>etc., that stuff changes, so if you don't submit your rewritten script,
>you'll have to update it when the Python script changes, and if you *do*
>submit it it's only going to be accepted as a patch if the people
>maintaining it are willing to switch from Python to Perl.
>
Yeah I noticed that last night. Probably not such a good idea afterall. The
last thing that I need is another protocol stuck in my head.
>> The one difference that I did see is that the Perl version is *alot* faster
>> than the shell version for building register.c.
>
>So is the Python version, which is why it was created, and why it's now
>used on UNIX as well as Windows.
>
>Is the Perl version faster than the *Python* version? That's the
>interesting question here, not whether it's faster than the *shell*
>version.
>
Hmmmm... not sure about that one. Either way, I'll look into writing Python
versions of the make-*-dotc scripts in Python. I've been looking for a pet
project for a little while now anyway.
Thanks.
- Dave