Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon.com Sold by: Amazon.com
Used - Very Good
-
To see product details, add this item to your cart.
Ships from: Bay State Book Company Sold by: Bay State Book Company
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Hacker's Delight
Purchase options and add-ons
In Hacker’s Delight, Second Edition, Hank Warren once again compiles an irresistible collection of programming hacks: timesaving techniques, algorithms, and tricks that help programmers build more elegant and efficient software, while also gaining deeper insights into their craft. Warren’s hacks are eminently practical, but they’re also intrinsically interesting, and sometimes unexpected, much like the solution to a great puzzle. They are, in a word, a delight to any programmer who is excited by the opportunity to improve.
Extensive additions in this edition include
- A new chapter on cyclic redundancy checking (CRC), including routines for the commonly used CRC-32 code
- A new chapter on error correcting codes (ECC), including routines for the Hamming code
- More coverage of integer division by constants, including methods using only shifts and adds
- Computing remainders without computing a quotient
- More coverage of population count and counting leading zeros
- Array population count
- New algorithms for compress and expand
- An LRU algorithm
- Floating-point to/from integer conversions
- Approximate floating-point reciprocal square root routine
- A gallery of graphs of discrete functions
- Now with exercises and answers .
- ISBN-100321842685
- ISBN-13978-0321842688
- Edition2nd
- PublisherAddison-Wesley Professional
- Publication dateSeptember 25, 2012
- LanguageEnglish
- Dimensions6.63 x 1.27 x 9.38 inches
- Print length512 pages
Frequently bought together

Customers who viewed this item also viewed
- Code: The Hidden Language of Computer Hardware and SoftwarePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- How Computers Work: The Evolution of Technology, 10th EditionPaperbackGet it as soon as Thursday, Sep 24
- Introduction to Algorithms, fourth editionHardcoverFREE Shipping by AmazonGet it as soon as Saturday, Sep 19Only 1 left in stock (more on the way).
- Art of Computer Programming, The, Volumes 1-4B, Boxed SetHardcoverFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Hacker's DelightHardcoverFREE Shipping by AmazonGet it as soon as Saturday, Sep 19Only 1 left in stock - order soon.
Customers also bought or read
- How Computers Work: The Evolution of Technology, 10th Edition
Paperback$36.64$36.64FREE delivery Sep 24 - 29 - Art of Computer Programming, The, Volumes 1-4B, Boxed Set
Hardcover$235.99$235.99FREE delivery Sat, Sep 19 - The Algorithm Design Manual (Texts in Computer Science)
Hardcover$48.80$48.80FREE delivery Sat, Sep 19 - Structure and Interpretation of Computer Programs - 2nd Edition (MIT Electrical Engineering and Computer Science)#1 Best SellerCompiler Design
Paperback$57.20$57.20FREE delivery Sat, Sep 19 - Bare-Metal Embedded C Programming: Develop high-performance embedded systems with C for Arm microcontrollers
Paperback$31.91$31.91Delivery Mon, Sep 21 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Mon, Sep 21 - C++ Memory Management: Write leaner and safer C++ code using proven memory-management techniques
Paperback$29.99$29.99Delivery Mon, Sep 21 - Writing a C Compiler: Build a Real Programming Language from Scratch
Paperback$42.43$42.43FREE delivery Sat, Sep 19 - Rust for Rustaceans: Idiomatic Programming for Experienced Developers
Paperback$29.49$29.49Delivery Sat, Sep 19 - The Elements of Computing Systems, second edition: Building a Modern Computer from First Principles
Paperback$60.00$60.00FREE delivery Sat, Sep 19 - C Programming Language, 2nd Edition#1 Best SellerC Programming Language
Paperback$60.30$60.30FREE delivery Sat, Sep 19 - Data-oriented design: software engineering for limited resources and short schedules
Paperback$34.95$34.95Delivery Mon, Sep 21 - Building a Debugger: Write a Native x64 Debugger From Scratch
Paperback$43.49$43.49FREE delivery Sat, Sep 19 - Performance Analysis and Tuning on Modern CPUs: Learn to write fast software like a pro
Paperback$31.68$31.68Delivery Mon, Sep 21 - A Philosophy of Software Design, 2nd Edition#1 Best SellerSoftware Testing
Paperback$19.92$19.92Delivery Sat, Sep 19 - Code: The Hidden Language of Computer Hardware and Software#1 Best SellerSoftware Design & Engineering
Paperback$33.95$33.95Delivery Sat, Sep 19 - Making Embedded Systems: Design Patterns for Great Software#1 Best SellerComputer Hardware Embedded Systems
Paperback$32.74$32.74Delivery Sat, Sep 19 - LLVM Code Generation: A deep dive into compiler backend development
Paperback$34.99$34.99Delivery Mon, Sep 21
From the Publisher
Editorial Reviews
Review
“This is the first book that promises to tell the deep, dark secrets of computer arithmetic, and it delivers in spades. It contains every trick I knew plus many, many more. A godsend for library developers, compiler writers, and lovers of elegant hacks, it deserves a spot on your shelf right next to Knuth. In the ten years since the first edition came out, it’s been absolutely invaluable to my work at Sun and Google. I’m thrilled with all of the new material in the second edition.”
― Joshua Bloch
“When I first saw the title, I figured that the book must be either a cookbook for breaking into computers (unlikely) or some sort of compendium of little programming tricks. It’s the latter, but it’s thorough, almost encyclopedic, in its coverage. The second edition covers two new major topics and expands the overall collection with dozens of additional little tricks, including one that I put to use right away in a binary search algorithm: computing the average of two integers without risking overflow. This hacker is indeed delighted!”
― Guy Steele
About the Author
Henry S. Warren, Jr., has had a fifty-year career with IBM, spanning from the IBM 704 to the PowerPC and beyond. He has worked on various military command and control systems and on the SETL (SET Language) project under Jack Schwartz. Since 1973, Hank has been with IBM’s Research Division, focusing on compilers and computer architectures. He currently works on a supercomputer project aimed at an exaflop. Hank received his Ph.D. in computer science from the Courant Institute at New York University.
Product details
- Publisher : Addison-Wesley Professional
- Publication date : September 25, 2012
- Edition : 2nd
- Language : English
- Print length : 512 pages
- ISBN-10 : 0321842685
- ISBN-13 : 978-0321842688
- Item Weight : 1.9 pounds
- Dimensions : 6.63 x 1.27 x 9.38 inches
- Best Sellers Rank: #512,125 in Books (See Top 100 in Books)
- #108 in Computer Algorithms
- #219 in Programming Algorithms
- #252 in Computer Hacking
- Customer Reviews:
About the author

There's a short bio on the back cover of Hacker's Delight.
I want to point out here the existence of www.HackersDelight.org. This site will have errata files for the book (second edition) as errors are found. It has C code for the algorithms in the book and many similar algorithms.


















