Hacker's Delight (2nd Edition) and over one million other books are available for Amazon Kindle. Learn more
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images
Sell yours for a Gift Card
We'll buy it for $25.15
Learn More
Trade in now
Have one to sell? Sell on Amazon

Hacker's Delight (2nd Edition) Hardcover – October 5, 2012

ISBN-13: 978-0321842688 ISBN-10: 0321842685 Edition: 2nd
Buy new
$38.70
In stock on June 5, 2015.
Order it now.
Ships from and sold by Amazon.com. Gift-wrap available.
List Price: $59.99 Save: $21.29 (35%)
Qty:1
Hacker's Delight (2nd Edi... has been added to your Cart

Used & new from other sellers Delivery options vary per offer
48 used & new from $34.70
Amazon Price New from Used from
eTextbook
"Please retry"
Hardcover, October 5, 2012
"Please retry"
$38.70
$34.70 $34.71
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student


Hero Quick Promo
Save up to 90% on Textbooks
Rent textbooks, buy textbooks, or get up to 80% back when you sell us your books. Shop Now
$38.70 FREE Shipping. In stock on June 5, 2015. Order it now. Ships from and sold by Amazon.com. Gift-wrap available.

Frequently Bought Together

Hacker's Delight (2nd Edition) + Programming in C (4th Edition) (Developer's Library) + C Programming Absolute Beginner's Guide (3rd Edition)
Price for all three: $91.18

Some of these items ship sooner than the others.

Buy the selected items together

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.

NO_CONTENT_IN_FEATURE


Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Product Details

  • 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.3 x 9 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (22 customer reviews)
  • Amazon Best Sellers Rank: #43,637 in Books (See Top 100 in Books)

More 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.

Customer Reviews

4.5 out of 5 stars

Most Helpful Customer Reviews

23 of 23 people found the following review helpful By Edward Jennings on December 5, 2012
Format: Kindle Edition
Well written and (relatively) concise book. It contains numerous techniques for efficiently managing binary data and various examinations of bitwise arithmetic.

The algorithms explained are detailed and useful. I've used a number of them 'in anger' and they've worked perfectly. I haven't come across any other book that addresses the field as well as this one does.
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
9 of 9 people found the following review helpful By Erebus on January 8, 2013
Format: Hardcover Verified Purchase
Hacker's Delight first edition was resourceful. This second edition even more so.

The bit manipulation chapters have lots of hints on how to code without branches.

There are some "scary" math on later chapters but you can ignore it.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
12 of 14 people found the following review helpful By hardly_b on February 5, 2013
Format: Hardcover Verified Purchase
The book is full of useful bit-twiddling tricks. How do you quickly count the number of bits set in a 2's complement long integer? If you can't imagine caring, then this book isn't for you, but if you need to write fast, low-level code on occasion, the price of the book will be repaid the first time you find a clear explanation of some trick, instead of having to figure it out for yourself. It's a more polished, restricted version of Hackmem, which I also recommend.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
7 of 8 people found the following review helpful By wiredweird HALL OF FAMETOP 1000 REVIEWER on January 24, 2014
Format: Hardcover Verified Purchase
I rarely recommend a second edition of anything to someone who owns the first, but this stands out as a worthy exception. It starts with the amazing menagerie of slick tricks that the first edition had, but adds material regarding CRCs, error correction, creative arithmetic, and more. Oh, I'm sure you can get by without these for lots of purposes. When efficiency really matters, though, or when you need to work in constrained environments (like small embedded processors that lack floating point or maybe even division instructions), approaches like these more than make up for the effort involved in using them. And, if you code in VHDL or Verilog instead of sequential languages, tools like these can help you past that last nanosecond to meet timing.

Highly recommended, not just because my copy of the first edition came with so many poorly-bound, loose pages.

-- wiredweird
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By Rick Tanney on April 11, 2014
Format: Hardcover Verified Purchase
This book focuses on low-level programming algorithms designed to optimize code efficiency and execution speed. Serious programmers will benefit from studying this volume.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 5 people found the following review helpful By Carlos Neves on December 23, 2013
Format: Hardcover Verified Purchase
The book presents several tables, tricks and algorithms involving binary arithmetics... which is just what I have been looking for a long time :D
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
3 of 4 people found the following review helpful By J. Sorter on November 15, 2013
Format: Hardcover Verified Purchase
I own the first version and like the second version just as much. I also own several other books by this author that I highly recommend for geeks like me.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
1 of 1 people found the following review helpful By Teh Arbitrageur on October 4, 2014
Format: Hardcover
A fascinating collection of algorithmic tips and tricks, I could just study this for weeks and still get something new out of it every time.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again