- Hardcover: 512 pages
- Publisher: Addison-Wesley Professional; 2 edition (October 5, 2012)
- Language: English
- ISBN-10: 0321842685
- ISBN-13: 978-0321842688
- Product Dimensions: 6.5 x 1.2 x 9.2 inches
- Shipping Weight: 1.8 pounds (View shipping rates and policies)
- Average Customer Review: 36 customer reviews
- Amazon Best Sellers Rank: #74,878 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Hacker's Delight (2nd Edition) 2nd Edition
Use the Amazon App to scan ISBNs and compare prices.
The Amazon Book Review
Author interviews, book reviews, editors picks, and more. Read it now
Frequently bought together
Customers who bought this item also bought
From the Publisher
“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.
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
What I got out of this:
Multiword multiplication for fast high precision fixed point on ARM chips that lack fpus, branchless integer min and max is very handy for Thumb mode, pre-computing magic numbers for division and modulus enables MUCH faster lookups in hash tables, the graphs of functions at the very end are super fascinating, and the superoptimizer this man wrote is very simple but incredibly fun to play with! I adapted it to use multithreading and it's helped me reduce some code to the simplest possible sequence. I've had special success in reducing switch cases or long conditions involving integer arithmetic.
Also I can definitely see uses for other things in the book, like the multibyte addition and the floating point chapter. Theres a little bit in there about the most famous bithack of them all. And the notation used is really clean.
This book is a gem and I hope we get more in the future. For now though I'll settle for leafing through and discovering the things I missed.