Debram emphasizes compiled over interpreted software. The difference in emphasis is seen most clearly with respect to software written in Perl, but it is seen to a lesser degree too with respect to software written in Python and other languages. Although the purpose of the emphasis is to enhance Debram's usefulness to its target audience as explained below, the emphasis has the side effect of implying---intentionally or unintentionally---that some free software is better than others. Few, of course, would dispute the abstract principle that some free software is indeed better than others (more useful, more efficient, more reliable, more wisely designed, pleasanter to run, easier to customize, better documented, etc). Software can be outclassed without dishonor to its developer. Nor will users always agree among themselves as to which software outclasses which. While Debram's primary purpose is to ramify not to rate software, it is neither practical nor desirable to ramify all software with equal prominence. If it is felt that `sudo' is more important than `lockvc', `make' more important than `fortune-mod', `coreutils' more important than `m4-doc', then the ramification should and does reflect this. Such reflection necessarily involves judgment. What is unfortunate is that even necessary, useful, respectful judgment can offend good people who have a stake in the thing judged. Because the people in question here are my friends and fellow Debian Developers, the matter matters a lot to me. Since I do not know how to design a useful Debian ramification which judges nothing, a decent respect for the opinion of my Debian colleagues demands that I explain at least why Debram judges the way it does. This document explains. Read, and see if you don't agree. THE BASIC DILEMMA As observed, Debram's principal purpose is to ramify or classify software according to function or area of interest. Nevertheless, an inherent tension arises between the need to ramify Debian's archive sufficiently finely that a given branch is not too large, and the need not to ramify the archive into such a large number of branches that a user cannot even find the branch he wants. Now it is true: some large branches yet lack subramification only because my own time, knowledge and/or interest are limited, and because no other appropriate person has yet stepped forward to do the work: [7880 CJK (Chinese/Japanese/Korean)] is a good example of this effect. Imprecisely but more generally, however, the parts of the ramification where the more important packages reside are the ones which tend to be ramified more finely. Thus the `tree' package resides (at the time of this writing) in [1112 File Listing and Finding] with only three other packages, while `bochs-sdl' crowds into [9620 SDL] with sixty-one others. The premise: the user's time is limited and Debram probably serves him better by making him first aware of the existence of `tree'. Hence the principle: the more important kinds of packages get smaller branches. This is not to claim that every package in a small branch is equally important. Far from it. For one thing, I as ramifier am not an expert in all areas of the Debian archive; unless you have taken the trouble to inform me, sometimes I do not know which packages are important. For another, one does not subdivide an already adequately small branch just because it contains one or two particularly important packages. But broadly the principle holds: the more important kinds of packages do tend to get smaller branches. Branches are kept small in two ways: promotion and subramification. Subramification---the division of a large branch into two or more smaller branches---is best where a branch has many packages of roughly similar importance, where a natural fault divides the packages into roughly equal groups. Promotion---the separation of a few prominent packages from the general body---applies in other cases and takes many forms. Both subramification and promotion involve judgment, of course; but only the latter immediately elevates some packages above others. Now, some might argue that Debram should not be in the business of elevating packages; but I would respond that elements of the Debian Project have long been in the business of elevating some packages above others: witness the "standard" and "optional" package priorities. Nowhere is it written that only Debian's FTP-master should render such editorial judgment. The trouble with the "optional" priority is not that it differentiates, but rather that it includes most of the archive and hence does not differentiate well enough. Consider: Would Debram serve its users better if it hid the fact that Apache is more significant than most of the other web servers, that Bind is more significant than most of the other name servers, that Linux is more significant than most of the other kernels? Would Debram serve its users better if it denied the historically rooted importance of Groff and Vi? Although it is Debram's duty (with perhaps a handful of exceptions) to treat every Debian package with dignity, it is not and cannot be Debram's task to make all packages equal. The dilemma arises not in the principle that packages are unequal, but in the practical fact that some fallible person---I, in this case---must render decisions thereto, decisions with which not everyone will agree. Now of course, not everyone need agree. I am not some powerful FTP-master; I am a very ordinary Debian Developer who ramifies packages to help interested Debian users to find the software they need. When a maintainer objects to a decision I make, I hope that he discusses the matter with me, but in the final analysis I have no power to prevent anyone who dislikes Debram from simply ignoring the thing. Personally, I think that Debram is neat. I think that you should use it. Maybe you agree. If you have some comments, or even better a patch, I'd like to hear from you. THE BIG FIVE PROGRAMMING LANGUAGES In the free-software world, it may be said that the big five programming languages are C, C++, Shell (Bourne or Bash), Python and Perl---with Assembly possibly added to the list as a sixth, depending on your point of view. Other popular languages there are, of course, and much good free software is developed in them: Fortran 77, Objective C, Tcl/Tk, OCaml, Haskell, Octave, Common Lisp, Elisp, Scheme, Guile, Java, Lua, PHP, Ruby, Ada and others. However, if one had to draw up a list of the chief languages at the present time, the list could hardly differ much from the big five named here. Of the big five, Debram treats software written in Python and especially in Perl somewhat differently from the others. For this, some explanation is in order. Perl presents the clearer case and happens to be the more familiar personally to me, so let us speak of Perl first. PERL From the Perl manpages: Perl is a high-level ... general-purpose programming language ... intended to be practical ... rather than beautiful... Perl is frequently ... an interpreted language... And referring my words here and other expressions like them, [Perl's originator Larry Wall] doesn't really care [whether one calls it] a Perl program or a Perl script... Now that "script" and "scripting" are terms that have been seized by unscrupulous or unknowing marketeers for their own nefarious purposes, they have begun to take on strange and often pejorative meanings, like "non serious" or "not real programming". Consequently, some Perl programmers prefer to avoid them altogether. One can hardly blame the creators of Perl for promoting their own programming language, but who are the "marketeers" here, eh? Ramifying Debian software not promoting Perl is my task, and although it is possible to write almost any program in Perl, a broad gulf yawns between the attitude with which one typically approaches programming in Perl and the one with which one approaches programming in C++. Perl cannot be all things to all people. The words "script" and "scripting" have always connoted "non-serious" and "not real programming" in some sense---this is nothing new---but the words are not pejorative until applied to a programmer trying to use a scripting language for serious purposes for which the language is fundamentally ill suited. The whole point of Perl is to support the "non-serious" programmer who does not want to do "real programming" at the moment. If not for this, then what need was there for Perl in the first place? We already had adequate programming languages for the serious jobs. And there is the rub. The creators of Perl and their good battalions on CPAN believe fundamentally in the Perl way and have devoted tens of thousands of hours to adding to Perl the features needed to make it a real, serious programming language. Their tenacity is commendable. However, the fact that the Perl people have set improbably lofty goals for their "practical rather than beautiful" language, the fact that they have been busy as beavers working toward these goals, may command our respect; but it cannot require you and me to agree that they have succeeded. My view is that they have not succeeded, and furthermore that the kind of success they seek is probably unattainable. The old Perl camel just isn't that kind of beast. PERL AND STROUSTRUP'S "TWO RELATED PURPOSES" As Bjarne Stroustrup wrote in his non-free book *The C++ Programming Language* (special ed, 2000), A programming language serves two related purposes: it provides a vehicle for the programmer to specify actions to be executed, and it provides a set of concepts for the programmer to use when thinking about what can be done... The connection between the language in which we think/program and the problems and solutions we can imagine is very close. If Stroustrup is right, then how does Perl serve the "two related purposes?" With respect to providing a vehicle for the programmer to specify actions to be executed, consider that there is no clear distinction in Perl between the integer 0, the floating-point 0.0, the string "0", the character '0', and the logical value *false*. This is by design. However, in Perl "00" *is* something different: it is logically *true* and increments magically not to 1 but to "01". Perl evinces such semantically quirky behavior in many ways. Another example is that open FILE, $file; behaves differently if $file is "foo" or "!foo" than if ">foo". (Who would name a file "!foo" or ">foo"? Probably no one, but that isn't the point. In the old Perl ethic, though, that is indeed the point. This is where the Perl people and I disagree.) Modern Perl does provide you ways to work around most of the semantical quirks---for example, you can code $x += 0; open FILE, '<', $file; to ensure that the value of $x is "0" not "00" and that the file is opened properly for reading not writing---but such worked-around Perl is awkward at best: it defeats Perl's own natural-linguistic strengths, while scattering random-looking symbols, terms, arguments and statements about the code whose only purpose is to persuade Perl not to behave illogically. With respect to providing a set of concepts for the programmer to use when thinking about what can be done, Perl has made at least two important contributions. The first is in the unnamed $_ "it" variable, which C++ admittedly lacks. The second is in the Perl-compatible regular expression (PCRE), which one can now access from any language via Libpcre but which is still most conveniently available in Perl. In general, however, Perl's focus is on human linguistics rather than on computational concepts---which is brilliant when it works (usually in short scripts) but which leads the programmer to do silly things when it doesn't. As Stroustrup observes, A [programming] language is said to *support* a style of programming if it provides facilities that make it convenient (reasonably easy, safe, and efficient) to use that style. A language does not support a technique if it takes exceptional effort or skill to write such programs: it merely *enables* the technique to be used. Stroustrup was talking primarily about Fortran 77 and C, but his comments apply equally well to Perl. One can indeed write tight, efficient, well organized, logical, reliable code in Perl with sufficient effort. But is it "reasonably easy, safe, and efficient" to do so? Or to is it more like eating soup with a fork? PERL AND STROUSTRUP'S CRITERIA Stroustrup continues: One language is not necessarily better than another because it possesses a feature the other does not. There are many examples to the contrary. The important issue is not so much what features a language possesses, but that the features it does possess are sufficient to support the desired programming styles in the desired application areas: [1] All features must be cleanly and elegantly integrated into the language. [2] It must be possible to use features in combination to achieve solutions that would otherwise require extra, separate features. [3] There should be as few spurious and "special-purpose" features as possible. [4] A feature's implementation should not impose significant overheads on programs that do not require it. [5] A [programmer] should need to know only about the subset of the language explicitly used to write a program. Of these five criteria, Perl generally satisfies the fifth and trivially the second. The third, the language explicitly rejects. The first is a hopeless case for Perl if you are doing much of anything other than text processing. Regarding the fourth, the interpreter's internal algorithms do seem to be pretty efficient, but whatever overhead they do impose, the programmer is stuck with. C++ and Python equal or beat Perl on all five points. These are not deficiencies of Perl. On the contrary. None of the big five programming languages beats Perl at what Perl best: quick, one-man, one-off text processing scripts. One might add to Stroustrup's list that [6] Features supporting the most common programming tasks---text, list, hash and file processing---should be cleanly and elegantly integrated into the language. [7] The language should make it as easy as possible for the programmer to code simple, practical jobs. [8] The grammar and syntax of the language should deeply resemble natural language where possible. (Whether this last point is actually a virtue is a matter for another discussion, but to Perl programmers it is a virtue, so for purpose of the present discussion we shall treat it as such.) Perl wins on these points. Notice, however, how the focus of the points has changed. The first four of Stroustrup's original five points mostly regard the disciplined creation of solid, well built software. By contrast, the three Perl points I have added mostly regard the immediate personal convenience of the lone programmer. There is nothing wrong with conveniencing the programmer; but if solid, well built software for public distribution is what we seek, then it is Stroustrup's five points that we primarily should attend to. DATA TYPES AND DEBUGGABLITY Although debuggability is a partial or implicit aim of several of the eight criteria, it is not the explicit target of any of them. The importance of debuggability in a programming language is hard to overstate, so one might further add to the criteria that [9] The language must be inherently neat. It must deeply integrate and conveniently make available facilites for the programmer to discipline himself and his code---facilities which, when applied, permit the compiler to warn the programmer swiftly and accurately of as many bugs as possible. Strict data typing is a typical example of such a facility. If this is indeed a goal, then it is a goal the old Perl camel stampedes away from not toward. Yet have facilities not been grafted onto Perl to ameliorate the problem? Yes, they have, many times, often by heroic efforts. Many efforts have been made to tame the camel. But such facilities and efforts, although helpful indeed to the Perl programmer, nevertheless cut against Perl's basic nature. As Stroustrup writes, Over the basic type system of a language, only Pyrrhic victories are possible. PERL AND DEBRAM Now, none of this would be at issue if Perl did not enjoy loyal battalions of good-natured, enthusiastic supporters who believe strongly in Perl's destiny as a top-tier, world-class general-purpose programming language. If programming languages were eating utensils, then I happen to think that Perl is a fork, and if they agreed with me that Perl is a fork, then we would all agree that Perl is the best fork around and we would not be having this discussion. The problem from my point of view is that Perl's promoters feel that Perl is a pretty good spoon, too. I respect their point of view, but having personally written more lines of code in Perl in my life than in any other programming language, I disagree. To me, Perl's spoon is like the little spoon you flip out of a Swiss army knife: better than nothing in a pinch, but hardly a substitute for a real spoon when you are sitting in your kitchen and have a bowl of soup to eat. So if Perl is no spoon, then what are we to make of the observation that one can compile Perl scripts? Answer: the observation may be technically correct---the existence of a working Perl compiler may be a significant achievement in itself---but to introduce the fact in the present context fundamentally distorts the point. Compiling a script directly into machine code (or byte code, or whatever), with special supporting libraries, doesn't make it less of a script; it just makes the script unreadable and a little faster. Anyone who has written serious programs in C or C++ knows the difference. Still, a fair bit of significant software is indeed written in Perl, and although I admittedly have my doubts, it is not for me to say that Perl was or was not the right language for the developers to choose for a given software project. However, if you want to spin off some little betaware prototype fast, none of the big five suits the need quite like Perl. Browse through [3681 General Perl Software] in the ramification and you'll see what I mean. While there is undoubtedly some good software in there, there is also a lot of subpar betaware---and in any case it is hard to escape the prejudice, or at least the predisposition, that Perl is for prototyping and that if the software were really serious, it would have been rewritten in C++ or the like. Put another way, some programmers go to a lot of trouble to rewrite in C++ software originally prototyped in a scripting language like Perl. This, they do for a reason. Software thus rewritten merits a presumption of extra distinction. For these reasons, Debram's presumption is in favor of a program written in a strongly typed, logically coherent, normally machine-code compiled language like C++. Where Perl software does an important job for which no comparable C/C++ software is available or where it has significant, long-established stature, and where I am aware of the fact, Debram does ramify the Perl software in the main ramification normally, according to its function rather than to its implementation language. In some branches of the ramification like [1360 XML/SGML], [1444 R Statistics], [1752 MySQL] and [8672 Apache], where a strong Perl tradition exists, the relevant Perl modules and software are indeed included. In the interest of keeping the rest of the ramification uncluttered, however, most other Perl software is kept together under [3680 Perl Software]. PYTHON AND OTHER PROGRAMMING LANGUAGES Turning from Perl to Python, the case for Python is rather different. Python is a different kind of language, to which most of the objections above do not apply. However, partly because Python is interpreted, partly for consistency with the Perl policy, partly because one suspects that really serious Python software is sometimes reimplemented in C++ anyway, partly because the practice saves scarce Debram development hours, much Python software nevertheless remains ramified under [3590 Other Python Software]. A similar policy applies to the other interpreted languages. However, there is much less free software written in most of those. With regard to the occasional software package written in Ada or some other alternate compiled language, Debram generally takes an agnostic view, ramifying it normally as though it were written in C or C++. CONCLUDING REMARKS Some will agree with Debram's stance on Perl and Perl software and some will undoubtedly disagree. Careful inspectors of Debram's source will notice that several of Debram's own development helper scripts are written in Perl---and since I was the one who wrote those scripts, it clearly cannot be that I think that Perl is all bad. However, it is also true that I retain some doubts about Perl's suitability for real programming, and that my own long experience coding in Perl has deepened rather than mollified such doubts. Some say that the language a program is written in is a mere implementation detail, but I don't believe it. If undisciplined programming languages didn't lead to undisciplined programs, then how could we explain the success of C++ and Python? Indeed, how could we explain the existence and broad use of Perl's own "use strict" pragma? As the native speaker of Greek or French would agree, language discipline counts. More than this, though, it is the experience of wading through the Debian archive, package by package, which has impressed me of the general difference in character between scripted software and compiled software---particularly between software scripted in Perl and software compiled from C or C++. As in the case of Cdebconf, really serious Perl scripts tend eventually to be reimplemented into the more serious programming languages. For this, there is a reason. My intent in writing this document has not been so much to convert Perl enthusiasts to my point of view. (For one thing, I *am* a Perl enthusiast. Only, my enthusiasm for Perl attenuates rapidly outside Perl's proper application domain.) My intent in writing these words has been to try to explain to Perl enthusiasts who disagree with me why I have made the ramification design decisions I have made, in the hopes that even if these people do not wholly agree, they will nevertheless understand, appreciate and respect Debram's point of view in the matter. Debram's Python policy, of course, I have not really explained here. In fact I admit that I have not put nearly so much thought into the matter, in part because I personally have limited experience coding in Python. Debram policy-wise, Python is sort of "along for the ride" with Perl: the present Python policy is not so much by thoughtful design as it is by mere analogy. Scripts are usually relatively slow. That is about as far as my Python analysis has gone. (In actual ramification practice, I would observe that for some reason Python software does not usually seem to pose quite the same dilemma Perl software does. Is this because Python programmers are more likely voluntarily to have recoded important software when appropriate in C++? I can't really say. There is the fact that some Python developers proudly name their own programs "pyfoo" or "pybar". If they view their software's Pythonity as a special mark of distinction, then it is hardly for me to question the view! Maybe it really is a special mark. Python is a fine language.) One last remark. Although I believe Debram's Perl policy to be the right one generally, I also acknowledge that it does not suit all Perl programs equally. If you maintain a specific Perl, Python or other scripted package which you feel has established first-tier stature and deserves to be ramified out in the main ramification, let me know. I am not some secret judge wearing a black hood in a hidden chamber; I am just some guy trying to make sense of the vast heap of packages which constitutes the Debian archive. If Debram misramifies your package---Perl package or otherwise---contact me: we would see what we couldn't do about moving it. Thank you for maintaining all that great free software. -------------------------------------------------------- Thaddeus H. Black, 9 January 2006