Hacker's Delight (2nd Edition) and over 2 million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
Trade in Yours
For a £11.50 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Hacker's Delight (2nd Edition) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Hacker's Delight [Hardcover]

Henry S. Warren
5.0 out of 5 stars  See all reviews (3 customer reviews)
RRP: £38.99
Price: £31.19 & FREE Delivery in the UK. Details
You Save: £7.80 (20%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 15 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want it tomorrow, 11 July? Choose Express delivery at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition £20.02  
Hardcover £31.19  
Trade In this Item for up to £11.50
Trade in Hacker's Delight for an Amazon Gift Card of up to £11.50, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

25 Sep 2012 0321842685 978-0321842688 2

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

 


Special Offers and Product Promotions

  • Spend £30 and get Norton 360 21.0 - 3 Computers, 1 Year 2014 for £24.99. Here's how (terms and conditions apply)

Frequently Bought Together

Hacker's Delight + Cracking the Coding Interview: 150 Programming Questions and Solutions + Introduction to Algorithms
Price For All Three: £92.93

Buy the selected items together


Product details

  • Hardcover: 512 pages
  • Publisher: Addison Wesley; 2 edition (25 Sep 2012)
  • Language: English
  • ISBN-10: 0321842685
  • ISBN-13: 978-0321842688
  • Product Dimensions: 23.9 x 16 x 3 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Bestsellers Rank: 68,093 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

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.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
1 of 1 people found the following review helpful
5.0 out of 5 stars awesome 12 May 2013
Format:Hardcover|Verified Purchase
One of the best books I've read in ages. Lots of interesting tips and ideas. Lots of 'ah ha' moments when you realise that you sort of knew this all along but now that somebody mentioned it, yeah, I'll do it that way from now on ! Pure hacker enjoyment.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Even better than the first edition 27 Jan 2013
Format:Hardcover|Verified Purchase
The additions to the 1st edition and corrections of errata make this a required book on your shelf. It's a great improvement on a classic.
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Great book! 18 April 2014
Format:Hardcover|Verified Purchase
This is not a book for those that are starting to program, but for those who want to tweak your programs! You will learn some tricks, for exemple exchanging the value of two variable without using an auxiliary one.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.7 out of 5 stars  15 reviews
17 of 17 people found the following review helpful
5.0 out of 5 stars Very, very useful 5 Dec 2012
By Edward Jennings - Published on Amazon.com
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.
7 of 7 people found the following review helpful
5.0 out of 5 stars A version upgrade 8 Jan 2013
By Erebus - Published on Amazon.com
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.
11 of 13 people found the following review helpful
5.0 out of 5 stars excellent book of hacks 5 Feb 2013
By hardly_b - Published on Amazon.com
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.
3 of 3 people found the following review helpful
5.0 out of 5 stars Perfect! 23 Dec 2013
By Carlos Neves - Published on Amazon.com
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
2 of 2 people found the following review helpful
5.0 out of 5 stars Just as good as the first version 16 Nov 2013
By J. Sorter - Published on Amazon.com
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.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category


Feedback