home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.arch:10641 comp.lang.misc:3604
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!psinntp!psinntp!dg-rtp!sheol!throopw
- From: throopw@sheol.UUCP (Wayne Throop)
- Newsgroups: comp.arch,comp.lang.misc
- Subject: Re: Hardware Support for Numeric Algorithms
- Summary: how to satisfy the need for speed
- Message-ID: <721539025@sheol.UUCP>
- Date: 12 Nov 92 00:52:53 GMT
- References: <1992Nov11.100555.4706@smds.com>
- Lines: 34
-
- : From: rh@smds.com (Richard Harter)
- : Message-ID: <1992Nov11.100555.4706@smds.com>
- : What Bob is telling you is that there are problems
- : which are so computationally demanding that computational efficiency is
- : far more important than standard programming style guides.
-
- Well, of *course* that's what he's saying. But to understand that, one
- first must understand that when he says "all other considerations", he
- doesn't really mean all of them, just some of them.
-
- Also, he explicitly stated that there are "times when readability,
- portability, and ease of maintenance don't matter at all", and in
- that I expect he really means "matter little". Certainly I don't
- agree that readability and maintainability EVER have negligable,
- much less zero, worth.
-
- I guess my point is, it isn't really straightforward to decide
- just "what Bob is telling us", because he uses absolutes so freely,
- when upon reflection he can't possibly mean what he says literally.
- It has to be decoded somewhat.
-
- : There is a price for programming for clean code;
- : in most cases the benefits far outweigh the price; sometimes they don't.
-
- True, but I'm more sympathetic with the Jon Bentley school of
- optimization, where you transform clean, correct code into arcane,
- incomprehensible code by known-safe transforms, and RECORD THE
- TRANSFORMS. For example, the chapter on code tuning in Programming
- Perls, especially the case study of the binary search. Or, if I'm
- remembering rightly, Bentley's book Writing Efficient Programs. Of
- course, the shortcoming in this context is that the central focus isn't
- really numerical problems, but I regard that as relatively minor.
- --
- Wayne Throop ...!mcnc!dg-rtp!sheol!throopw
-