[lkml]   [2003]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Perl in the toolchain
    (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

    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

    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. 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.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:32    [W:0.022 / U:5.120 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site