From: Jeff Garzik <jgarzik@pobox.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: "J.A. Magallon" <jamagallon@able.es>, linux-kernel@vger.kernel.org
Subject: Re: Perl in the toolchain
Date: Fri, 31 Jan 2003 18:23:03 -0500 [thread overview]
Message-ID: <3E3B0557.3070400@pobox.com> (raw)
In-Reply-To: <20030131222257.GA11011@mars.ravnborg.org>
(sigh, I did not wish to spark a religious debate, though I suppose I
should have expected it... :))
Sam Ravnborg wrote:
> On Fri, Jan 31, 2003 at 10:38:27PM +0100, J.A. Magallon wrote:
>
>>So in short, kernel people:
>>- do not want perl in the kernel build
>
> Correct, at least for mainstream architectures.
> The rationale here is that we already put a lot of constraints on what
> tools people need to build a kernel. If we can avoid an extra
> _mandatory_ tool then this will make life easier for a lot of people.
This is a logically correct argument, but also one that ignores basic
numbers.
The fact of the matter is, the area of build tools matters most to
people who cross-compile their kernels, because every tool is generally
hand-built rather than automatically installed on their Linux system.
For this audience, as well as the typical non-cross-compiling kernel
developer, Perl is on their system.
However, that fact is less significant than the more basic and core
argument:
klibc uses perl for text munging. i.e. one of Perl's acknowledged
strengths. This is not a case of choosing a favorite script language,
but instead a case of choosing "the right tool for the job." Regardless
of whether you think Perl is line noise :) or not, from a technical
basis Perl is clearly superior to sed+awk in this case.
Therefore, any rewrite of _this_ _particular_ script in C or shell
script would be willfully choosing a sub-optimal implementation language
for this task. If you take into account the fact that the overwhelming
majority of the target audience does indeed have Perl on their system,
then that only serves to make it more clear that any such perl-to-C
rewrite would not be on any technical nor practical basis at all.
Adding some final thoughts, perl is already used in nooks and crannies
in the build system. Instead of being motivated to stomp those out,
please [respectfully!] consider that the Perl scripts might be there
because an evaluation of the best tool for the job took place.
script_asm.pl in drivers/scsi is a favorite example here.
Thanks for raising this subject! I wanted to give your answer some
consideration, because it is worth mentioning, and discussing.
Jeff
next prev parent reply other threads:[~2003-01-31 23:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-31 18:39 Perl in the toolchain Pete Zaitcev
2003-01-31 19:41 ` Kai Germaschewski
2003-01-31 19:48 ` Jeff Garzik
2003-01-31 19:55 ` Mr. James W. Laferriere
2003-01-31 20:41 ` Sam Ravnborg
2003-01-31 22:50 ` Ben Greear
2003-01-31 21:38 ` J.A. Magallon
2003-01-31 22:22 ` Sam Ravnborg
2003-01-31 23:23 ` Jeff Garzik [this message]
2003-02-01 0:29 ` H. Peter Anvin
2003-02-01 12:12 ` Sam Ravnborg
2003-01-31 23:40 ` J.A. Magallon
[not found] ` <mailman.1044055681.1939.linux-kernel2news@redhat.com>
2003-02-01 1:06 ` Pete Zaitcev
2003-02-01 6:02 ` Ryan Anderson
2003-01-31 22:51 ` Roman Zippel
2003-01-31 23:27 ` Jeff Garzik
2003-01-31 23:40 ` J.A. Magallon
2003-01-31 23:40 ` Jeff Garzik
2003-02-01 0:01 ` Roman Zippel
2003-02-01 0:05 ` J.A. Magallon
-- strict thread matches above, loose matches on Subject: below --
2003-01-31 20:13 Ed Vance
2003-02-01 3:28 ` Scott Robert Ladd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E3B0557.3070400@pobox.com \
--to=jgarzik@pobox.com \
--cc=jamagallon@able.es \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox