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.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your email address or mobile phone number.

Hacker's Delight (2nd Edition) 2nd Edition

4.6 out of 5 stars 26 customer reviews
ISBN-13: 978-0321842688
ISBN-10: 0321842685
Why is ISBN important?
ISBN
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Sell yours for a Gift Card
We'll buy it for $18.91
Learn More
Trade in now
Have one to sell? Sell on Amazon
Rent On clicking this link, a new layer will be open
$21.76 On clicking this link, a new layer will be open
Buy new On clicking this link, a new layer will be open
$37.88 On clicking this link, a new layer will be open
More Buying Choices
50 New from $33.06 37 Used from $32.25
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student


Save Up to 90% on Textbooks Textbooks
$37.88 FREE Shipping. In Stock. 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)
Total price: $89.43
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



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.4 x 1.3 x 9.1 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (26 customer reviews)
  • Amazon Best Sellers Rank: #37,488 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

Top Customer Reviews

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 24 of 24 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
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 14 of 16 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
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 10 of 11 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
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 9 of 10 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
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 2 of 2 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
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 4 of 5 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Hardcover Verified Purchase
I develop for embedded systems. Mostly in C, but sometimes in assembly. This book is fantastic. I just got it today and can't put it down. You may have picked up a few of these tricks along the line, but THIS is the definitive collection, and I plan to keep it right on my desk.
Comment 1 of 1 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
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 3 of 4 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
Hacker's Delight (2nd Edition)
This item: Hacker's Delight (2nd Edition)
Price: $37.88
Ships from and sold by Amazon.com

Want to discover more products? Check out these pages to see more: forward error correction, concrete math, programming books french edition, computer hackers guide