Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Knuth Releases Another Part of Volume 4 260

junge_m writes "Donald Knuth has released another of his by now famous pre-fascicles to Volume 4 of his epic: Pre-fascicle 2c is all about 'Generating all Combinations' supplementing his pre-fascicles 2a and 2b. Furthermore he challenges us all to do more of his daunting exercises and report our success. He thinks we are way too lazy in this respect! So come on slashdot crowd: Do your homework and get the credit from the grandmaster himself!"
This discussion has been archived. No new comments can be posted.

Knuth Releases Another Part of Volume 4

Comments Filter:
  • Tshirts (Score:3, Funny)

    by bsDaemon ( 87307 ) on Tuesday July 09, 2002 @09:04AM (#3848710)
    anyone else think ThinkGeek.net needs some 'Absolut Knuthingness' tshirts?
  • by Anonymous Coward
    Up until now, I've been quite content to have read none of the 3 volumes of TAoCP; with this 4th volume I'm starting to feel poorly read.
  • by ovapositor ( 79434 ) on Tuesday July 09, 2002 @09:07AM (#3848726) Journal
    The main reason that I have been hesitant to purchase and slog through these books has been the fact that they are written with an outdated assembly language for a non existant processor. I realize that the point is to learn these algorithms, however, since I rarely if ever code on that level any longer, is there an alternative? Something using a language like Java, Python, or even, ack! , 'C' would be more to my liking.

    No flames please. This is just an honest question.
    Thanks
    • by biglig2 ( 89374 ) on Tuesday July 09, 2002 @09:14AM (#3848766) Homepage Journal
      Knuth's own reply to this question can be seen at http://www-cs-faculty.stanford.edu/~knuth/mmix.htm l.

      To quote:

      "Many readers are no doubt thinking, 'Why does Knuth replace MIX by another machine instead of just sticking to a high-level programming language? Hardly anybody uses assemblers these days.'

      Such people are entitled to their opinions, and they need not bother reading the machine-language parts of my books. But the reasons for machine language that I gave in the preface to Volume 1, written in the early 1960s, remain valid today:

      One of the principal goals of my books is to show how high-level constructions are actually implemented in machines, not simply to show how they are applied. I explain coroutine linkage, tree structures, random number generation, high-precision arithmetic, radix conversion, packing of data, combinatorial searching, recursion, etc., from the ground up.
      The programs needed in my books are generally so short that their main points can be grasped easily.
      People who are more than casually interested in computers should have at least some idea of what the underlying hardware is like. Otherwise the programs they write will be pretty weird.
      Machine language is necessary in any case, as output of many of the software programs I describe.
      Expressing basic methods like algorithms for sorting and searching in machine language makes it possible to carry out meaningful studies of the effects of cache and RAM size and other hardware characteristics (memory speed, pipelining, multiple issue, lookaside buffers, the size of cache blocks, etc.) when comparing different schemes.
      Moreover, if I did use a high-level language, what language should it be? In the 1960s I would probably have chosen Algol W; in the 1970s, I would then have had to rewrite my books using Pascal; in the 1980s, I would surely have changed everything to C; in the 1990s, I would have had to switch to C++ and then probably to Java. In the 2000s, yet another language will no doubt be de rigueur. I cannot afford the time to rewrite my books as languages go in and out of fashion; languages aren't the point of my books, the point is rather what you can do in your favorite language. My books focus on timeless truths. "

      • by gripdamage ( 529664 ) on Tuesday July 09, 2002 @09:35AM (#3848881)
        It's still probably helpful to know where you can obtain and learn to use a MIPS VM. Check out the GNU MDK manual [gnu.org] Contains the MIX instruction set and a programming tutorial, as well as documentation on using the VM itself.

        For the intro:

        In his book series The Art of Computer Programming (published by Addison Wesley), D. Knuth uses an imaginary computer, the MIX, and its associated machine-code and assembly languages to ilustrate the concepts and algorithms as they are presented.

        The MIX's architecture is a simplified version of those found in real CISC CPUs, and the MIX assembly language (MIXAL) provides a set of primitives that will be very familiar to any person with a minimum experience in assembly programming. The MIX/MIXAL definition is powerful and complete enough to provide a virtual development platform for writing quite complex programs, and close enough to real computers to be worth using when learning programming techniques. At any rate, if you want to learn or improve your programming skills, a MIX development environment would come in handy.

        The MDK package aims at providing such virtual development environment on a GNU box. Thus, MDK offers you a set of utilities to simulate the MIX computer and to write, compile, run and debug MIXAL programs.
      • Moorish artisans used to purposedly introduce a mistake in their tile designs, as it would be presumptous for a mere mortal to attempt perfection.

        Knuth introduced the MIX back in the 60s and all the reasons why it was the wrong choice back then remain valid today. He well knows that, but leaves it in the text to follow his own theological observations and not make his books perfect.

        A friend of mine suggested printing post-it notes with Java code to paste over MIX code in the tAoCP.

      • MIX (Score:1, Interesting)

        by Zeinfeld ( 263942 )
        Knuth's argument boils down to, because any high level language is bound to be out of fashion I will use an assembler that is guaranteed to be out of fashion.

        I don't buy that argument. And the business about TAoCP being like the Encyclopedia Britainica, a work for the ages is a bit of a crock. As compendiums of algorithm's go I prefer the one written by Ron Rivest and friends. I can't remember whether it is written in Pascal or C and I really don't mind because I can easily read both.

        My ideal algorithms book would be written in a modified version of C# or Java. First I would get rid of the unnecessary braces and semicolons. All they do is to make the code fragments longer. Indentation shows block structure much better, continuation lines are not actually ambiguous in algol like languages.

        I would also add in statement of the loop invariants, pre and post conditions which as a formal methods person I regard as an important part of an algorithm.

        • Re:MIX (Score:2, Interesting)

          by smithsb1 ( 538559 )
          If you need to have a algoritms book written for you in a certain language then you are missing the point of the study of algorithms completely. Algorithms wither in assembly or high level language still read the same!.. stop complaining about having to use your brain. If you can't understand them because they are written in assembly please take the time to learn to learn it. It will only help your programming believe me i haven't met a compentant programmer that couldn't easily switch his/her fundamental algoritms back and forth between high level and low level without a sweat. besides it's really what is happening behind the scences of your c# code anyways.
        • C# didn't exist when he started volume 4. Java didn't exist when he started 1-3. Are you suggesting that he should rewrite each volume every time a new language becomes fashionable?

          The point of a bare bones old language is that it favors nothing. If you have to see an idea in C# or Java to understand it, then you are a piss poor programmer.
          • C# didn't exist when he started volume 4. Java didn't exist when he started 1-3. Are you suggesting that he should rewrite each volume every time a new language becomes fashionable?

            If you use a high level enough language you can do that with a script.

            My point was however that if you are going to invent languages to describe algorithms it is better to invent a high level language than a low level language.

            And although Java and C# have only just been introduced, the format is readily accessible to anyone who has used CPL or one of the algol family of languages.

            If you have to see an idea in C# or Java to understand it, then you are a piss poor programmer.

            I can still code 6502 machine code (i.e. without an assembler), I could probably learn MIX, but I very much doubt I will bother. If I want to use an algorithm from Knuth's book I will give the book to an engineer and tell him to give me C# or Java classes that implement the ones I might want to use. Privilege of rank.

            • Probably not. Probably even senior software engineer isn't good enough.

              If I want to use an algorithm from Knuth's book I will give the book to an engineer and tell him to give me C# or Java classes that implement the ones I might want to use. Privilege of rank.

              Seems like you don't want to LEARN, you just want to ape the procedure and never have to exercise the gray cells.

              Knuth's book are for learning IDEAS not copying code blindly.
              • Not for many years, try Distinguished Engineer.

                Seems like you don't want to LEARN, you just want to ape the procedure and never have to exercise the gray cells.

                I get plenty of exercise in that area solving real problems without having to solve other people's invented puzzles.

                The process of engineering is knowing which details are important and which are not. I don't care about how an algorithm works unless there is a good reason to care.

                I consider the value of a book lies in both the ideas it presents and the ability of the author to communicate them. Unfortunately Knuth appears to be going for the Heidegger/Habbermass school of presentation which is in my view indefensible when you are presenting other people's ideas.

                If I want to spend time on something that is a badly written presentation of interesting ideas I'll read a continental philosopher.

          • C# didn't exist when he started volume 4. Java didn't exist when he started 1-3. Are you suggesting that he should rewrite each volume every time a new language becomes fashionable?

            Knuth was working on volume 4 before I started my thesis which was considerably earlier than Java.

            I did not suggest that he write the book in Java or C#, I suggested that if he is going to invent a language a high level language is more convenient than an invented assembler code. Moreover examples that provide the loop invariants, pre and post conditions can be put through automatic proof checkers which is kinda useful if you want to be sure that the algoriths are correct.

            The point of a bare bones old language is that it favors nothing. If you have to see an idea in C# or Java to understand it, then you are a piss poor programmer.

            It isn't that long ago that I used to write 6502 machine code without the need for an assembler. I probably could understand Don's examples if I wanted to but to be honest I'm not that insecure about my technical ability that I need to decode other people's obscurantism.

            At this point a compendium of algorithms does not in my view justify the title 'the art of computer programming'. There is much more to the art than knowing which algorithms to apply.

      • I was poking around Knuth's site, looking at the instruction set for MMIX [stanford.edu], when I came across this instruction (SR, SRU added for comparison):

        3C SR shift right (1) rA
        3D SRI Stanford Research Institute (2) rA
        3E SRU shift right unsigned (1)


        What's that do then?
        • It's a joke. It is "shift right immediate". Knuth always includes some hidden jokes in his books.
        • Isn't it clear? It sets up an internet connection to the Stanford Research Institute, and using the MMIXIEP (MMIX Internet Execution Protocol) it sends its arguments there, and waits for transmission of the result. After the result was transmitted, the Internet connection is shut down.

          It's indeed one of the most complex instructions ever found in a CISC processor. What Stanford returns as value is a well-hidden secret. There are certainly rumors about it being related to a right shift, but probably those came up just because of the irrelevant fact that this instruction is placed in between two right shifts. Don't get confused by this. It's just coincidence. Really. And of course it's also unrelated to the instructions SLI (shift left immediate (2) rA) and SRUI (shift right unsigned immediate (2)). It's tempting to think different, but it really doesn't mean anything.

          Warning: Don't use this instruction unless you are absolutely sure the arguments don't contain security relevant or confidential data!

      • Knuth is entitled to his opinion. It is certainly true that compilers tend to hide the details of the execution. And translating the prior volumes would be a lot of work, so for stylistic consistency it makes sense to continue to use MIX.

        That said, I feel it's a mistake. I have seen a large subset of C that was implementable via macros as a M68000 assembler language program. This would be a vehicle that would possess all of the virtues of MIX, while being readily understandable by most skilled programers. (They might not be able to compose in it without study, but they could understand algorithms written in it with reasonable ease.) In addition, the timings would be experimentally verifiable (if you could lay your hands on an old Mac ... either the Mac 128 or the Fat Mac [512K]). I forget whether the code was presented in Byte or Dr Dobbs. Byte I think. I'm sure it could have been done better, but it wouldn't need to be done better to provide experimental backing to the theoretical arguments. (I suppose that in a sense the MIX virtual machines also provide this, but I don't consider them any better in principle that any other interpreter, and less good than a compiler.)
        N.B.: If you don't insist on an actual hardware version of the machine, such as would be provided by the 68000, then I still don't see any advantage of MIX over a selected subset of C.

        Additionally: MIX doesn't have much similarity to a recent-generation CPU chip. There are a multitude of reasons that Assembler has fallen out of fashion. Lack of portability was one of the major ones. But an even better reason has been the increasing complexity of the chips themselves. Hand-optimizing has become increasingly counter-productive for most people. (It's also become generally less necessary, but that's a separate argument.)

        As always, however, there will be exceptions. There exist specialists who need this kind of skil, CPU version dependant though it be. Somebody needs to design the chips. Somebody needs to desigh the compiler optimization strategies. But even for these people, MIX will be a suboptimal choice.
      • Right on! (Score:4, Insightful)

        by A nonymous Coward ( 7548 ) on Tuesday July 09, 2002 @12:52PM (#3850276)
        Too too many programmers think a line of code is a line of code. They think strcat is just hunky-dory, and append great gobs of strings this way, without realizing that each append traverses the entire string from the beginning each time. They use malloc and free, new and delete, with abandon, not realizing how much they are thrashing the malloc heap, when local variables on the stack would do just as well 99% of the time.

        They DO NOT UNDERSTAND the concept of finite resources, that machine cycles cost time.

        I believe the first programming course should be a very few weeks of something akin to LOGO, or BASIC, just to get the concept of bugs and such out of the way, weed out those who can't stand thinking. Then a good grounding in a z80 or some other simple 8 bitter, where counting cycles and bytes is part of the course (learn how expensive those cute index registers really are). Only then, when an understanding of machine cycles and bytes has been established, should students move on to a higher level.

        Too many ivory towers out there, too many straight-A-can't-tie-their-shoelaces types.
    • use GCC (Score:5, Informative)

      by johnjones ( 14274 ) on Tuesday July 09, 2002 @09:34AM (#3848871) Homepage Journal
      just code it in C and then use gcc targeted at mmix to see the assembly and compare them with what he wrote(some of the time it wont be the same if ever because of register alocation but you get the point)

      regards

      john 'mips64' jones
    • In addition to Knuth's response (given by another poster), let me add that the assembly language used does not, in practice, detract from the usefulness of the books -- and if one wishes, transcribing any of his algorithms from MIX or MMIX to C is child's play and can be done in ones' head while reading them; changing code from MIX or MMIX to an assembly language for real hardware is similarly easy -- a design goal of both.

      Further, while MIX may well be showing its age, Knuth's newer MMIX assembly language is anything but outdated; its features should map well to new processors released for years.
    • At the very least these books represent the magnum opus of one of the pioneers of our field. I think they are worth reading for that reason alone.

      However, my thoughts were similar to yours until I actually read AoCP. It's not so much learning algorithms as it is learning to think algorithmicly. I rarely get to code at the low level shown in AoCP. Even so, my SQL based reports in PHP and two-bit perl programs benefit from an algorithmic approach.

      I am certain that I am better programmer for reading AoCP, and I never did any of the exercises. ;)

    • None of the languages you mention was available at the time when he started writing the books.

      And most of the languages you mention will not be modern at the time when the last books comes out.

      Most of the languages you mention hides so much of the underlying hardware that it is hard to see how changes in the software can be influences by the hardware.

      On the other hand there is none stopping you from rewriteing the examples in Java if you feel up too it.

      C is already an language on its way out, Python seams destined to forever be a minor language and if MS manage to kill Java - in 10 years time the book will be just another antique.

      By using a made-up language the books will never become old and out-fashioned.

      If you want to write a clsssic you can't fathom towards todays fashion but most go your own way.

    • I was pretty turned off by the assembler too, since I don't do any assembler coding at all. I'm a C guy my self. But the thing here is that he gives the algorthms in a pseudo-code form, implementable in any language. When I look at his stuff, I read his writing, and the algorthms, but I don't even bother with the ASM. Yes, I know i'm missing a lot. But he has vastly more than enough otherwise.
  • by BomberMonkey ( 259904 ) <bmonkey&tartarus,ca> on Tuesday July 09, 2002 @09:07AM (#3848732) Homepage
    Technically, all programmer types are supposed to be lazy. Personally, I try to keep my code clean and commented because when I come back to it in a month, I know I'll be too lazy to read through it and figure out what I was doing. Also, being lazy aboud doing work is what leads to reduced algorithmic complexity, right?

    Necessity is the mother of invention, but laziness is the father.
    • Most programmers are lazy. I know I am. I know the other (senior) coder on our current project is. But it's a controlled laziness.

      Being lazy means that instead of doing something "manually" we'll find some way to make the computer do it for us. Sure, doing it by hand may only take 5 minutes and we'll spend 15 minutes just trying to convince the computer to do it, but that's not the point. The point is that - 1) you just learned something new, 2) you avoided doing a repetitive task repeatedly (yes, yes, I know), 3) odds are you'll do the same damn thing, or something similar in the future, and then you'll know how to do it in 3 seconds.

      Which is why programmers gravitate to complex but programmable tools, like vi/vim/emacs/ultraedit, to Unix, to scripting languages, etc.

      It's also why we don't understand the user more often then not. Most users just want to get the job done. Sure, there may be a more efficient way to do it if you spend some time learning the system, but they either don't view the system as their job or have been burned by it too many times to trust it. So they do things the way they know, or the way they think it should work. Which is often not the way the lazy programmer thinks.

      Laziness does have downsides though. Documentation tends to be banal. Comments are almost never as good as you'd like them to be 3 months later. And while algorithmic simplicity is a noble goal, it's often the wrong one - too simple of an algorithm can be wasteful of resources (bubble sort is a whole lot simpler than quicksort) simply because the programmer didn't learn the underlying hardware or didn't think through the implications of a design. Which leads to the issue of too simple of a design meaning massive rework as the system grows.

      Of course the more experienced programmers have learned these things and discovered that spending the time up front means you can be lazier in the long run.

      Knuth is one of these experienced programmers. There are gems of wisdom throughout his writings.

      Wish the bastard didn't want us to work to find them though.
      • Well said: it's laziness, but it's far sighted laziness. Reading through the man page for sed way back in the day took longer than going through the code I had to do a search and replace, but it's more than made up for it now that I can do "1G!Gsed -e s///"
    • Technically, all programmer types are supposed to be lazy.

      As my old maths teacher once said, "All good mathematicians are lazy but, unfortunately for you, not all lazy people are good mathematicians."

  • He's right - I'm way too lazy to spend more than a few minutes on things like that.
  • too lazy (Score:4, Funny)

    by gripdamage ( 529664 ) on Tuesday July 09, 2002 @09:10AM (#3848743)
    He thinks we are way too lazy in this respect! So come on slashdot crowd: Do your homework and get the credit from the grandmaster himself!

    No no no... He's right [yawns, stretches, checks for new /. articles].
  • Why do you pay $2.56 for every error found in your books? 256 pennies is one hexadecimal dollar.
    Damn, and I thought I was a nerd!
    • by Subcarrier ( 262294 ) on Tuesday July 09, 2002 @09:16AM (#3848781)
      256 equals $100. We're being shafted.
  • by Nomad7674 ( 453223 ) on Tuesday July 09, 2002 @09:13AM (#3848762) Homepage Journal
    I hope I am not the only one who read that introduction and had the monosylabbic response, "Huh?" For any others like me in serious need of some explication, first the definition of "fascicle" from dictionary.com [dictionary.com]:

    fascicle Pronunciation Key (fs-kl) n.

    1. A small bundle.
    2. One of the parts of a book published in separate sections. Also called fascicule.
    3. Botany. A bundle or cluster of stems, flowers, or leaves.
    4. See fasciculus.

    I believe the definition used here is #2.

    Second, a quick definition of what this is all about: it appears to be a collection of great scientific and programming works to be used as a primer for new programmers.

    Hopefully, that allays some of the confusion I was having among others out there.

    • Second, a quick definition of what this is all about: it appears to be a collection of great scientific and programming works to be used as a primer for new programmers.

      A collection of great programming works? Yes. To be used as a primer for new beginners? Not really.
      TAOCP (The Art Of Computer Programming) is one of the best advanced computer science books ever written. It doesn't teach you how to write object-oriented code, or even "hello world". Instead it sets down algorithms, and techniques to create algorithms to solve problems elegently.

      Giving this to a new programmer would be pretty much a worthless exercise, as the code in the book isn't even written in a real (as in used in the real world) language, but rather one made up in academia to be Turing Complete and demonstrate algorithms. I keep all three volumes on my desk, and find that they can be incredibly useful in assisting with some problems. However, they're never going to tell me why my program has a memory leak, or the difference between reference and value.

      The previous volumes of TAOCP have had numberous errors (Knuth pays $2.56 for every one you find) just due to the complexity of the material they cover, combined with the changing world of computer science. Hopefylly getting out pre-prints of the book, bit by bit, will help get alot of these fixed before the 1st edition.

      I have no idea how you were expecting to "allay" the confusion of others, when you don't even seem to understand it yourself.

      Adam Pennington

    • 1. A small bundle.

      The root word is the Latin "fasces" -- a bundle of sticks -- which was used as a symbol of authority in Ancient Rome, by people empowered to beat those acting illegally. This is where the notion of "fascism" comes from -- order through the strength of the dominant group.

      I really should do more study of etymology, it can be fascinating...
  • by Anonymous Coward
    Apparently very few people cash the (few) checks Don Knuth writes in reward for bugs. Would you rather have $2.56 or a signed checque from Mr Knuth?
  • "...But I must confess that I'm also disappointed to have had absolutely no feedback so far on several of the exercises on which I worked hardest when I was preparing this material. Could it be that (1) you've said nothing about them because I somehow managed to get the details perfect? Or is it that (2) you shy away from the more difficult stuff, being unable to spend more than a few minutes on any particular topic?..."

    ... or could it be (3) that you'd have to be one crack-smoking codemonkey of a nut to spend your spare time doing exercises which (1) require a superbrain, (2) are boring, (3) your superbrain computer science professor already did a week ago to collect the $0.23 award for the errata report.
  • $2.56 worth. (Score:1, Flamebait)

    by SloppyElvis ( 450156 )
    LOL! That's quite a reward for finding errors in Knuth's brain child. While Knuth professes Computer Science and the French language have changed significantly since vol. 1, the Economics of error-finding have remained the same... What about inflation Prof. Knuth!?

    This suggestion should be worth $0.32
    • What about inflation Prof. Knuth!?

      Knuth routinely doubles the bounty for finding an error in his TAoCP books or in his TeX program. This bounty doubles each time an error is found and corrected.

    • You have misinterpreted Knuth's comment on the French language. He does not warn nit-pickers that French has changed since he wrote his text, but rather that the French language used in his quotations has changed since the quotations were originally put in print, and therefore are not necessarily examples of modern French usage or orthography.

      As an English example, at the end of Chapter 7 of The TeXbook, he quotes

      Some bookes are to bee tasted,
      others to bee swallowed,
      and some few to bee chewed and disgested.
      --FRANCIS BACON, Essayes (1597).

      He will presumably not accept "corrections" to the spelling of "bee," "bookes," "disgested," or "Essayes," because they are spelled as Bacon did originally.

      Most English speakers freely acknowlege that spelling and usage have changed in the last 400 years. Probably most French nit-pickers are less realistic, but that is a whole other topic.
  • by peterdaly ( 123554 ) <{petedaly} {at} {ix.netcom.com}> on Tuesday July 09, 2002 @09:27AM (#3848844)
    I just looked this author up at Amazon. Here is some of his previous work:
    The Art of Computer Programming, Volumes 1-3 [amazon.com]
    From the Inside Flap
    "The bible of all fundamental algorithms and the work that taught many of today's software developers most of what they know about computer programming."-- Byte, Sept 1995

    "If you think you're a really good programmer,...read [Knuth's] Art of Computer Programming....You should definitely send me a resume if you can read the whole thing." -- Bill Gates


    This does not sound like it is aimed at the core slashdot crowd, based on the Amazon reviews I am reading. Honestly I have never heard of the guy before. He is without a doubt more for the "hard core" among us. Volume 1 seems to have been written in the 1960's, so this guys been at it a while.

    Plenty of reader reviews. Many with comments like:
    This timeless classic is bound to make the student (Yes you ought to be a dedicated one..no casual reading here!) proficient in the art and science of constructing programs. -Ganapathy Subramaniam

    Be prepared for your brain to do some crunching if you really want to get into this guys work.

    -Pete
    (amazon affilate like to the book...just so ya know.)
    • Honestly I have never heard of the guy before.

      Neither had the librarians at my local library. They were puzzled as to why I was so angry about the disappearance of the three yellow computer books. That was years ago and I still get somewhat mad about it.

    • by Mr Guy ( 547690 ) on Tuesday July 09, 2002 @09:42AM (#3848917) Journal
      He is beyond hardcore. To explain Donald Knuth's relevance to computing (and geeks should all know who he is) is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.

      Reading the Art of Computer Programing is like translating the Bible from the original greek. You know there is something profound there, but until you've done it a few times and looked back on it, you are more concerned with trying to figure out each word.

      I'm a little awestruck by him.

      By the way, the Paul reference is not a flippant one, check out his other books,Things a Computer Scientist Rarely Talks About [amazon.com], and 3: 16: Bible Texts Illuminated [amazon.com], for explanations of why not every christian is a fool.
      • check out his other books,Things a Computer Scientist Rarely Talks About [amazon.com], and 3: 16: Bible Texts Illuminated [amazon.com], for explanations of why not every christian is a fool.
        Be sure to check out also (Eiffel creator) Bertrand Meyer's review [inf.ethz.ch] ...
    • by devonbowen ( 231626 ) on Tuesday July 09, 2002 @10:03AM (#3849042) Homepage
      Wow. No flame intended, but I never expected to hear Knuth called "this guy". For those that don't know the name, here are a few others you might want to check out: Turing, Minsky, Church, Shannon, Chomsky. Of course, these are just the "theory" guys and I am sure others will add to that list. Seems to me any geek should have at least a Readers Digest knowledge of who these people are and what they've done for us.

      Devon
      • by Goonie ( 8651 )
        John Von Neumann, S.A. Cook (describing NP-completeness was pretty damn cool), Ken Thompson and Dennis Ritchie, Vannevar Bush, Doug Engelbart...

        There are many others, but that's a good start.

      • I certainly know who he is (he wrote the intresting "society of mind"), but I always figured him more of a philosophical AI-guy than a heavy-theory-guy. I've taken a lot of courses in AI and game theory, and he is never mentioned along with the greats... What field has he contributed to?
    • TeX (Score:5, Interesting)

      by mikeee ( 137160 ) on Tuesday July 09, 2002 @10:09AM (#3849091)
      My favorite Knuth quote, when he gave a class a snippet of code to use in their program (not verbatim, sorry):

      "Be careful with this code; I have only proven it correct, not tested it."

      A demonstration of Hacker Nature:

      He wasn't happy with the typesetting on his first book, and decided this should be done by computer, so he wrote a markup language for typesetting.

      Of course, he wanted to do it right, so this took him... well... about a decade. And when he was done, he had written TeX. He was very pleased; his publishers thought this was odd, as the new typesetting looked worse than the old.

      A few years later, high-resolution laser printers became available; TeX already suppported them, and lo and behold, the new version did look better.

      TeX is a huge monster of a programming language/application. Knuth offered a cash prize of $(2^N) for the Nth unique bug report. TeX is now, like, 20 years old, and that system cost him under $1K.

      If programmers were Jedi, he would be Yoda.
      If programmers were wizards, he was be Gandalf.

      He is the serious, friendly grandfather who can kick the butts of all us whippersnapers. So pay attention!

      • Re:TeX (Score:5, Interesting)

        by crsm ( 21260 ) on Tuesday July 09, 2002 @10:48AM (#3849351)
        TeX is a huge monster of a programming language/application. Knuth offered a cash prize of $(2^N) for the Nth unique bug report. TeX is now, like, 20 years old, and that system cost him under $1K.

        Take a look at the version number of TeX: 3.14159 ('tex --version'). Each release adds a new digit towards Pi and someday when he dies the release number will be bumped to be exactly Pi. After that every new bug will be declared a feature :-) Another program of his (the name escapes me) progress the in the same way towards the base of the natural logarithm e.
      • Re:TeX (Score:2, Funny)

        by slasho81 ( 455509 )
        He wasn't happy with the typesetting on his first book, and decided this should be done by computer, so he wrote a markup language for typesetting.

        Why spend 10 days doing something when you can spend 10 years automating it?

        (If you don't approve profoundly with the above sentence you don't belong to the software development profession.)
      • He was very pleased; his publishers thought this was odd, as the new typesetting looked worse than the old.


        I agree. I have always thought that TeX looks like shite. If yOU waNt YouR paPErS tO LOoK lIke THEy wEre WRitteN On a JAnGly OlD tYPewRiTEr THeN TeX MaY bE riGHt foR YOu!! Why do you think it is capitalized as "TeX"?

    • Lots of people haven't read tAoCP. I'm one of them. I don't consider it something to be ashamed of. As you say, it's hard core. But if you've never /heard/ of it, or never heard of Donald Knuth, you may be reading the wrong website.

      Try going to englishlitereature.com and saying you've never heard of this Shakespeare guy, but based on Amazon reviews it sounds like he's pretty deep.
  • Nah, we can do that!
    Although, these challenges do sound a little dry, don't they?

    - Claus
  • rats! (Score:5, Funny)

    by cowtamer ( 311087 ) on Tuesday July 09, 2002 @09:41AM (#3848910) Journal
    I was actually hoping for this [ibiblio.org].
  • by apirkle ( 40268 ) on Tuesday July 09, 2002 @09:44AM (#3848932)
    For you poor saps running Windows with no viewer for Postscript, there is a great online viewer [samurajdata.se] that converts ps, pdf, and word docs to gif images, suitable for viewing in your favorite web browser [mozilla.org].

    Cached version of the Knuth document is here [samurajdata.se].

    • I would suggest rather getting ghostscript [wisc.edu] for Windows, the free PostScript interpreter, and also GSview [wisc.edu], a viewer (the latter requires the former).

      Ghostscript is free as in speech, with a GNU release and a release under AFPL, a slightly different license (the GNU code is older than the AFPL code). GSview is available, as far as I can tell, under the AFPL only, which is still free but not GPL.

      With both of these properly installed on Windows, one click on the link provided by Slashdot will launch the viewer. (It must gunzip on-the-fly.)

  • Finally (Score:3, Interesting)

    by gillbates ( 106458 ) on Tuesday July 09, 2002 @09:59AM (#3849018) Homepage Journal

    I was a junior in college when I first read The Art of Computer Programming, and it really opened up my mind to what computer science is all about. It challenged me to think outside the HLL box. Knuth's work has become a timeless classic because he concentrates on the higher level concepts of computer science that transcend the currently popular architectures.

    What really blew me away about Knuth's work is that he implements all of the features found in modern HLL's in his own variant of assembler. Someone who can work through and solve the exercises in his books will find themselves able to write programs in any language, and write them well at that. He does not concern himself with the Language Wars, or the Platform Wars, but instead presents the problems and solutions which are common to all computer systems. Too many programmers have been babied intellectually by their colleges and universities, which taught them how to program in a high level language rather than teaching them the fundamentals underlying computer science. Knuth does a good job in getting down to the underlying problems of computer science without bothering the user with the details of arcane architectures that will soon be obsolete.

    For this reason, I look forward to his forthcoming work. I look forward to the new challenges which will expand my mind even farther.

  • For other Windoes folks, ToastScrip [geocities.com]t is a handy little Java app to read and print PostScript.
  • I bet Fear Factory would kill to have song titles like the names of Knuths chapters:

    decoding the octacode

    Gray binary clusters of subcubes

    medians of bit strings

    Gray fields

    constructing large-gap codes

    an infinite Gray path that fills n-dimensional space

    loopless generation of fence-poset ideals

  • So who else noticed that all MMIX processors have a built in serial number?
    Yes, I know they are hypothetical...
  • ...get really turned off by Knuth's over-inflated ego? I don't doubt that the guy is smart, but I can't stand even reading his FAQ, let alone trying to make it through tAoCS. I don't buy into all his bullshit about batch processing, etc... I think he's just a smart guy who's full of himself and likes to be eccentric. And has a lot of people eating out of his hand.

    As evidence of this, I point to Dick Feynman, who was incredibly smart, amassed a decent body of work, both in terms of theories created and teaching books/lessons written, but at the same time took time out to play in a native Brazillian band.

    I might be a computer scientist, but I look up to Dick Feynman, and I shake my head at Donald Knuth.
    • I think that you just don't like his style.

      I'm not sure what your point is about Feynman taking time out to play in a band - Knuth takes time out to play the organ if that makes a difference to you.

      Given the contents of his books, don't you think that Knuth expresses a significant amount of respect for his readers? Name another author who gives cash rewards for reporting problems with books, or even for offering suggestions for improvements. You might think that this is ego driven since the majority of the checks aren't cashed, but this is a choice made by his audience and not by Knuth himself.

      ---

      • While I have a lot of respect for Feynman, I don't believe he ever designed and built a pipe organ in his own home. /That/ is why Knuth kicks ass: he doesn't just solve the problem at hand. He solves all -- and I mean /all/ -- of the underlying theory problems, turning the whole field upside down.

        As for the pipe organ, somewhere there's a photo of Knuth sitting at home in front of it. It's not a small instrument. :-)

  • I can appreciate the common-denominator factor for the MIX language, but nobody programs computers anymore - they program the OPERATING SYSTEM of those computers. The people who write the O/S are the ones actually programming the machine, and once that's done, the application developers (i.e. the majority) just use the services they provide. The last time I heard of anyone programming the machine rather than the OS was in DOS games.
    • Oops, that's wrong. The lovely high level code you write still becomes machine language. Even with Java. If a program does real work, there's real machine code. Even if it doesnt, there's still calls, which are still opcodes.
      • Even if you program Java, then why not learn Java bytecode assembly?

        Assembly will always be valid. And even if you don't like MIX, then just ignore MIX. Knuth's books are filled with pseudocode, flowcharts, mathematical descriptions, and English descriptions of the algorithms. If you can't understand at least one of those views, then you don't deserve to be a programmer!
      • Oops, that's wrong. The lovely high level code you write still becomes machine language. Even with Java. If a program does real work, there's real machine code. Even if it doesnt, there's still calls, which are still opcodes
        You karma-whoring moron. Let me spell it out in terms that you can't fucking twist into something that gets you modded up:

        Bob needs to write a Windows app, to, let's say, perform a certain mathematical function on a number when he types it in the box and presses the button. Bob must use Visual C++ for this. Bob then uses VC++ to write the program and design the forms. He puts a textbox on the form, and a button, and ties the click event of the button to a method that performs the math on the text property of the textbox. It then copies the result into a label component. The program has an event loop, managed by the OS interface, and an X button.

        My point is that Bob does not care, nor does he NEED to care, what the opcodes are that did this. He wrote the program to make the button, textbox, and Windows do something. This is where 90% of the programming is done these days.

        Even on Unix, most apps are nothing but firing off library calls to things you didn't write. You're at the mercy of the library implementors.

        There are always exceptions, such as super-low-level simulation code, and other things that must run as fast as possible. THAT IS NOT WHAT I'M TALKING ABOUT.

        Is that clear or is that too high-level for you, o mighty god of the shift right?

  • I just had Netscape 7 and Win2K crash after searching Amazon.com for the 3 volume set of TAOCP. Did my profane OS fall over after merely viewing the holy book's entry in an online store?
  • with fewer* than one byte per year of Knuth's life:

    perl -e '@a=1..pop;sub a{@a?map@a=(a(@_,pop@a),@a),@a:print"@_\n";pop}a' 4

    * I'm just counting the perl code, not the 'perl -e' and quotes for the shell.
  • So he has time to finish all seven books!

    Of course then I'll have to update my review of The Art of Computer Programming [dannyreviews.com].

    Danny.

Our OS who art in CPU, UNIX be thy name. Thy programs run, thy syscalls done, In kernel as it is in user!

Working...